juniBgpPeerLocalAsNumber
Juniper-BGP-MIB ·
.1.3.6.1.4.1.4874.2.2.29.1.4.1.42
Object
column deprecated
r/w
Integer32
Deprecated. The local autonomous system number to be used for this peer. Value zero (0) means that the global local automous system number (as specified in the object juniBgpPeerLocalAsNumber) is used. This object has been replaced by juniBgpPeerFourOctetLocalAsNumber. It is still possible to get and set this object, but if the actual local AS number is greater than 65535, getting this object returns AS-TRANS (23456).
Context
- MIB
- Juniper-BGP-MIB
- OID
.1.3.6.1.4.1.4874.2.2.29.1.4.1.42- Type
- column
- Access
- readwrite
- Status
- deprecated
- Parent
- juniBgpPeerEntry
- Groups
- 3
Net-SNMP examples
How SNMP and these commands workWalk 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 'Juniper-BGP-MIB' -M '/opt/observium/mibs/junose:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'Juniper-BGP-MIB::juniBgpPeerLocalAsNumber'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'Juniper-BGP-MIB' -M '/opt/observium/mibs/junose:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'Juniper-BGP-MIB::juniBgpPeerLocalAsNumber.<juniBgpPeerVrfName>.<juniBgpPeerRemoteAddress>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'Juniper-BGP-MIB' -M '/opt/observium/mibs/junose:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'Juniper-BGP-MIB::juniBgpPeerLocalAsNumber'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-65535