Forum Discussion

Ryan_01_132451's avatar
Ryan_01_132451
Historic F5 Account
Mar 20, 2014

TMSH command help

Do you know how to list out the virtuals pools rules etc… in one-line. The below doesn’t work

 

List ltm virtual destination pool rules snat snatpool one-line

 

And I was hoping to get the above to work similar to the below

 

List ltm virtual non-default-properties one-line

 

4 Replies

  • Yes, doesn't appear the one-line modifier is applicable to that command. Suspect it's because there is a lot of dependency that the command needs to show and it can't (or isn't ideal) to put it all in one line.

     

  • This really is more of a parsing bug. Once you add properties to the command it no longer interprets an option.

     

    list /ltm virtual description one-line

    Syntax Error: "one-line" unknown property

     

    I would think that output formatting options could be honored, even with a subset of the full data. This should be corrected in the command line parser.

     

    • shaggy's avatar
      shaggy
      Icon for Nimbostratus rankNimbostratus
      i recommend opening a support case and requesting the feature. it would definitely be a nice additional feature to tmsh if one-line worked when specifying options.
  • what about this?

    [root@ve11a:Standby:In Sync] config  for name in `tmsh list ltm virtual | grep ltm\ virtual | cut -d ' ' -f 3`; do tmsh list ltm virtual $name pool rules | xargs echo -n; echo; done
    ltm virtual bar { pool foo rules { qux } }
    ltm virtual fwd { pool none rules none }