serverPowerControlOperation
PDU2-MIB ·
.1.3.6.1.4.1.13742.6.4.12.1.1.1
Object
Reading the variable returns the current power state of the server. Writing on(1) or off(2) results in a power control operation, switching the configured power target on or initiating a graceful shutdown. Writing any other value results in an error.
Context
- MIB
- PDU2-MIB
- OID
.1.3.6.1.4.1.13742.6.4.12.1.1.1- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- serverPowerControlEntry
- Groups
- 1
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'PDU2-MIB' -M '/opt/observium/mibs/raritan:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'PDU2-MIB::serverPowerControlOperation'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'PDU2-MIB' -M '/opt/observium/mibs/raritan:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'PDU2-MIB::serverPowerControlOperation.<pduId>.<serverID>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'PDU2-MIB' -M '/opt/observium/mibs/raritan:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'PDU2-MIB::serverPowerControlOperation'
Syntax
- Source
- ServerPowerStateEnumeration
- Base type
Enumeration
Values & Constraints
Type Values
0 | unknown |
1 | on |
2 | off |
3 | shuttingDown |
Conformance
Member of