Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
ukohae
Contributor

Using Ansible to Access Memory Usage of a Device

Hello,


Is there Ansible script  I could use to access the memory usage of a device on checkpoint?

0 Kudos
4 Replies
PhoneBoy
Admin
Admin

While there isn’t a specific API call for this, you should be able to use run-script to get whatever data you need.

0 Kudos
ukohae
Contributor

Hi,

 

Is there any link to the run script?

0 Kudos
PhoneBoy
Admin
Admin

You pass the "script" as an argument to run-script.
You would run standard Linux commands depending on precisely what you're after.
Possibly fw ctl pstat (which gives some firewall kernel-specific info).
Do I have a precise example? No. 

0 Kudos
Chris_Atkinson
Employee Employee
Employee

There are some searchable examples here else see the relevant section of the API reference for more info.

 

https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-run-clish-commands-via-API-run-script/...

CCSM R77/R80/ELITE
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events