Description

This article explains the values reported from the show snmp mib walk jnxBgpM2PeerLocalAddr command.

Symptoms

When "show snmp mib walk jnxBgpM2PeerLocalAddr" is executed, the BGP local address may be displayed with ASCII characters instead of hex values:

lab@R1# run show snmp mib walk jnxBgpM2PeerLocalAddr   
jnxBgpM2PeerLocalAddr.0.1.85.85.85.85.1.85.85.85.86 = UUUU        >>ASCII character
jnxBgpM2PeerLocalAddr.0.1.192.168.12.1.1.192.168.12.2 = c0 a8 0c 01   >>HEX
jnxBgpM2PeerLocalAddr.0.1.192.168.13.1.1.192.168.13.2 = c0 a8 0d 01 
jnxBgpM2PeerLocalAddr.0.1.192.168.14.1.1.192.168.14.2 = c0 a8 0e 01 

Solution

The above is an expected behavior when none of the octets in the local address of the BGP peer is greater than 127.

Example:

Consider the following BGP configuration where the local address of the BGP neighbor has one octet with a value greater than 127:

lab@R1> show configuration interfaces xe-2/0/1  
vlan-tagging;
unit 0 {
    vlan-id 0;
    family inet {
        address 192.168.12.1/24;
    }
    family mpls;
}
unit 1 {
    vlan-id 1;
    family inet {
        address 192.168.13.1/24;
    }
}
unit 2 {
    vlan-id 2;
    family inet {
        address 192.168.14.1/24;
    }
}

lab@R1> show configuration protocols bgp group external 
type external;
peer-as 300;
local-as 200;
neighbor 192.168.12.2;
neighbor 192.168.13.2;
neighbor 192.168.14.2;

When the SNMP MIB walk is executed, the following output is displayed which shows the local address in hexadecimal values:

lab@R1> show snmp mib walk jnxBgpM2PeerLocalAddr
jnxBgpM2PeerLocalAddr.0.1.192.168.12.1.1.192.168.12.2 = c0 a8 0c 01 
jnxBgpM2PeerLocalAddr.0.1.192.168.13.1.1.192.168.13.2 = c0 a8 0d 01 
jnxBgpM2PeerLocalAddr.0.1.192.168.14.1.1.192.168.14.2 = c0 a8 0e 01 

Now consider a configuration where the local address does not have any octect greater than 127, as below.

lab@R1> show configuration protocols bgp group external 
type external;
peer-as 300;
local-as 200;
neighbor 85.85.85.86 {
    local-address 85.85.85.85;
}
neighbor 85.85.85.100 {
    local-address 85.85.85.99;
}

The following output is displayed when the SNMP MIB walk is executed

lab@R1# run show snmp mib walk jnxBgpM2PeerLocalAddr   
jnxBgpM2PeerLocalAddr.0.1.85.85.85.85.1.85.85.85.86 = UUUU    >>ASCII characters
jnxBgpM2PeerLocalAddr.0.1.85.85.85.99.1.85.85.85.100 = UUUc   >>ASCII characters
 

A mapping of the hex to ASCII characters is found in the table below: