ipForwarding
SUN-SNMP ·
.1.3.6.1.2.1.4.1
Object
scalar mandatory
r/w
Enumeration
The indication of whether this entity is acting
as an IP gateway in respect to the forwarding of
datagrams received by, but not addressed to, this
entity. IP gateways forward datagrams. IP hosts
do not (except those source-routed via the host).
Note that for some managed nodes, this object may
take on only a subset of the values possible.
Accordingly, it is appropriate for an agent to
return a `badValue' response if a management
station attempts to change this object to an
inappropriate value.
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 'SUN-SNMP' -M '/opt/observium/mibs/oracle:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SUN-SNMP::ipForwarding.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SUN-SNMP' -M '/opt/observium/mibs/oracle:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SUN-SNMP::ipForwarding'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | forwarding |
2 | not-forwarding |