nbsPortEnable
GSWITCH-MIB ·
.1.3.6.1.4.1.629.2.5.1.1.2
Object
column mandatory
r/w
Enumeration
Port Enable. 1 - Port is enabled 2 - Port is disabled
Context
- MIB
- GSWITCH-MIB
- OID
.1.3.6.1.4.1.629.2.5.1.1.2- Type
- column
- Access
- readwrite
- Status
- mandatory
- Parent
- nbsPortsContEntry
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 'GSWITCH-MIB' -M '/opt/observium/mibs/mrv:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'GSWITCH-MIB::nbsPortEnable'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'GSWITCH-MIB' -M '/opt/observium/mibs/mrv:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'GSWITCH-MIB::nbsPortEnable.<nbsPortIndex1>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'GSWITCH-MIB' -M '/opt/observium/mibs/mrv:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'GSWITCH-MIB::nbsPortEnable'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | enable |
2 | disable |