To verify the SNMP configuration, perform the following verification task.
Verify that SNMP is running and that requests and traps are being properly transmitted.
From the CLI, enter the show snmp statistics command.
user@host> show snmp statistics
SNMP statistics: Input: Packets: 246213, Bad versions: 12 , Bad community names: 12, Bad community uses: 0, ASN parse errors: 96, Too bigs: 0, No such names: 0, Bad values: 0, Read onlys: 0, General errors: 0, Total request varbinds: 227084, Total set varbinds: 67, Get requests: 44942, Get nexts: 190371, Set requests: 10712, Get responses: 0, Traps: 0, Silent drops: 0, Proxy drops: 0, Commit pending drops: 0, Throttle drops: 0, V3 Input: Unknown security models: 0, Invalid messages: 0 Unknown pdu handlers: 0, Unavailable contexts: 0 Unknown contexts: 0, Unsupported security levels: 1 Not in time windows: 0, Unknown user names: 0 Unknown engine ids: 44, Wrong digests: 23, Decryption errors: 0 Output: Packets: 246093, Too bigs: 0, No such names: 31561, Bad values: 0, General errors: 2, Get requests: 0, Get nexts: 0, Set requests: 0, Get responses: 246025, Traps: 0
The output shows a list of the SNMP statistics, including details about the number and types of packets transmitted. Verify the following information:
For a complete description of show snmp statistics output, see the JUNOS System Basics and Services Command Reference.
Verify that the SNMP health monitor thresholds are set correctly and that the health monitor is operating properly.
From the CLI, enter the show snmp health-monitor command.
user@host> show snmp health-monitor
Alarm Index Variable description Value State 32768 Health Monitor: root file system utilization jnxHrStoragePercentUsed.1 70 active 32769 Health Monitor: /config file system utilization jnxHrStoragePercentUsed.2 0 active 32770 Health Monitor: RE 0 CPU utilization jnxOperatingCPU.9.1.0.0 20 active 32772 Health Monitor: RE 0 memory utilization jnxOperatingBuffer.9.1.0.0 95 rising threshold 32774 Health Monitor: jkernel daemon memory usage Init daemon 912 active Chassis daemon 93356 active Firewall daemon 2244 active Interface daemon 3340 active SNMP daemon 4412 active MIB2 daemon 3920 active VRRP daemon 2724 active Alarm daemon 1868 active PFE daemon 2656 active CRAFT daemon 2064 active Traffic sampling control daemon 3320 active Remote operations daemon 3020 active CoS daemon 3044 active Inet daemon 1304 active Syslog daemon 1344 active Web management daemon 3264 active USB Supervise Daemon 1100 active PPP daemon 2076 active DLSWD daemon 10240 active 32775 Health Monitor: jroute daemon memory usage Routing protocol daemon 8952 active Management daemon 14516 active Management daemon 14556 active Management daemon 14556 active Command line interface 10312 active Command line interface 10312 active Periodic Packet Management daemon 1640 active Bidirectional Forwarding Detection daemon 1912 active L2 Address Learning daemon 2080 active 32776 Health Monitor: jcrypto daemon memory usage IPSec Key Management daemon 5672 active 32778 Health Monitor: FWDD Micro-Kernel threads total CPU Utilization jnxFwddMicroKernelCPUUsage.0 0 active 32779 Health Monitor: FWDD Real-Time threads total CPU Utilization jnxFwddRtThreadsCPUUsage.0 15 active 32780 Health Monitor: FWDD DMA Memory utilization jnxFwddDmaMemUsage.0 16 active 32781 Health Monitor: FWDD Heap utilization jnxFwddHeapUsage.0 54 active ---(more)---
The output shows a summary of SNMP health monitor alarms and corresponding log entries:
Verify that any rising threshold values are greater than the configured rising threshold, and that any falling threshold values are less than the configured falling threshold.
For a complete description of show snmp health-monitor output, see the JUNOS System Basics and Services Command Reference.