Forum Discussion

Amit585731's avatar
Amit585731
Icon for Nimbostratus rankNimbostratus
Aug 01, 2015

Number of active and inactive vips

Hello All,

 

Is there anyway command which can tell number of active and inactive vips on LTM? Also real server attached to it?

 

I can count is manually but it is manual effort and will take a lot of time. So just wanted to confirm is there any way?

 

Thanks.

 

7 Replies

  • kunjan's avatar
    kunjan
    Icon for Nimbostratus rankNimbostratus

    You can try cli tmsh list ltm virtual enabled/disabled and do grep

    eg:

    For disabled VS count

    tmsh list ltm virtual disabled| grep disabled | wc -l

    To list enabled VS

    tmsh list ltm virtual enabled  | grep -B1 enabled
  • Kunjan,

     

    Thanks for answer. But I am getting error 'Syntax Error: "-B1" unsupported option'. Any suggestion?

     

    Thanks

     

  • kunjan's avatar
    kunjan
    Icon for Nimbostratus rankNimbostratus

    Are you running this on BigIP CLI? Which version of BigIP are you on? Can try egrep instead grep?

     

    Can you also run grep --version ?

     

  • Kunjan,

     

    egrep also doesn't work.

     

    Yes I am using CLI and code 11.5.1.

     

    Thanks

     

  • kunjan's avatar
    kunjan
    Icon for Nimbostratus rankNimbostratus

    Interesting, it works for me in 11.5.1. Can you run

    grep --version
    ?

  • Thanks Kunjan and arpydays... after putting space as suggested by arpydays it worked.