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

How to set CLI output in Operational mode

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

How to set CLI output in Operational mode

L1 Bithead

Hi everyone,


I'm working with different models of PaloAlto firewall (all of them have PANOS 😎 and  I want to develop an automatic service on them to get the CLI output and parse it to get data I'm interested but, to do that as easy as possible, I want to know if is possible set the CLI output to XML or JSON format in Operational Mode (not Configuration Mode).


I know that with this command:

> set cli config-output-format 
  default   default
  json      json
  set       set
  xml       xml


change the output of Configuration Mode . But this does not work with Operational Mode.

Can someone help me? Thanks beforehand.

Regards, Mike.

1 accepted solution

Accepted Solutions

Community Team Member

Hi @mikiTeleco,

 

It this what you're looking for ?

 

 

admin@PA-VM> set cli op-command-xml-output on

 

Cheers !

-Kiwi.

LIVEcommunity team member, CISSP
Cheers,
Kiwi
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.

View solution in original post

3 REPLIES 3

Community Team Member

Hi @mikiTeleco,

 

It this what you're looking for ?

 

 

admin@PA-VM> set cli op-command-xml-output on

 

Cheers !

-Kiwi.

LIVEcommunity team member, CISSP
Cheers,
Kiwi
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.

Yes! Thank you very much 🙂

 

Regards!

@kiwi I am looking for the same thing just on panorama, does something exist for this on panorama as well?

  • 1 accepted solution
  • 7461 Views
  • 3 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!