devicePortsOn
REPEATER-MIB-2 ·
.1.3.6.1.4.1.52.1.2.1.1.5
Object
A read will return the number of adminstratively ON ports for the device. A write of a 1 will administratively enable all the ports on the device, except for redundant ports.
Context
- MIB
- REPEATER-MIB-2
- OID
.1.3.6.1.4.1.52.1.2.1.1.5- Type
- scalar
- Access
- readwrite
- Status
- mandatory
- Parent
- device
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 'REPEATER-MIB-2' -M '/opt/observium/mibs/cabletron:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'REPEATER-MIB-2::devicePortsOn.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'REPEATER-MIB-2' -M '/opt/observium/mibs/cabletron:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'REPEATER-MIB-2::devicePortsOn'
Syntax
- Source
- SNMPv2-SMIInteger32
- Base type
Integer32
Values & Constraints
Type Constraints
range: -2147483648..2147483647