Question

I am using Net-snmp. I want to send traps in my subnet. I am having IP of my m/c as 10.0.2.15. I want to send it in 10.0.2.0/24 subnet. I have tried command as follows snmptrap -v 2c -c public 10.0.2.0/24 "" OID-value pairs

It was getting hanged and resulting into following error

getaddrinfo: 10.0.2.0/24 Temporary failure in name resolution snmptrap:

Can you please tell me how to send traps in subnet?

Was it helpful?

Solution

I think sending traps in subnet is not possible. Sending trap to particular destination having IP is allowed.

OTHER TIPS

you need to update your script(i.e snmpd.conf file) and add a line

trap2sink "IP address you want to connect to":"port"

at /usr/local/share/snmp

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top