switchNum
QTECH-ALT-MIB ·
.1.3.6.1.4.1.2751.100.3.2.1.3
Object
column Integer32
This value is denoting the number of swith in which this port resides. For the non-stackable device,the value is always 1. While for the stackable device, the value is real switch stack number.
Context
- MIB
- QTECH-ALT-MIB
- OID
.1.3.6.1.4.1.2751.100.3.2.1.3- Type
- column
- Access
- readonly
- Status
- current
- Parent
- priPortEntry
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 'QTECH-ALT-MIB' -M '/opt/observium/mibs/qtech:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'QTECH-ALT-MIB::switchNum'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'QTECH-ALT-MIB' -M '/opt/observium/mibs/qtech:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'QTECH-ALT-MIB::switchNum.<portIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'QTECH-ALT-MIB' -M '/opt/observium/mibs/qtech:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'QTECH-ALT-MIB::switchNum'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-16