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

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
Silver

Re: Retrieve clusterXL status via PowerShell

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"

Re: Retrieve clusterXL status via PowerShell

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
Admin
Admin

Re: Retrieve clusterXL status via PowerShell

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:

Re: Retrieve clusterXL status via PowerShell

It looks very nice I will try it. Thanks.