Looking at the code I see where command_handler checks handler->format but I don't see anywhere in the code where this can be populated. Am I wrong? Is this something missing from the command directives available in snmptrapd.conf?
I'm going ahead and just compiling with my custom EXECUTE_FORMAT for now. ---- Larry Low -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Larry Low Sent: Monday, March 31, 2008 10:38 AM To: [EMAIL PROTECTED] Subject: RE: SNMP Trap LF in DisplayString I've been trying to do this in configuration but I can't quite figure out the command. format "%B\n\n%b\n\n%V\n\n%v\n\n" traphandle default /opt/traphandler/test.pl I can't quite figure out how to populate the handler's format. ---- Larry Low ________________________________________ From: Larry Low Sent: Tuesday, March 25, 2008 11:01 AM To: Larry Low; [EMAIL PROTECTED] Subject: RE: SNMP Trap LF in DisplayString Maybe this was suited more for the devel list. I'm thinking, if there isn't one already, an option to either a) specify an output delimiter for traphandlers or b) have an option to strip LFs from varbinds. ---- Larry Low -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Larry Low Sent: Monday, March 24, 2008 6:25 PM To: [EMAIL PROTECTED] Subject: SNMP Trap LF in DisplayString snmptrapd will separate out variable bindings with LF when used. The problem is that DisplayString can have CR LF, CR, and CR NUL. Since CR anything else is invalid maybe separating out the variable bindings with CR CR would cause less problems when trying to parse? Thoughts? ---- Larry Low ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. 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 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ 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 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
