We run Panorama v7.01 and have a requirement to edit the template stack from the CLI.
The CLI path is as follows:
edit template-stack <stackname>
set template ???
Under the set template context I need to add a list of templates, however cannot work out the correct syntax. The help (?) switch shows "[ start a list of values" but if I enter a list within square brackets it errors with "invalid syntax". Some variations I have tried:
set template [template1 template2]
set template [template1,template2]
set template [ template1 template2]; (this is what is shown if I do a "show template-stack stackname" from the CLI)
I am starting to wonder if there is a bug in the CLI here.
Has anyone used lists in the Panorama CLI, if so, can you please assist with getting the syntax correct?
Thanks - it was as simple as it does not accept values that are already in the list. For our purposes we want to re-order the list, and the CLI requires we remove all entries then re-add them in the order we want, whereas I was expecting just to be able to add the values over the top of what was there currently.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!