Forum Discussion
donmunyak_10415
Nimbostratus
Aug 08, 2008Virtual 'Offline' reporting from LTM console.
re: Virtual 'Offline' reporting from LTM console.
I am trying to compile a list of Virtuals where the status = Offline.
Basically house cleaning on a given LTM
I cannot find a reference or attribute for "VIRTUAL status = Available | Unavailable | Offline | Unknown"
b virtual virtual_name show ....shows everything about a 'specific' virtual.
b virtual all |grep -i "inactive,down" .... shows all inactive down pools
I need a one line command to output all Virtuals which have inactive,down pools OR status Offline... which ever would be easiest.
I hoping to get an answer to my question .. or a better solution
Thanks
2 Replies
- Singh_74932
Nimbostratus
i think the easiet will be a snmpwalk and then grep or something or use snmp + perl or something .. - jlarger
Cirrus
To see offline virtuals:
From tmsh: show ltm virtual | grep offline -B 3 | grep Ltm
From bash: (so you can use the q switch and output the whole list at once, pipe to a file if desired) tmsh -q show ltm virtual | grep offline -B 3 | grep Ltm
To see virtuals with 0 connections:
From tmsh: show ltm virtual | grep 'Current Connections 0' -B 17 | grep 'Ltm::Virtual'
From bash: tmsh -q show ltm virtual | grep 'Current Connections 0' -B 17 | grep 'Ltm::Virtual'
Used on 11.6.3
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