Forum Discussion

David__Pasch's avatar
David__Pasch
Icon for Altostratus rankAltostratus
Jun 26, 2019

TMSH equivalent command for virtual count

Version 11-13.   Guys, I am looking for a command similar to "tmsh list one-line | wc -l" thank I can run IN the tmsh shell. or any command that will clearly give me a count of victua...
  • iaine's avatar
    Jun 26, 2019

    Hi

     

    Have you tried grep -c from tmsh to count the number of matches. So something like

     

    list ltm virtual | grep -c "ltm virtual"