How to set CLI output in Operational mode

Reply
Highlighted
L1 Bithead

How to set CLI output in Operational mode

Hi everyone,


I'm working with different models of PaloAlto firewall (all of them have PANOS 8) 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.

Community Team Member

Re: How to set CLI output in Operational mode

Hi @mikiTeleco,

 

It this what you're looking for ?

 

 

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

 

Cheers !

-Kiwi.

L1 Bithead

Re: How to set CLI output in Operational mode

Yes! Thank you very much :)

 

Regards!

L2 Linker

Re: How to set CLI output in Operational mode

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

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 Live Community as a whole!

The Live Community thanks you for your participation!