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

Stupid question, but how to show all vsys in CLI with one command?

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

Stupid question, but how to show all vsys in CLI with one command?

L0 Member

Hey guys, this may be a stupid question but I just cannot find the appropriate command for this after googling for nearly an hour. I just want to display all vsys via CLI in one command without the need of "?". Something like show virtual-system all or so. Is this even possible?

2 REPLIES 2

Cyber Elite
Cyber Elite

Hello @Yunus_Salem

 

from the documentation cli command hierarchy I do not see any command that will fulfil your requirement, however I think it is possible with API. Could you check whether this works (I do not have a device with vsys license to test it with)?

 

curl -X GET "https://<firewall>/api/?key=<api_key>&type=op&cmd=<show><vsys></vsys>"

 

Kind Regards

Pavel

Help the community: Like helpful comments and mark solutions.

Cyber Elite
Cyber Elite

Hi @Yunus_Salem ,

 

You can use the command "set system setting target-vsys ?" and see the virtual systems listed as options.

 

https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-cli-quick-start/cli-cheat-sheets/cli-cheat-sheet...

 

Thanks,

 

Tom

Help the community: Like helpful comments and mark solutions.
  • 2533 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!