snmptrap testnode 0 agentnode 6 1 0 system.sysDescr.0 octetstring bla bla

another example:
#send snmp test trap to reciever 192.168.2.10 from host 192.168.2.99
snmptrap -v 1 -c public 192.168.2.10 .1.3.6.1 192.168.2.99 6 17 '' .1.3.6.1 s "test trap"

#use tcpdump to watch incoming snmptraps
snmptrap -i <your interface> -nn port 162

computer2know :: thank you for your visit :: have a nice day :: © 2024