BGP4-MIB :: bgp4PathAttrASPathSegment

MIB Reference — IPNetwork Monitor · Updated September 14, 2026

All MIBsBGP4-MIBbgp4PathAttrASPathSegment

bgp4PathAttrASPathSegment

Module: BGP4-MIB

OID (symbolic): BGP4-MIB::bgp4PathAttrASPathSegment

OID (numeric): 1.3.6.1.2.1.15.6.1.5

Node type: OBJECT-TYPE

Type: OCTET STRING

Access: read-only

Description: The sequence of AS path segments. Each AS path segment is represented by a triple . The type is a 1-octet field that has two possible values: 1 AS_SET: unordered set of ASes that a route in the UPDATE message has traversed 2 AS_SEQUENCE: ordered set of ASes that a route in the UPDATE message has traversed. The length is a 1-octet field containing the number of ASes in the value field. The value field contains one or more AS numbers. Each AS is represented in the octet string as a pair of octets according to the following algorithm: first-byte-of-pair = ASNumber / 256; second-byte-of-pair = ASNumber & 255; Known Issues: o BGP Confederations will result in a type of either 3 or 4. o An AS Path may be longer than 255 octets. This may result in this object containing a truncated AS Path.

What is bgp4PathAttrASPathSegment?

This OCTET STRING (2-255 bytes) encodes AS path segments, each formatted as <type, length, value>, where type 1 is AS_SET and type 2 is AS_SEQUENCE. Example: an AS_SEQUENCE segment with ASes 65001, 65002, 65003 represents the ordered path to the destination.

Examples

Walk all instances (SNMPv2c):

snmpwalk -v2c -c public <target> 1.3.6.1.2.1.15.6.1.5
snmpwalk -v2c -c public <target> BGP4-MIB::bgp4PathAttrASPathSegment

Get a specific instance (index 1):

snmpget -v2c -c public <target> 1.3.6.1.2.1.15.6.1.5.1
snmpget -v2c -c public <target> BGP4-MIB::bgp4PathAttrASPathSegment.1

SNMPv3 example:

snmpget -v3 -l authPriv -u snmpv3-user -a SHA -A "AuthPassword1" -x AES -X "PrivPassword1" <target> bgp4PathAttrASPathSegment.1

Start monitoring BGP-speaking routers with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the BGP4-MIB::bgp4PathAttrASPathSegment 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.6bgp4PathAttrTableBGP4-MIB
1.3.6.1.2.1.15.6.1bgp4PathAttrEntryBGP4-MIB
1.3.6.1.2.1.15.6.1.5bgp4PathAttrASPathSegmentBGP4-MIB