Re: Receiving traps with snmptrapd on Windows XP
Alex Burger <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Mark. Mark Hoffman wrote: > I am trying to receive SNMP traps in a Perl script using NetSNMP. However, I > get the message "Warning: Unknown token: perl:" from the snmptrapd program > when I try to invoke a Perl file (to register a function with the trap > handler) in the snmptrapd.conf file. I'm guessing that my snmptrapd program > is not configured for embedded Perl. I see instructions for doing this via > Visual C++, but I don't have that package. Can anyone provide a version of > this program for XP that is already configured with embedded Perl? ...Or > perhaps I'm missing something else... Any help would be greatly appreciated. > > I am able to run the snmptrapd program from a "DOS" command line and I have > verified that it is receiving the proper traps. I want to process the data > in Perl however. The Windows binary on the Net-SNMP site does not include support for embedded Perl, but does include the regular Perl modules. I have never compiled embedded Perl with Windows, but maybe someone else has. I suggest you try using the traphandle token in snmptrapd.conf instead to call your Perl script. Alex ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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