Forum Discussion

msaunders's avatar
msaunders
Icon for Nimbostratus rankNimbostratus
Oct 13, 2017

list node name where node address = 1.2.3.4 within tmsh

I need to display the name of a node whose IP address is known, as the node name could be either an IP address or a hostname.

 

I know I can do this from the shell: tmsh list ltm node one-line | grep "1.2.3.4" | cut -d" " -f3

 

Is there a way to do the same thing within tmsh?

 

Thanks