Rest API for CPU utilization

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

Rest API for CPU utilization

L2 Linker



I'm trying to create a Rest API URL to check the CPU utilization on my management and data planes and create a report to monitor over time. Using commands like show running resource-monitor did not give me exactly what I was looking for. I used the <firewall ip>/debug and got the following XML:


<response status="success">


I'm having problems getting it into Rest API URL format and wanted to see if someone more experienced with this could help. Thank you!


Cyber Elite
Cyber Elite

This is actually generated through a collection of things that you can't easily mimic via the API. I guess the real question would be what you are trying to get with this information and why? It's going to be a lot of scripting to get this anywhere close to what you are looking at in the debug console. 


Session information:

Can be gathered a few ways; but for those running multiple vsys it's easiest to simply do the following since it breaks down the <current/> number of sessions by <vsys/>



If you only have a sole <vsys> then you can simply run the session info and get the value of <num-active/>


Management CPU Utilization:

There really isn't an easy way to parse the result due to the data structure. 



Dataplane CPU Utilization: 

This would depend on how opten you are running this, I provided an hour. 


You would have to average a lot of the return results to get the same result that you presented due to how the data is actually strucutred. 

L7 Applicator

@BPry wrote:

Management CPU Utilization:

There really isn't an easy way to parse the result due to the data structure. 


With some regex this shouldn't be a problem (here an example that fetches the different CPU values that this output provides in regex capture groups:

  • 2 replies
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!