ipv4NetMask

MOXA-NP6000-MIB · .1.3.6.1.4.1.8691.2.8.1.3.3

Object

scalar r/w SNMPv2-SMIIpAddress
A subnet mask represents all of the network hosts
at one geographic location, in one building, or on
the same local area network. When a packet is sent
out over the network, the NPort will use the subnet mask 
to check whether the TCP/IP host specified in the 
packet is on the local network segment. If the address 
is on the same network segment as the NPort, a connection 
is established directly from the NPort. Otherwise, the
connection is established through the given default
gateway.

Context

MIB
MOXA-NP6000-MIB
OID
.1.3.6.1.4.1.8691.2.8.1.3.3
Type
scalar
Access
readwrite
Status
current
Parent
networkSetting

Scalars have one instance, identified by the .0 suffix.

Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'MOXA-NP6000-MIB' -M '/opt/observium/mibs/moxa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'MOXA-NP6000-MIB::ipv4NetMask.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'MOXA-NP6000-MIB' -M '/opt/observium/mibs/moxa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'MOXA-NP6000-MIB::ipv4NetMask'

Syntax

Source
SNMPv2-SMIIpAddress
Base type
OctetString

Values & Constraints

Type Constraints
range: 4