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

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
Highlighted
Silver

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"

Highlighted

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
Highlighted
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...

Highlighted

It looks very nice I will try it. Thanks.