- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
10-19-2015 05:47 PM
We run Panorama v7.01 and have a requirement to edit the template stack from the CLI.
The CLI path is as follows:
configure
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,
Shannon
10-20-2015 08:05 AM
This syntax works:
set template-stack teststack templates [ testtemplate1 testtemplate2 ]
10-20-2015 08:05 AM
This syntax works:
set template-stack teststack templates [ testtemplate1 testtemplate2 ]
10-20-2015 11:30 AM
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.
Cheers,
Shannon
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!