Servers - General
1771390 Members
2838 Online
109005 Solutions
New Discussion

HPE G2 Metered & Switched PDU RestAPI

 
JSachetti
Frequent Visitor

HPE G2 Metered & Switched PDU RestAPI

Hello,

Has anyone used redfish to automate the configurations of the PDU's to include adding SNMPv3 users; NTP settings; etc.. ??  Can't seem to find much documentation about it.

Thanks for any help you can provide.

-Jon

2 REPLIES 2
berniece25
Visitor

Re: HPE G2 Metered & Switched PDU RestAPI

The HPE G2 Metered & Switched PDU RestAPI is an API that allows users to remotely monitor and manage power usage in their data center. It provides a set of HTTP endpoints for interacting with the PDU, including querying power consumption data, configuring power management settings, and more.

 

Vinky_99
Esteemed Contributor

Re: HPE G2 Metered & Switched PDU RestAPI

@JSachetti 

Hello!

Yes, it is possible to use Redfish to automate the configurations of HPE G2 Metered & Switched PDUs, including adding SNMPv3 users and NTP settings. Redfish is a standardized RESTful API that provides a way to manage server hardware and firmware components.

To use Redfish to automate configurations of HPE G2 Metered & Switched PDUs, you will need to have the appropriate Redfish client library installed and be familiar with the Redfish API documentation for the PDU.

I would recommend starting with the HPE G2 Metered & Switched PDU Redfish API Reference Guide, which can be found on the HPE website. This guide provides information on the Redfish resources, properties, and actions that can be used to manage the PDU.

In particular, you will want to look at the SNMPv3 and NTP resources and properties that are available in the Redfish API. These resources and properties will allow you to add SNMPv3 users and configure NTP settings on the PDU.

Once you are familiar with the Redfish API for the PDU, you can use a Redfish client library to automate the configurations. Popular Redfish client libraries include Redfish-Python and Redfish-CLI. These libraries allow you to interact with Redfish APIs using programming languages like Python or command-line tools.

Overall, using Redfish to automate configurations of HPE G2 Metered & Switched PDUs can save time and reduce the risk of errors that can occur with manual configurations. However, it does require some technical knowledge and familiarity with the Redfish API and client libraries.

These are my opinions so use it at your own risk.