For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

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

 

1 Reply

  • grep is a valid filter within tmsh

    (tmos) list ltm node one-line | grep "1.2.3.4"

    cut will not work, however.