h3cBgpEvpnPAtrASPathSegment

H3C-BGP-EVPN-MIB · .1.3.6.1.4.1.2011.10.2.172.1.1.2.1.7

Object

column OctetString
The sequence of AS path segments.  Each AS
path segment is represented by a triple
<type, length, value>.
              
 The type is a 1-octet field which has two
 possible values:
     1      AS_SET: unordered set of ASs a
            route in the UPDATE
            message has traversed
     2      AS_SEQUENCE: ordered set of ASs
            a route in the UPDATE
            message has traversed.
            The length is a 1-octet field containing the
            number of ASs 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;

Context

MIB
H3C-BGP-EVPN-MIB
OID
.1.3.6.1.4.1.2011.10.2.172.1.1.2.1.7
Type
column
Access
readonly
Status
current
Parent
h3cBgpEvpnNbrPrefixEntry

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 'H3C-BGP-EVPN-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'H3C-BGP-EVPN-MIB::h3cBgpEvpnPAtrASPathSegment'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'H3C-BGP-EVPN-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'H3C-BGP-EVPN-MIB::h3cBgpEvpnPAtrASPathSegment.<h3cBgpEvpnPAtrRD>.<h3cBgpEvpnPAtrPeer>.<h3cBgpEvpnPAtrAddrPrefixLen>.<h3cBgpEvpnPAtrAddrPrefix>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'H3C-BGP-EVPN-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'H3C-BGP-EVPN-MIB::h3cBgpEvpnPAtrASPathSegment'

Syntax

OctetString

Values & Constraints

Object Constraints
range: 2-255