agentInetPortNumber

LHX-MIB · .1.3.6.1.4.1.13742.9.0.0.13

Object

The UDP port number used for accessing 
the SNMP agent on the device.
Examples: 
     If the associated device MIB (PX2-MIB, EMD-MIB) has deviceCascadeType set to portForwarding, then
         master: 50500
         slave 1:50501
         slave 2: 50502
         ...... 
     If cascading mode is not portForwarding and default (Standard) ports are being used, then
          port: 161

Context

MIB
LHX-MIB
OID
.1.3.6.1.4.1.13742.9.0.0.13
Type
scalar
Access
notifyonly
Status
current
Parent
trapInformation
Groups
1

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

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

Values & Constraints

Type Constraints
range: 0..65535

Conformance