Here is sample configuration of SNMP with routing-instance(VRF, Virtual Routing Forward in Cisco world)
SNMP Community string will be denoted : BLUE@SNMP-RO or @SNMP-RO
}
snmp {
name Juniper_SW
location "IT Room 804";
contact "WireTHINK Consulting, Inc. IT team";
community SNMP-RO {
authorization read-only;
routing-instance BLUE {
clients {
10.10.0.113/32;
}
}
}
All the interfaces below will send sflow traffic to 10.10.0.113
sflow {
polling-interval 30;
sample-rate 500;
collector 10.10.0.113 {
udp-port 6343;
}
interfaces ge-0/0/0.0;
interfaces ge-0/0/1.0;
interfaces ge-0/0/9.0;
interfaces ge-0/0/46.0;
interfaces ge-0/0/47.0;
interfaces ge-0/1/2.0;
interfaces ge-0/1/3.0;
interfaces ge-1/0/21.0;
interfaces ge-1/1/2.0;
interfaces ge-1/1/3.0;
interfaces ge-2/0/21.0;
interfaces ge-2/1/2.0;
interfaces ge-2/1/3.0;
interfaces ge-3/0/21.0;
interfaces ge-3/0/22.0;
interfaces ge-3/0/23.0;
interfaces ge-3/1/2.0;
interfaces ge-3/1/3.0;
}
}