Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Frederic_Kasmir
Participant

Retrieve clusterXL status via PowerShell

Hello Guys,

Do you know a way to retrieve the clusterXL status (which gateway is active) via a script in PowerShell? I was looking to the API but it seems only related to the management side.

It should be possible via an SSH connection but I wonder if there isn't a better solution?

Thanks

4 Replies
XBensemhoun
Employee
Employee

Well ; you could execute a remote command on the Security Management Server using : How to manage Security Gateway using the "cprid_util" tool ; the command to execute is "cphaprob stat"

Information Security enthusiast, CISSP, CCSP
Frederic_Kasmir
Participant

Thanks for your feedback. It looks good but limited as we need to execute this on the SmartCenter? It will be limited to have a multi vendors script.

0 Kudos
PhoneBoy
Admin
Admin

You can use the R80 API (specifically run-script) to execute CLI commands on the gateway. 

Which means it can be executed via PowerShell using a PowerShell module like: https://community.checkpoint.com/docs/DOC-2163?sr=search&searchId=d45599bd-5af5-40f5-b3c8-d7dc8ac84b...

Frederic_Kasmir
Participant

It looks very nice I will try it. Thanks.