hmRouterIfSubnetMask
HIRSCHMANN-ROUTER-MIB ·
.1.3.6.1.4.1.248.14.6.2.1.4
Object
DURABLE: Netmask of the subnet. It contains 1's in the bit positions for the subnet and 0's in the bit positions for the host. The 1's must be contiguous, starting with the left most bit.
Context
- MIB
- HIRSCHMANN-ROUTER-MIB
- OID
.1.3.6.1.4.1.248.14.6.2.1.4- Type
- column
- Access
- readwrite
- Status
- mandatory
- Parent
- hmRouterIfEntry
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 'HIRSCHMANN-ROUTER-MIB' -M '/opt/observium/mibs/hirschmann:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HIRSCHMANN-ROUTER-MIB::hmRouterIfSubnetMask'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HIRSCHMANN-ROUTER-MIB' -M '/opt/observium/mibs/hirschmann:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HIRSCHMANN-ROUTER-MIB::hmRouterIfSubnetMask.<hmRouterIfIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HIRSCHMANN-ROUTER-MIB' -M '/opt/observium/mibs/hirschmann:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HIRSCHMANN-ROUTER-MIB::hmRouterIfSubnetMask'
Syntax
- Source
- RFC1155-SMIIpAddress
- Base type
OctetString
Values & Constraints
Type Constraints
range: 4