Getting PAN-OS version from XML-API

Reply
Highlighted
Not applicable

Getting PAN-OS version from XML-API

I was wondering how you can get the current version of the PAN-OS thru the XML-API? I can see the <config version="4.0.0"> when I use the show command but I know that we are really on 4.0.8. How do I get this version number, rather than the 4.0.0?

Tags (1)
L4 Transporter

Re: Getting PAN-OS version from XML-API

Hello,

You can use the "show system info" command to retrieve the PAN-OS version.

https://<hostname>/api/?type=op&cmd=<show><system><info></info></system></show>

The <sw-version> element returned will contain the value you are looking for.

Thanks,

-- Kevin

Not applicable

Re: Getting PAN-OS version from XML-API

Thanks, but I'm looking for a way when using the 4.0 Rest API. Do you know that way?

L4 Transporter

Re: Getting PAN-OS version from XML-API

My apologies.  Unfortunately the 4.0 Rest API can only retrieve or modify the configuration of the device and the PAN-OS version information is not contained in the configuration.

Thanks,

-- Kevin

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!