ipv4DefaultGateway

MOXA-NP6000-MIB · .1.3.6.1.4.1.8691.2.8.1.3.4

Object

scalar r/w SNMPv2-SMIIpAddress
A gateway is a network computer that acts as an
entrance to another network. Usually, the computers
that control traffic within the network or at the
local Internet service provider are gateway nodes.
The NPort needs to know the IP address of the 
default gateway computer in order to communicate with 
the hosts outside the local network environment. 
For correct gateway IP address information, 
consult with the network administrator.

Context

MIB
MOXA-NP6000-MIB
OID
.1.3.6.1.4.1.8691.2.8.1.3.4
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::ipv4DefaultGateway.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::ipv4DefaultGateway'

Syntax

Source
SNMPv2-SMIIpAddress
Base type
OctetString

Values & Constraints

Type Constraints
range: 4