BGP4-MIB :: bgpPeerLastError

MIB Reference — IPNetwork Monitor · Updated September 14, 2026

All MIBsBGP4-MIBbgpPeerLastError

bgpPeerLastError

Module: BGP4-MIB

OID (symbolic): BGP4-MIB::bgpPeerLastError

OID (numeric): 1.3.6.1.2.1.15.3.1.14

Node type: OBJECT-TYPE

Type: OCTET STRING

Access: read-only

Description: The last error code and subcode seen by this peer on this connection. If no error has occurred, this field is zero. Otherwise, the first byte of this two byte OCTET STRING contains the error code, and the second byte contains the subcode.

What is bgpPeerLastError?

This OCTET STRING (2 bytes) stores the last error code and subcode; zero indicates no error. The first byte is the error code (e.g., 1=Message Header Error), the second is the subcode. Example: a value of 3/0 means an UPDATE message error; 2/4 indicates a hold timer expired.

Examples

Walk all instances (SNMPv2c):

snmpwalk -v2c -c public <target> 1.3.6.1.2.1.15.3.1.14
snmpwalk -v2c -c public <target> BGP4-MIB::bgpPeerLastError

Get a specific instance (index 1):

snmpget -v2c -c public <target> 1.3.6.1.2.1.15.3.1.14.1
snmpget -v2c -c public <target> BGP4-MIB::bgpPeerLastError.1

Start monitoring BGP-speaking routers with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the BGP4-MIB::bgpPeerLastError OID value, configure state conditions and alerts, and monitor any BGP-speaking routers from a single console.

OID Breakdown

Upper-level ancestors (7 from the standard OID tree / other modules)
Numeric OIDNameModule
1isoLANART-AGENT
1.3orgAirPair-MIB
1.3.6dodAirPair-MIB
1.3.6.1internetAirPair-MIB
1.3.6.1.2mgmtAXON-MIB
1.3.6.1.2.1mib_2AXON-MIB
1.3.6.1.2.1.15bgpBGP-MIB
Numeric OIDNameModule
1.3.6.1.2.1.15.3bgpPeerTableBGP4-MIB
1.3.6.1.2.1.15.3.1bgpPeerEntryBGP4-MIB
1.3.6.1.2.1.15.3.1.14bgpPeerLastErrorBGP4-MIB