Forum Discussion
node names
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 would really like to be able to see the "screen" name of the node selected rather than its IP address.
in the conf they appear as:
node 192.168.0.100 {
screen webserver1
}
I'm looking to get that value "webserver1" to put in a header...
- rb1980_75708
Nimbostratus
I did find this post that suggests doing a lookup on the IP. While not really desirable, I guess would work if there are no other options. - Chris_Miller
Altostratus
One 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?when HTTP_REQUEST { HTTP::header insert "server_name" [class search - value servernames eq [LB::server addr]] }
- hoolio
Cirrostratus
You could also open a request for enhancement with F5 Support for getting this functionality to get the node name added to iRules. - Chris_Miller
Altostratus
Posted By hoolio on 01/30/2011 10:22 PM - rb1980_75708
Nimbostratus
Posted By Chris Miller on 01/31/2011 06:27 AM - adharkrader
Nimbostratus
Did anything like this get implemented? It seems like the properties of the various "lists" (pools, nodes, etc) should be accessible from an iRule... maybe I'm just missing it?
Recent Discussions
Related Content
* 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