Information about the community syntax for SNMP polling of the logical-router.
When a logical system is created, a default routing instance (known as default) is always created within the logical system. This name should be used, when querying SNMP data for the logical-system (Logical-System-name/default@community).
For example, in a lab scenario,SNMP can be configured only globally:
sli@dada> show configuration snmp name dada; description "Configuration Version 1.0"; location "Cidra HUB"; community sli { authorization read-only; clients { 172.16.0.0/16; } } community public { authorization read-write; } trap-options { source-address 172.25.84.225; } trap-group sl-net { version v2; categories { authentication; chassis; link; routing; startup; configuration; } targets { 172.25.83.240; } } sli@dada> sli@dada# show logical-systems lr1 Jan 03 15:15:00 interfaces { ge-1/0/0 { unit 0 { family inet { address 111.111.111.111/24; } family mpls; } } lo0 { unit 100 { family inet { address 10.10.255.111/32; } } } } protocols { rsvp { interface all; } mpls { interface all; } bgp { group sli { description "for bgp mib pr"; } } ospf { area 0.0.0.0 { interface all; } } } routing-options { autonomous-system 65200; } [edit] sli@dada#
To perform SNMP polling, use the community format of < logical-router-name>/default@community-name >. For the Dada router:
<logical-router-name>=lr1 <community-name>=public
So, for the lr1 logical router, use the lr1/default@public community. For example:
[sli@svl-jtac-tool01 ~]$ snmpwalk -v 2c -c lr1/default@public -t 10 172.25.84.225 system system.sysDescr.0 = Configuration Version 1.0 system.sysObjectID.0 = OID: enterprises.2636.1.1.1.2.57 system.sysUpTime.0 = Timeticks: (584798368) 67 days, 16:26:23.68 system.sysContact.0 = system.sysName.0 = lr1/default@dada system.sysLocation.0 = Cidra HUB system.sysServices.0 = 6 [sli@svl-jtac-tool01 ~/nms-snmp]$ [sli@svl-jtac-tool01 ~/nms-snmp]$ snmpwalk -v 2c -c lr1/default@public -t 10 172.25.84.225 ifXEntry ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.6 = lo0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.512 = ge-1/0/0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.611 = ge-1/0/0.0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.614 = lo0.100 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifInMulticastPkts.6 = Counter32: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifInMulticastPkts.512 = Counter32: 674017 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifInMulticastPkts.611 = Counter32: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifInMulticastPkts.614 = Counter32: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifInBroadcastPkts.6 = Counter32: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifInBroadcastPkts.512 = Counter32: 2680 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifInBroadcastPkts.611 = Counter32: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifInBroadcastPkts.614 = Counter32: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifOutMulticastPkts.6 = Counter32: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifOutMulticastPkts.512 = Counter32: 674043 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifOutMulticastPkts.611 = Counter32: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifOutMulticastPkts.614 = Counter32: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifOutBroadcastPkts.6 = Counter32: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifOutBroadcastPkts.512 = Counter32: 2646 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifOutBroadcastPkts.611 = Counter32: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifOutBroadcastPkts.614 = Counter32: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInOctets.6 = Counter64: 756570 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInOctets.512 = Counter64: 12044 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInOctets.611 = Counter64: 12044 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInOctets.614 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInUcastPkts.6 = Counter64: 16316 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInUcastPkts.512 = Counter64: 2660 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInUcastPkts.611 = Counter64: 174 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInUcastPkts.614 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInMulticastPkts.6 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInMulticastPkts.512 = Counter64: 674017 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInMulticastPkts.611 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInMulticastPkts.614 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInBroadcastPkts.6 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInBroadcastPkts.512 = Counter64: 2680 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInBroadcastPkts.611 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInBroadcastPkts.614 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutOctets.6 = Counter64: 756570 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutOctets.512 = Counter64: 67671348 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutOctets.611 = Counter64: 16008 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutOctets.614 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutUcastPkts.6 = Counter64: 16316 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutUcastPkts.512 = Counter64: 2695 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutUcastPkts.611 = Counter64: 174 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutUcastPkts.614 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutMulticastPkts.6 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutMulticastPkts.512 = Counter64: 674043 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutMulticastPkts.611 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutMulticastPkts.614 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutBroadcastPkts.6 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutBroadcastPkts.512 = Counter64: 2646 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutBroadcastPkts.611 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutBroadcastPkts.614 = Counter64: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifLinkUpDownTrapEnable.6 = enabled(1) ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifLinkUpDownTrapEnable.512 = enabled(1) ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifLinkUpDownTrapEnable.611 = enabled(1) ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifLinkUpDownTrapEnable.614 = enabled(1) ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHighSpeed.6 = Gauge32: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHighSpeed.512 = Gauge32: 1000 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHighSpeed.611 = Gauge32: 1000 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHighSpeed.614 = Gauge32: 0 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifPromiscuousMode.6 = false(2) ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifPromiscuousMode.512 = false(2) ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifPromiscuousMode.611 = false(2) ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifPromiscuousMode.614 = false(2) ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifConnectorPresent.6 = false(2) ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifConnectorPresent.512 = true(1) ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifConnectorPresent.611 = false(2) ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifConnectorPresent.614 = false(2) ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.6 = ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.512 = ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.611 = ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.614 = ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifCounterDiscontinuityTime.6 = Timeticks: (0) 0:00:00.00 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifCounterDiscontinuityTime.512 = Timeticks: (0) 0:00:00.00 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifCounterDiscontinuityTime.611 = Timeticks: (0) 0:00:00.00 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifCounterDiscontinuityTime.614 = Timeticks: (0) 0:00:00.00 [sli@svl-jtac-tool01 ~/nms-snmp]$