Forum Discussion

clydee_175326's avatar
clydee_175326
Icon for Nimbostratus rankNimbostratus
Nov 14, 2014

CLI question

Is there a way via cli for tmsh that i can use to run and pull total number of http VIPs configured versus doing a manual count

 

6 Replies

  • If you mean only vips listening on TCP port 80:

    First make sure your BIGIP references service names. Default is service name but it can be changed:

    tmsh list sys db bigpipe.displayservicenames

    If that is 'true':

    To count:

    tmsh list ltm virtual one-line | grep -c "destination [0-9\.]\+:http "

    To see the results, remove the -c:

    tmsh list ltm virtual one-line | grep "destination [0-9\.]\+:http "

    If displayservicenames was false, run the same commands using :80 instead of :http

    • clydee_175326's avatar
      clydee_175326
      Icon for Nimbostratus rankNimbostratus
      Thanks Shaggy For some reason command didn't work. For example if I go to gui and sort by Protocol HTTP I have over 300 HTTP vips but didnt see near as many using commands above
    • shaggy_121467's avatar
      shaggy_121467
      Icon for Cumulonimbus rankCumulonimbus
      what code level are you running? are you leveraging administrative partitions in your configuration?
  • shaggy's avatar
    shaggy
    Icon for Nimbostratus rankNimbostratus

    If you mean only vips listening on TCP port 80:

    First make sure your BIGIP references service names. Default is service name but it can be changed:

    tmsh list sys db bigpipe.displayservicenames

    If that is 'true':

    To count:

    tmsh list ltm virtual one-line | grep -c "destination [0-9\.]\+:http "

    To see the results, remove the -c:

    tmsh list ltm virtual one-line | grep "destination [0-9\.]\+:http "

    If displayservicenames was false, run the same commands using :80 instead of :http

    • clydee_175326's avatar
      clydee_175326
      Icon for Nimbostratus rankNimbostratus
      Thanks Shaggy For some reason command didn't work. For example if I go to gui and sort by Protocol HTTP I have over 300 HTTP vips but didnt see near as many using commands above
    • shaggy's avatar
      shaggy
      Icon for Nimbostratus rankNimbostratus
      what code level are you running? are you leveraging administrative partitions in your configuration?