upsConfigDateAndTime
CPQPOWER-MIB ·
.1.3.6.1.4.1.232.165.3.9.5
Object
scalar mandatory
r/w
OctetString
Date and time information for the UPS. Setting this variable will initiate a set UPS date and time to this value. Reading this variable will return the UPS time and date. This value is not referenced to sysUpTime. It is simply the clock value from the UPS real time clock. Format is as follows: MM/DD/YYYY:HH:MM:SS.
Context
- MIB
- CPQPOWER-MIB
- OID
.1.3.6.1.4.1.232.165.3.9.5- Type
- scalar
- Access
- readwrite
- Status
- mandatory
- Parent
- upsConfig
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'CPQPOWER-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CPQPOWER-MIB::upsConfigDateAndTime.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'CPQPOWER-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'CPQPOWER-MIB::upsConfigDateAndTime'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 0-22