Description

SNMP support on JDM is limited.  This KB article clarifies actual SNMP support.

Symptoms

Trying to do snmpwalk on JDM, but not getting any response.

snmpwalk -v 2c -c lab 10.1.1.57 .1.3.6.1.4.1.2636
iso.3.6.1.4.1.2636 = No Such Object available on this agent at this OID

Solution

This articles applies only to NFX250, running on nfx-2 software.  This does not apply to NFX250-Next Gen.

SNMP functionality on JDM is limited.  You can only get SNMP traps on interface flap on jmgmt0 interface.  There is no support for snmp traps, if a VNF suddenly goes down.  You can do an snmpwalk on libvirt variables, which will give you statistics on VNF CPU and memory.  

To initiate an snmpwalk for libvirt, you need to specify the community with the keyword host appended, and specify the oid ​.1.3.6.1.4.1.12345.1.1.

For example, let's assume your community name is lab. The command you want to issue from your snmp client is the following:

snmpwalk -v 2c -c lab-host 10.1.1.57 .1.3.6.1.4.1.12345.1.1

where 10.1.1.57 is the IP address of your jmgmt0 interface.

admin@lab-T490:/usr/share/snmp/mibs$ snmpwalk -v 2c -c lab-host 10.1.1.57 .1.3.6.1.4.1.12345.1.1
iso.3.6.1.4.1.12345.1.1.1.2.144.208.168.155.100.10.70.91.152.168.246.25.14.198.21.37 = STRING: "testvnf"
iso.3.6.1.4.1.12345.1.1.1.2.170.187.204.221.238.255.66.227.0.0.86.74.85.78.79.83 = STRING: "vjunos0"
iso.3.6.1.4.1.12345.1.1.1.3.144.208.168.155.100.10.70.91.152.168.246.25.14.198.21.37 = INTEGER: 1
iso.3.6.1.4.1.12345.1.1.1.3.170.187.204.221.238.255.66.227.0.0.86.74.85.78.79.83 = INTEGER: 1
iso.3.6.1.4.1.12345.1.1.1.4.144.208.168.155.100.10.70.91.152.168.246.25.14.198.21.37 = Gauge32: 2
iso.3.6.1.4.1.12345.1.1.1.4.170.187.204.221.238.255.66.227.0.0.86.74.85.78.79.83 = Gauge32: 1
iso.3.6.1.4.1.12345.1.1.1.5.144.208.168.155.100.10.70.91.152.168.246.25.14.198.21.37 = Gauge32: 4096
iso.3.6.1.4.1.12345.1.1.1.5.170.187.204.221.238.255.66.227.0.0.86.74.85.78.79.83 = Gauge32: 512
iso.3.6.1.4.1.12345.1.1.1.6.144.208.168.155.100.10.70.91.152.168.246.25.14.198.21.37 = Gauge32: 4096
iso.3.6.1.4.1.12345.1.1.1.6.170.187.204.221.238.255.66.227.0.0.86.74.85.78.79.83 = Gauge32: 512
iso.3.6.1.4.1.12345.1.1.1.7.144.208.168.155.100.10.70.91.152.168.246.25.14.198.21.37 = Counter64: 12984190000000
iso.3.6.1.4.1.12345.1.1.1.7.170.187.204.221.238.255.66.227.0.0.86.74.85.78.79.83 = Counter64: 18669990000000
iso.3.6.1.4.1.12345.1.1.1.9.144.208.168.155.100.10.70.91.152.168.246.25.14.198.21.37 = INTEGER: 1
iso.3.6.1.4.1.12345.1.1.1.9.170.187.204.221.238.255.66.227.0.0.86.74.85.78.79.83 = INTEGER: 1

Note:  The Junos command 'show snmp mib' is not supported on JDM at operational prompt.  That is supported only on vjunos0.  You can alternatively go to JDM shell, then run the snmpwalk command as specified above.