Forum Discussion
tmkuzma_138268
Nimbostratus
Feb 04, 2014V11.2.1 CLI TMSH Command Structure Help
I am trying to get use to writing changes in v11.2.1 TMSH CLI and I am having trouble figuring out when the {} are needed in commands.
Looking at the create/modify virtual in the TMSH guide the...
Mike_61663
Cirrus
Feb 04, 2014The way to determine whether a brace/curly bracket is needed in a tmsh command is simply to type the partial command and press the key. This triggers tmsh command completion and where there are multiple possibilities, lists the valid options.
e.g. From an interactive TMSH session, type in
create ltm virtual vxxn4-xx-443
but don't press , instead press the key.
You will see that it lists both "description" and "{" as valid inputs (as well as lots of other options too).
Mike_61663
Cirrus
Feb 04, 2014Sorry about that, I meant the TAB key - I had an HTML markup issue with my last post - fixed now so it should be readable!
My point is that BOTH versions of the command that you specified will be valid. The curly brace is optional in this case. What I was saying is to determine whether you need to use it or not, simply use command completion! If it is "required" then it will appear as the only option.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects