Forum Discussion

donmunyak_10415's avatar
donmunyak_10415
Icon for Nimbostratus rankNimbostratus
Aug 08, 2008

Virtual '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

  • i think the easiet will be a snmpwalk and then grep or something or use snmp + perl or something ..
  • 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