hi mellowd,
Please check on you device jnxBgpM2PrefixCountersTable and compare to CLI results:
admin@s1> show snmp mib walk jnxBgpM2PrefixCountersTable
jnxBgpM2PrefixCountersAfi.0.2.1 = 2
jnxBgpM2PrefixCountersAfi.1.1.1 = 1
jnxBgpM2PrefixCountersAfi.2.1.1 = 1
jnxBgpM2PrefixCountersAfi.3.2.1 = 2
jnxBgpM2PrefixCountersSafi.0.2.1 = 1
jnxBgpM2PrefixCountersSafi.1.1.1 = 1
jnxBgpM2PrefixCountersSafi.2.1.1 = 1
jnxBgpM2PrefixCountersSafi.3.2.1 = 1
jnxBgpM2PrefixInPrefixes.0.2.1 = 0
jnxBgpM2PrefixInPrefixes.1.1.1 = 0
jnxBgpM2PrefixInPrefixes.2.1.1 = 4
jnxBgpM2PrefixInPrefixes.3.2.1 = 1
jnxBgpM2PrefixInPrefixesAccepted.0.2.1 = 0
jnxBgpM2PrefixInPrefixesAccepted.1.1.1 = 0
jnxBgpM2PrefixInPrefixesAccepted.2.1.1 = 4
jnxBgpM2PrefixInPrefixesAccepted.3.2.1 = 1
jnxBgpM2PrefixInPrefixesRejected.0.2.1 = 0
jnxBgpM2PrefixInPrefixesRejected.1.1.1 = 0
jnxBgpM2PrefixInPrefixesRejected.2.1.1 = 1
jnxBgpM2PrefixInPrefixesRejected.3.2.1 = 1
jnxBgpM2PrefixOutPrefixes.0.2.1 = 1
jnxBgpM2PrefixOutPrefixes.1.1.1 = 4
jnxBgpM2PrefixOutPrefixes.2.1.1 = 0
jnxBgpM2PrefixOutPrefixes.3.2.1 = 0
table index:
jnxBgpM2PeerIndex,
jnxBgpM2PrefixCountersAfi,
jnxBgpM2PrefixCountersSafi
// my peers:
admin@s1> show snmp mib walk jnxBgpM2PeerIndex
jnxBgpM2PeerIndex.6.1.12.0.0.1.1.12.0.0.2 = 1
jnxBgpM2PeerIndex.6.2.32.1.13.184.0.0.0.18.0.0.0.0.0.0.0.1.2.32.1.13.184.0.0.0.18.0.0.0.0.0.0.0.2 = 0
jnxBgpM2PeerIndex.7.1.12.0.0.2.1.12.0.0.1 = 2
jnxBgpM2PeerIndex.7.2.32.1.13.184.0.0.0.18.0.0.0.0.0.0.0.2.2.32.1.13.184.0.0.0.18.0.0.0.0.0.0.0.1 = 3
admin@s1> show bgp summary
Groups: 2 Peers: 4 Down peers: 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
12.0.0.1 65001 24502 24501 0 0 1w0d17h Establ
VR2.inet.0: 3/4/4/0
12.0.0.2 65002 24501 24503 0 0 1w0d17h Establ
VR1.inet.0: 0/0/0/0
2001:db8:0:12::1 65001 24500 24500 0 0 1w0d17h Establ
VR2.inet6.0: 0/1/1/0
2001:db8:0:12::2 65002 24500 24501 0 0 1w0d17h Establ
VR1.inet6.0: 0/0/0/0
It's not direct replacement for CLI, but jnxBgpM2PrefixInPrefixesAccepted and jnxBgpM2PrefixInPrefixesRejected should give you a start. As with any SNMP MIBs you have to play with table indexes.
Full MIB definition: http://www.juniper.net/techpubs/en_US/junos11.2/topics/reference/mibs/mib-jnx-bgpmib2.txt
Example of Nagios pluging to check this SNMP OIDs: nagios-users@lists.sourceforge.net/msg07498.html" rel="nofollow noopener noreferrer">http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg07498.html
jtb