문제

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?

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top