Forum Discussion
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
- Cory_50405
Noctilucent
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.
- Rob_Holley_7848
Nimbostratus
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-lineSyntax 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
Nimbostratus
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.
- nitass
Employee
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 }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com