Forum Discussion
Amador_130070
Nimbostratus
Jul 29, 2014Use iControl API to query for node list for IP verification and hostname resolve.
I would like to write a script using python that will pull a node list from F5 of node names ONLY included in all partitions. The output could be a text file with the list or my script will parse th...
StephanManthey
Nacreous
Feb 03, 2015In case you are considering a plain tmsh based solution the following approach may help as well:
tmsh -q -c "cd /; list ltm node recursive one-line"
ltm node Common/CommonNode_181 { address 10.131.131.181 }
ltm node partitionA/partionA_Node_182 { address 10.131.131.182 partition partitionA }
ltm node partitionB/partionB_Node_183 { address 10.131.131.183 partition partitionB }
tmsh -q -c "cd /; list ltm node recursive one-line" | awk '{print $3}'
Common/CommonNode_181
partitionA/partionA_Node_182
partitionB/partionB_Node_183
tmsh -q -c "cd /; list ltm node recursive one-line" | awk -F '[ /]' '{print $4}'
CommonNode_181
partionA_Node_182
partionB_Node_183
Thank, Stephan
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