Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

Panorama CLI - list of values

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Panorama CLI - list of values

L2 Linker

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

 

 

1 accepted solution

Accepted Solutions

L4 Transporter

This syntax works:

set template-stack teststack templates [ testtemplate1 testtemplate2 ]

View solution in original post

2 REPLIES 2

L4 Transporter

This syntax works:

set template-stack teststack templates [ testtemplate1 testtemplate2 ]

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

  • 1 accepted solution
  • 3347 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!