2 rest api power and temperature monitoring, 1 update enclosure power capacity settings, 2 update server hardware power capacity settings – HP OneView User Manual

Page 184

Advertising
background image

25.2 REST API power and temperature monitoring

25.2.1 Update enclosure power capacity settings

To update the enclosure capacity settings, perform a PUT operation that includes only the
calibratedMaxPower

attribute. View the enclosure capacity settings attributes by using a GET

operation, edit the calibratedMaxPower attribute, and then perform a PUT operation that
includes only the edited calibratedMaxPower attribute.

Prerequisites

Minimum required session ID privileges: Server administrator

Updating enclosure capacity settings using REST APIs

1.

Select an enclosure URI.

GET /rest/enclosures

2.

Get the enclosure capacity using the URI from step 1.

GET {enclosure URI}/environmentalConfiguration

3.

Edit the enclosure capacity. The only attribute to send in the response body is calibratedMaxPower. Do not
send all attributes from the GET operation.

4.

Update the enclosure capacity.

PUT {enclosure URI}/environmentalConfiguration

25.2.2 Update server hardware power capacity settings

To update server hardware capacity settings, perform a PUT operation that includes only the
calibratedMaxPower

attribute. View server hardware capacity settings attributes by using a

GET

operation, edit the calibratedMaxPower attribute, and then perform a PUT operation that

includes only the edited calibratedMaxPower attribute.

Prerequisites

Minimum required session ID privileges: Server administrator

Updating server hardware capacity settings using REST APIs

1.

Select a server hardware URI.

GET /rest/server-hardware

2.

Get the current server hardware capacity using the URI from step 1.

GET {server hardware URI}/environmentalConfiguration

3.

Edit the server hardware capacity. The only attribute to send in the response body is calibratedMaxPower. Do
not send all attributes from the GET operation.

4.

Update the server hardware capacity.

PUT {server hardware URI}/environmentalConfiguration

184 Monitoring power and temperature

Advertising