1820105 Members
3087 Online
109611 Solutions
New Discussion юеВ

Synergy API

 
KaosAxe
Frequent Visitor

Synergy API

Hello

Trying to get a basic health status from the Synergy blade array, using curl.

I've got curl talking to the array ok, and got this working:

curl -s -k -H "accept: application/json" -H "content-type: application/json" -H "auth: someid" -X GET https://mysynergymachine/rest/server-hardware

That brings back a ton of rubbish. I just want a basic ok/error if that is possible.

According to the api doc in server-hardware there is a status flag that seems to have ok/disabled/warning/critical which looks promising.

But I cannot get it to retrieve this data.

Appreciate any help

3 REPLIES 3
Parvez_Admin
Community Manager

Re: Synergy API

Hello @KaosAxe 

As there is no response to the query yet, I would recommend to directly contact technical support and log a support call for quicker resolution. Please refer the links below for support ticket options:

https://support.hpe.com/help/en/Content/supportAndOtherResources.html

https://www.hpe.com/psnow/doc/A00039121ENW


Thanks,
Parvez_Admin
I work for HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
CM_Cert_Logo_Color.png
Casper42
Respected Contributor

Re: Synergy API

Synergy uses OneView for the Management.

Try reading this:

https://techlibrary.hpe.com/docs/enterprise/servers/oneview6.0/cicf-api/en/index.html#rest/server-hardware

Likely you are getting a list of blades or all details for all blades.

KaosAxe
Frequent Visitor

Re: Synergy API

Thanks,

I've been reading this.

The hardware-status looks the right thing:

curl -s -k -H "accept: application/json" -H "content-type: application/json" -H "auth: someid" -X GET https://mysynergymachine/rest/server-hardware

But I want to add the status flag, but I am struggling to get the syntax right.