agentSnmpTrapDefaultPortNum

LANCOM-SWITCHING-MIB · .1.3.6.1.4.1.2356.16.1.1.2.6.9

Object

scalar r/w Integer32
Get/Set the default UDP port number that the SNMP agent sends traps
and notifications. The port number is an integer value from 1025 to
65535. Before setting this object, check your system to make sure
the desired port number is not currently being used by any other
service. The default value for this object is 162.

Context

MIB
LANCOM-SWITCHING-MIB
OID
.1.3.6.1.4.1.2356.16.1.1.2.6.9
Type
scalar
Access
readwrite
Status
current
Parent
agentSnmpConfigGroup

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

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

Syntax

Integer32

Values & Constraints

Object Constraints
range: 162-162 range: 1025-65535