Forum Discussion
Senthil_7991
Nimbostratus
Jun 06, 2017How to see Node/VIP status through CLI
We would like to filter out Node list status " online" " offline" list, How to do that through CLI and also can you please update me if we got any specific command to delete all the offline nodes and VIP's
Thanks
- Ilian_Ivanov
Nimbostratus
Hi,
You can try with:
tmsh show ltm node | grep ^Ltm:: -A5|grep -e '^Ltm::\|^\ \ Availability\|^\ \ State' | grep available -C 1
tmsh show ltm node | grep ^Ltm:: -A5|grep -e '^Ltm::\|^\ \ Availability\|^\ \ State' | grep offline -C 1
Use that command in bash mode.
About your second question, as I know there is no command to delete all offline nodes. But you can grep their names and use:
delete ltm node node1 node2 node3 ...
Regards
- f51
Cumulonimbus
No, it didn't work for me. I am getting unsupported version for this.
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