1. netstat will show if listening on all IP interfaces which is the default
Expert@FW01:0]# netstat -tulpn | grep snmp
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN 740/snmpd
udp 0 0 0.0.0.0:161 0.0.0.0:* 740/snmpd
2. tcpdump on the listening interface should show packets if they are arriving
[Expert@OFW01:0]# tcpdump -i eth0 port 161
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
17:57:17.695909 IP 172.16.10.10.59013 > FW01.snmp: F=r U="" E= C="" GetRequest(14)
3. clish commands "set snmp agent off" and "set snmp agent on"
you can see snmp is no longer running when i set agent off and running after set agent on
[Expert@FW01:0]# clish -c "set snmp agent off"
[Expert@FW01:0]# ps ax | grep snmp
726 pts/1 S+ 0:00 grep --color=auto snmp
[Expert@FW01:0]# clish -c "set snmp agent on"
[Expert@FW01:0]# ps ax | grep snmp
740 ? Ssl 0:00 /usr/sbin/snmpd -f -c /etc/snmp/userDefinedSettings.conf
756 pts/1 S+ 0:00 grep --color=auto snmp
these were all taken from an R81.20 standalone fw+mgmt