Definition at line 9 of file PowerDeviceManager.idl.
◆ addPowerDevice()
Add a new power device (PDU)
- Parameters
-
| settings | Settings for creating the new power device |
- Returns
- 0 on success
-
1 if any given setting was invalid
-
2 if a PDU with that host name or name already exists
-
3 if the maximum number of PDUs is reached
-
101..106 in case of an SNMP error during PDU connection (see constants in
PowerDevice
◆ deletePowerDevice()
| int radm::PowerDeviceManager::deletePowerDevice |
( |
in string | host | ) |
|
Remove the given power device (PDU)
- Parameters
-
| host | Host name of the PDU to be removed |
- Returns
- 0 on success
-
4 if there is no PDU with that host name
◆ getPowerDevices()
| map< string, PowerDevice > radm::PowerDeviceManager::getPowerDevices |
( |
| ) |
|
Get configured power devices.
- Returns
- Map of configured power devices, keyed by host name
◆ getSettings()
| Settings radm::PowerDeviceManager::getSettings |
( |
| ) |
|
Get global power device settings.
- Returns
- Settings
◆ setSettings()
| int radm::PowerDeviceManager::setSettings |
( |
in Settings | settings | ) |
|
Set global power device settings.
- Parameters
-
- Returns
- 0 on success
-
1 if any setting was invalid
◆ ERR_INVALID_ARGUMENT
| constant int radm::PowerDeviceManager::ERR_INVALID_ARGUMENT = 1 |
◆ ERR_MAX_PDUS_REACHED
| constant int radm::PowerDeviceManager::ERR_MAX_PDUS_REACHED = 3 |
◆ ERR_PDU_ALREADY_EXISTS
| constant int radm::PowerDeviceManager::ERR_PDU_ALREADY_EXISTS = 2 |
◆ ERR_PDU_NOT_FOUND
| constant int radm::PowerDeviceManager::ERR_PDU_NOT_FOUND = 4 |
The documentation for this interface was generated from the following file: