bgpPeerLocalPort

DC-BGP-MIB · .1.2.826.42.1.1578918.5.65.1.3.1.1.1.9

Object

The local port configured for the peering session, or zero
if not specified.
              
For outbound connections, if a local port is specified
then DC-BGP will bind to the specified local port.
Otherwise the local port is selected by the TCP/IP stack.
              
For incoming connections, if a local port is specified
then the incoming connection must match the specified local
port.  Otherwise the local port used by the incoming
connection is ignored.
              
This should typically be set to zero.
              
The bgpPeerSelectedLocalPort field shows the local port
actually in use.

Context

MIB
DC-BGP-MIB
OID
.1.2.826.42.1.1578918.5.65.1.3.1.1.1.9
Type
column
Access
noaccess
Status
current
Parent
bgpPeerEntry

Walk the column to discover its indexed instances, or supply every index to read one instance.

Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'DC-BGP-MIB' -M '/opt/observium/mibs/versa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DC-BGP-MIB::bgpPeerLocalPort'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'DC-BGP-MIB' -M '/opt/observium/mibs/versa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DC-BGP-MIB::bgpPeerLocalPort.<bgpRmEntIndex>.<bgpPeerLocalAddrType>.<bgpPeerLocalAddr>.<bgpPeerLocalPort>.<bgpPeerRemoteAddrType>.<bgpPeerRemoteAddr>.<bgpPeerRemotePort>.<bgpPeerLocalAddrScopeId>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DC-BGP-MIB' -M '/opt/observium/mibs/versa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DC-BGP-MIB::bgpPeerLocalPort'

Values & Constraints

Type Constraints
range: 0..65535