Re: traphandles
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 8 March 2011 01:01, Deas, Jim <[email protected]> wrote: > I have already used snmptranslate and confirmed that the the OID .1.3.6.1.4.1.318.0.48 = PowerNet-MIB::passwordChange > I have already added 'traphandle PowerNet-MIB::passwordChange /usr/sbin/runme' to the config > When I trigger the trap I do receive: > ---------------------- > Mar 7 16:24:52 Joan snmptrapd[23461]: 2011-03-07 16:24:52 ups-SR4-2.audioservers [10.130.28.131] (via UDP: [10.130.28.131]:161->[10.130.28.88]) TRAP, SNMP v1, community public#012#011PowerNet-MIB::apc Enterprise Specific Trap (PowerNet-MIB::passwordChange) Uptime: 19 days, 6:04:01.19#012#011PowerNet-MIB::mtrapargsString.0 = STRING: "System: Password changed." > --------------------------- > > To me this looks like a match but the program only runs if the traphandle is default. What is the exact trap that is being sent? It's clearly an SNMPv1 trap, so it will presumably be generic-trap = 6 specific-trap = ??? enterprise = PowerNet-MIB::passwordChange What is the ??? Remember that snmptrapd uses the SMIv2 approach for representing traps, so the traphandle line would need to refer to PowerNet-MIB::passwordChange.0.??? (See RFC 3584 section 3.1 for details) Dave ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users