agentSSHMgmtPortNum

EdgeSwitch-MGMT-SECURITY-MIB · .1.3.6.1.4.1.4413.1.1.11.2.10

Object

scalar r/w Integer32
Get/Set the TCP port number that the SSH server listens to for incoming
requests. The port number is an integer value from 1 to 65535. Before setting
this object, check your system (e.g. using 'netstat') to make sure the desired
port number is not currently being used by any other service. The default
value for this object is 22.
          
Note that existing SSH login sessions are not affected by a change in value of
this object, although establishment of any new SSH sessions must use the new 
port number.

Context

MIB
EdgeSwitch-MGMT-SECURITY-MIB
OID
.1.3.6.1.4.1.4413.1.1.11.2.10
Type
scalar
Access
readwrite
Status
current
Parent
agentSSHConfigGroup

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

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

Syntax

Integer32

Values & Constraints

Object Constraints
range: 1-65535