cmGwLanAddrHostName
CM-GATEWAY-MIB ·
.1.3.6.1.4.1.1166.1.19.52.1.2.1.3.1.1.7
Object
column r/w
OctetString
This is the Host Name of the LAN IP address, based on DCHP option 12.
Context
- MIB
- CM-GATEWAY-MIB
- OID
.1.3.6.1.4.1.1166.1.19.52.1.2.1.3.1.1.7- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- cmGwLanAddrEntry
- Groups
- 1
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 'CM-GATEWAY-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CM-GATEWAY-MIB::cmGwLanAddrHostName'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'CM-GATEWAY-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CM-GATEWAY-MIB::cmGwLanAddrHostName.<cmGwLanAddrIpType>.<cmGwLanAddrIp>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'CM-GATEWAY-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'CM-GATEWAY-MIB::cmGwLanAddrHostName'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 0-80
Conformance
Member of