mainsLogMode
SP2-MIB ·
.1.3.6.1.4.1.12148.10.3.6.8
Object
scalar r/w
Enumeration
This value determines if the mains outage time or running time should be logged.
Context
- MIB
- SP2-MIB
- OID
.1.3.6.1.4.1.12148.10.3.6.8- Type
- scalar
- Access
- readwrite
- Status
- current
- Parent
- mainsOutageLog
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 'SP2-MIB' -M '/opt/observium/mibs/eltek:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SP2-MIB::mainsLogMode.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SP2-MIB' -M '/opt/observium/mibs/eltek:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SP2-MIB::mainsLogMode'
Syntax
Enumeration
Values & Constraints
Object Constraints
range: 1-20