hardwareNumOfPorts
G6-HARDWARE-MIB ·
.1.3.6.1.4.1.3181.10.6.1.31.105
Object
scalar Integer32
Total number of Ethernet ports this hardware offers.
Context
- MIB
- G6-HARDWARE-MIB
- OID
.1.3.6.1.4.1.3181.10.6.1.31.105- Type
- scalar
- Access
- readonly
- Status
- current
- Parent
- hardware
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 'G6-HARDWARE-MIB' -M '/opt/observium/mibs/microsens:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'G6-HARDWARE-MIB::hardwareNumOfPorts.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'G6-HARDWARE-MIB' -M '/opt/observium/mibs/microsens:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'G6-HARDWARE-MIB::hardwareNumOfPorts'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-255