Issue Description
software version:V800R009C10SPC200
Customer wan’s to check by SNMP all BGP peers, including peers in VPN-instances (in yellow ).
Right now he uses OID 1.3.6.1.2.1.15.3.1.2 , and that OID returns only last two peers (green color).
<br2.z20>display bgp vpnv4 all peer
BGP local router ID : 10.20.255.130
Local AS number : 44386
Total number of peers : 5 Peers in established state : 5
Peer of IPv4-family for vpn instance :
VPN-Instance INTERNET, Router ID 10.20.255.130:
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
10.20.255.129 4 65321 232869 217061 0 3147h49m Established 2
81.211.78.21 4 3216 11367450 124590 0 1806h32m Established 1329
VPN-Instance INTRANET, Router ID 10.20.255.130:
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
10.20.255.129 4 65321 235791 229054 0 3144h21m Established 430
198.18.150.6 4 44386 47010 48505 0 0674h02m Established 344
198.18.150.13 4 44386 258080 293310 0 0673h01m Established 344
<br2.z20>display bgp peer
BGP local router ID : 10.20.255.130
Local AS number : 44386
Total number of peers : 2 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
10.20.255.129 4 65321 429984 233069 0 3379h15m Established 6
81.211.78.21 4 3216 0 0 0 3312h34m Idle 0
Handling Process
refer to product document and reproduce the issue in label.
#
ipv4-family vpn-instance ABIS_DASN_BSC_01
network 0.0.0.0 route-policy default-route-prefer-value
peer 1.1.1.99 as-number 100
peer 1.1.1.149 as-number 100
#
[~139.100-CX-bgp-ABIS_DASN_BSC_01]disp bgp vpnv4 vpn-instance ABIS_DASN_BSC_01 peer
BGP local router ID : 1.1.1.100
Local AS number : 100
VPN-Instance ABIS_DASN_BSC_01, Router ID 1.1.1.100:
Total number of peers : 2 Peers in established state : 0
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
1.1.1.99 4 100 0 0 0 00:03:01 Active 0
1.1.1.149 4 100 0 0 0 00:11:00 Active 0
C:\usr\bin>snmpwalk.exe -c Huawei@123 -v2c 189.46.139.100 1.3.6.1.4.1.2011.5.25.
177.1.1.1.1.6
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.1.1.6.0.1.1.1.4.1.1.1.99 = STRING: "Pu
blic"
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.1.1.6.0.1.1.1.4.1.1.1.149 = STRING: "P
ublic"
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.1.1.6.0.1.1.1.4.12.0.0.1 = STRING: "Pu
blic"
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.1.1.6.0.1.128.1.4.1.1.1.103 = STRING:
"VPNV4"
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.1.1.6.0.1.128.1.4.1.1.1.149 = STRING:
"VPNV4"
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.1.1.6.1.1.1.1.4.1.1.1.149 = STRING: "A
BIS_DASN_BSC_01"
C:\usr\bin>snmpwalk.exe -c Huawei@123 -v2c 189.46.139.100 1.3.6.1.4.1.2011.5.25.
177.1.1.2.1.4
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.2.1.4.0.1.1.1.4.1.1.1.99 = STRING: "1.
1.1.99"
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.2.1.4.0.1.1.1.4.1.1.1.149 = STRING: "1
.1.1.149"
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.2.1.4.0.1.1.1.4.12.0.0.1 = STRING: "12
.0.0.1"
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.2.1.4.0.1.128.1.4.1.1.1.103 = STRING:
"1.1.1.103"
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.2.1.4.0.1.128.1.4.1.1.1.149 = STRING:
"1.1.1.149"
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.2.1.4.1.1.1.1.4.1.1.1.99 = STRING: "1.
1.1.99"
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.2.1.4.1.1.1.1.4.1.1.1.149 = STRING: "1
.1.1.149"
C:\usr\bin>snmpwalk.exe -c Huawei@123 -v2c 189.46.139.100 1.3.6.1.4.1.2011.5.25.
177.1.1.2.1.5
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.2.1.5.0.1.1.1.4.1.1.1.99 = INTEGER: 3
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.2.1.5.0.1.1.1.4.1.1.1.149 = INTEGER: 3
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.2.1.5.0.1.1.1.4.12.0.0.1 = INTEGER: 6
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.2.1.5.0.1.128.1.4.1.1.1.103 = INTEGER:
6
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.2.1.5.0.1.128.1.4.1.1.1.149 = INTEGER:
3
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.2.1.5.1.1.1.1.4.1.1.1.99 = INTEGER: 3
SNMPv2-SMI::enterprises.2011.5.25.177.1.1.2.1.5.1.1.1.1.4.1.1.1.149 = INTEGER: 3
Solution
It is an inquiry issue and sends the right OID to the customer, for details OID please refer below:
http://support.huawei.com/hedex/pages/EDOC100017018231189709/03/EDOC100017018231189709/03/resources/software/nev8r9_vrpv8r15/user/en-us_topic_0097924040.html?ft=0&fe=10&hib=8.5.10.2.1.3.1&id=EN-US_TOPIC_0097924040&text=hwBgpPeerAddrFamilyTable&docid=EDOC1000170182