This article discusses how the polling functionality is available if the interface is part of a routing-instance.
According to Juniper's document on Enabling SNMP Access over Routing Instances :
Example: root@device# show snmp community comm1 { routing-instance VR1; } routing-instance-access;
All SNMP queries will only receive responses pertaining to that instance only.
All SNMP queries to a particular routing-instance must have the routing-instance name prefixed to the query.
The routing-instance name must be specified under the community configuration.
To poll from on routing-instance: snmpwalk -v2c -c VR1@test 10.10.10.1 . or To poll from all routing-instances: snmpwalk -v2c -c @test 10.10.10.1 .
For example:
{master:0}[edit snmp] root@device# show community test { routing-instance vrf; } routing-instance-access; {master:0}[edit] root@device# show routing-instances VR1 { instance-type virtual-router; interface irb.10; } {master:0}[edit] root@device# run show route table VR1 VR1.inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.10.10.0/24 *[Direct/0] 00:20:22 > via irb.10 10.10.10.1/32 *[Local/0] 00:20:22 Local via irb.10 {master:0}[edit] root@device# {master:0}[edit] root@device# run show arp vpn VR1 no-resolve Aug 13 12:52:16 MAC Address Address Interface Flags AA:BB:CC:DD:EE:FF 10.10.10.2 irb.10 [xe-0/0/0.0] none {master:0}[edit] root@device# From server: juniper@TCPREPLAY:~$ snmpwalk -v2c -c VR1@test 10.10.10.1 . iso.0.8802.1.1.1.1.1.1.0 = INTEGER: 0 iso.0.8802.1.1.2.1.1.1.0 = INTEGER: 30 iso.0.8802.1.1.2.1.1.2.0 = INTEGER: 4 iso.0.8802.1.1.2.1.1.3.0 = INTEGER: 2 iso.0.8802.1.1.2.1.1.4.0 = INTEGER: 0 iso.0.8802.1.1.2.1.1.5.0 = INTEGER: 5 iso.0.8802.1.1.2.1.2.1.0 = Timeticks: (0) 0:00:00.00 iso.0.8802.1.1.2.1.2.2.0 = Gauge32: 0 iso.0.8802.1.1.2.1.2.3.0 = Gauge32: 0 iso.0.8802.1.1.2.1.2.4.0 = Gauge32: 0 iso.0.8802.1.1.2.1.2.5.0 = Gauge32: 0 iso.0.8802.1.1.2.1.3.1.0 = INTEGER: 4 iso.3.6.1.2.1.1.1.0 = STRING: "Juniper Networks, Inc. qfx5120-48y-8c Ethernet Switch, kernel JUNOS 23.4R2-S3.9, Build date: 2024-11-19 07:11:46 UTC Copyright (c) 1996-2024 Juniper Networks, Inc." ^C juniper@TCPREPLAY:~$ juniper@TCPREPLAY:~$ snmpwalk -v2c -c VR1@test 10.10.10.1 . iso.0.8802.1.1.1.1.1.1.0 = INTEGER: 0 iso.0.8802.1.1.2.1.1.1.0 = INTEGER: 30 iso.0.8802.1.1.2.1.1.2.0 = INTEGER: 4 iso.0.8802.1.1.2.1.1.3.0 = INTEGER: 2 iso.0.8802.1.1.2.1.1.4.0 = INTEGER: 0 iso.0.8802.1.1.2.1.1.5.0 = INTEGER: 5 iso.0.8802.1.1.2.1.2.1.0 = Timeticks: (0) 0:00:00.00 iso.0.8802.1.1.2.1.2.2.0 = Gauge32: 0 iso.0.8802.1.1.2.1.2.3.0 = Gauge32: 0 iso.0.8802.1.1.2.1.2.4.0 = Gauge32: 0 iso.0.8802.1.1.2.1.2.5.0 = Gauge32: 0 iso.0.8802.1.1.2.1.3.1.0 = INTEGER: 4 iso.0.8802.1.1.2.1.3.4.0 = STRING: "Juniper Networks, Inc. qfx5120-48y-8c Ethernet Switch, kernel JUNOS 23.4R2-S5.8, Build date: 2025-07-18 00:17:19 UTC Copyright (c) 1996-2025 Juniper Networks, Inc." iso.0.8802.1.1.2.1.3.5.0 = STRING: "(" iso.0.8802.1.1.2.1.3.6.0 = STRING: "(" iso.2.840.10006.300.43.1.3.0 = Timeticks: (8879) 0:01:28.79 iso.3.6.1.2.1.1.1.0 = STRING: "Juniper Networks, Inc. qfx5120-48y-8c Ethernet Switch, kernel JUNOS 23.4R2-S5.8, Build date: 2025-07-18 00:22:06 UTC Copyright (c) 1996-2025 Juniper Networks, Inc."
08-19-2025 - Added examples and correcting formatting
https://www.juniper.net/documentation/en_US/junos/topics/task/configuration/enabling-snmp-access-over-ri-junos-nm.html
https://www.juniper.net/documentation/us/en/software/junos/network-mgmt/topics/topic-map/configuring-snmp-for-routing-instances.html#id-identifying-a-routing-instance