How do I use API support to pull active license report from Panorama?

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

How do I use API support to pull active license report from Panorama?

L1 Bithead

Is it possible to use the API to pull an active license "report" from Panorama? If so, how would this be done?

3 REPLIES 3

L4 Transporter

This would depend. Are you currently managing your licenses through Panorama? You could confirm whether you see your licenses under Panorama > Device Deployment > Licenses or the "request batch license..." CLI commands.

 

If you are, you'd just do the

/api/?type=op&cmd=<request><batch><license><info></info></license></batch></request>

but realistically if you had these here, I suspect you'd just view the information in this tab. If the licenses aren't being managed by Panorama, Panorama also has the ability to redirect API calls to the firewalls using the "target=" parameter. This would involved taking an input of the serial numbers of your firewalls (either manually or programmatically using the API call for "show devices connected".

 

This process is explained a little more in depth in the "Query a Firewall from Panorama" section of the XML API Guide. But essentially, you'd want to iterate over all your serial numbers and do the following call:

/api/?type=op&cmd=<request><license><info></info></license></request>&target=XYZ&key=ABC

where XYZ was the serial number of an individual firewall and ABC was the API key.

Thanks, Could you provide me exact api syntax to use. When i enter 

https://<panaroma ip>/api/?type=op&cmd=<request><batch><license><info></info></license></batch></request>

 it results in error.

 

Thanks

Amar

Are you specifiying the API key? Our XMl API guide is a great resource for building your API calls.

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