Getting PAN-OS version from XML-API

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

Getting PAN-OS version from XML-API

Not applicable

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?

3 REPLIES 3

L4 Transporter

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

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

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

  • 2952 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!