mcontrolRestart
CPS-MIB ·
.1.3.6.1.4.1.3808.2.3.1
Object
scalar mandatory
r/w
Enumeration
Setting this OID to restartCurrentSystem (2) will restart the current system. Setting this OID to restartCurrentAgent (3) will restart the current agent. Setting this OID to restartCurrentSystemAnd Agent (4) will restart the current system and agent.
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 'CPS-MIB' -M '/opt/observium/mibs/cyberpower:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CPS-MIB::mcontrolRestart.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'CPS-MIB' -M '/opt/observium/mibs/cyberpower:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'CPS-MIB::mcontrolRestart'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | none |
2 | restartCurrentSystem |
3 | restartCurrentAgent |
4 | restartCurrentSystemAndAgent |