Hello, trying to define a trap handler as follows: OS: Linux 5.4.56 / Arm
net-snmp5.9 package from buildroot /etc/snmp/snmptrapd.conf traphandle default /sbin/print_trap.sh traphandle SNMPv2-MIB::coldStart /sbin/print_trap cold Then, i am sending a test trap using snmptrap utility (v2c trap) as follows: snmptrap -v 2c -c public -d -Lo localhost '' 1.3.6.1.4.1.8072.2.3.0.1 1.3.6.1.4.1.8072.2.3.2.1 i 123456 I think that the trap is correctly sent to the snmptrad daemon, but my handling script is not starting. The following error messages appear in syslog: Jan 1 23:55:31 UTC 2000 NIDPlug+ snmptrapd[242]: 2000-01-01 23:55:31 localhost [UDP: [127.0.0.1]:52549->[127.0.0.1]:162] (via 0.0.0.0[0.0.0.0]): .#012#011Cold Start Trap (0) Uptime: 0:00:00.00#012SNMPv2-MIB::sysUpTime.0 = Timeticks: (39460) 0:06:34.60#011SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-SMI::enterprises.8072.2.3.0.1#011SNMPv2-SMI::enterprises.8072.2.3.2.1 = INTEGER: 123456 Jan 1 23:55:31 UTC 2000 NIDPlug+ snmptrapd[242]: support for run_shell_command not available Browsing the net-snmp code, it seems that the macro USING_UTILITIES_EXECUTE_MODULE is guarding this section of code. but is not defined. I can also see that it is defined in Win32 tree ... but am using Linux (this is an embedded plateform) Is this a known issue ? Thanks, Jacques
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users