Hi all!
Does somebody know how to send snmp traps in a script, i.e. to notify an interface down??
(using RouterOS 3.9)
THANKS!
There is no way to do that. You can use an external system to poll SNMP values or you can simulate the traps using the Netwatch tool. The tool can either email a notice or you can create an SNMP Trap Proxy using PHP or Perl on an external system whereby you can then execute the Fetch tool via a Netwatch and the HTTP GET talks to your SNMP Trap proxy which in turn fires the Trap(s). It's a little Rube Goldberg-ish, but we get paid to be creative, don't we?
/snmp set trap-generators=interfaces
/snmp send-trap