How to determine top SNMP trap senders?
search cancel

How to determine top SNMP trap senders?

book

Article ID: 273513

calendar_today

Updated On:

Products

DX NetOps CA Spectrum

Issue/Introduction

Is there a tcpdump command that will provide the top SNMP traps Spectrum is receiving?

Resolution

The following command will provide the top 10 snmp trap senders:

 tcpdump -tnn -c 2500 -i eth0 udp port 162| awk -F "." '{print $1"."$2"."$3"."$4}' | sort | uniq -c | sort -nr | awk ' $1 > 10 '