Forum Discussion
iRule function to get node IP address from node name
I'm trying to create a pool member status page like the one described at this link:
pool-member-status-page-on-a-virtual-server-v11
The command
for POOLNAME in `tmsh list ltm pool | grep -i "ltm pool" | sort | awk '{print $3}'`; do
for POOLMEMBER in `tmsh list ltm pool $POOLNAME | grep : | sort | awk '{print $1}'`; do
echo \"$POOLNAME/$POOLMEMBER\", >> ${classfile}
done
donereturns the pool name, the node name, and the port. It does not return the node IP address. But the LB::status method requires the pool member IP address, not the name. I could probably modify the code to return the IP address, but then I wouldn't have the node name and the port. I'm picky and I would like to have both because I want to display the name of the node/pool member on the web page so the users won't have to look up the IP address, plus the port is required for the LB::status method.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
