Forum Discussion
msaunders
Nimbostratus
Oct 13, 2017list 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
- Simon_Blakely
Employee
grep is a valid filter within tmsh
(tmos) list ltm node one-line | grep "1.2.3.4"
cut will not work, however.
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