How to capture SNMP request and response using snoop

snmpsnoop

Using the following command I can capture SNMP requests to my server, is there a way I can also capture the response my SNMP agent sends?

snoop -o snmp.cap udp port 161

Thanks for any thoughts

Best Answer

I guess what you want to do is capture traps. The standard trap port is 162, so your command likely should look like this:

snoop -o trap.cap udp port 162
Related Topic