swDevInfoTotalNumOfPort
DGS3120-24SC-L2MGMT-MIB ·
.1.3.6.1.4.1.171.11.117.4.1.2.1.1.1
Object
scalar Integer32
The number of ports within this switch. This value is the sum of the ports within this switch.
Context
- MIB
- DGS3120-24SC-L2MGMT-MIB
- OID
.1.3.6.1.4.1.171.11.117.4.1.2.1.1.1- Type
- scalar
- Access
- readonly
- Status
- current
- Parent
- swL2DevInfo
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 'DGS3120-24SC-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DGS3120-24SC-L2MGMT-MIB::swDevInfoTotalNumOfPort.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DGS3120-24SC-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DGS3120-24SC-L2MGMT-MIB::swDevInfoTotalNumOfPort'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-65535