Forum Discussion
rb1980_75708
Nimbostratus
Jan 29, 2011node names
Is there any way to get the node "name" in an iRule? I have a rule that is currently putting the info from LB::server name into a header for diagnostics, but I have a lot of nodes and...
Chris_Miller
Altostratus
Jan 29, 2011One option would be using a class/data group. You could create a relationship between the node's IP address and it's friendly name. What version are you using?
An example for 10.1 and later would be to use class search - value.
You'd define a string-type data group (named servernames below) where the field was 192.168.0.100 and value was webserver1. Then, you might use a rule like the following:
when HTTP_REQUEST {
HTTP::header insert "server_name" [class search - value servernames eq [LB::server addr]]
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects