AW: SNMP over serial interface ?
Froese Dirk <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <3548D16A4285D311835400008365FFAC0200550C@exchange.tr.intern.wisi.de> |
Hello, The sending of traps to a Unix domain socket works now. I have added in function 'create_trap_session' (in file 'agent_trap.c') an additional check for the character '/'. Then I can assign the peername with the specifier 'unix:' and the unix domain socket path (for example '/tmp/trapsocket'). In file 'snmpd.conf' I have to add trapsink /tmp/trapsocket The traps are received into my other task (works as Unix domain server for the traps) with, for example the 'select' function. Then the traps are delegated to the serial interface. Best regards Froese -----Ursprüngliche Nachricht----- Von: Robert Story [mailto:[email protected]] Gesendet: Mittwoch, 13. Juli 2005 14:29 An: Froese Dirk Cc: NET-SNMP-USERS (E-Mail) Betreff: Re: SNMP over serial interface ? On Mon, 11 Jul 2005 17:54:14 +0200 Froese wrote: FD> SNMP requests and responses are working together with the unix domain FD> socket and a serial interface. FD> But what have I to do if the traps from the snmp agent have to be sent to FD> this socket ? FD> I think I have to change the snmpd.conf file under 'trapsink' but I don´t FD> know what. You'll probably need to add s upport for a 'trapsink-serial' to allows you to specify which serial interface to use, and then add any special handling to the trap handlers to deal with sending the trap to the serial interface. -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ 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