RE: snmptrap source ip
"Elad Shavit" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <20E8AC2A004DC449AC469D1402C2586FE7D1D2@ILTLVMAIL02.glasshousetech.com> |
Thank you Glenn. I have tried using the "-Y clientaddr=<ip:port>" flag but with no success. I also tried setting the "clientaddr" parameter in the snmp.conf file. The outcome is always the same - the outgoing port is the same (I have only one IP on my testing machine so I assume that if I could preset the port, the ip will be also set. Please mind I am working with 5.4.1 netsnmp version. Does snmptrap.exe (windows XP) suppose to be influenced from this parameter or is it only for snmpd and snmptrapd? If only for snmpd and snmptrapd, how can I set the source ip of outgoing traps if I am using the "snmptrap.exe" to send them? Thanks in advance, Elad Shavit GlassHouse Technologies Ltd. -----Original Message----- From: Glenn McAllister [mailto:[email protected]] Sent: Monday, November 03, 2008 6:25 PM To: Elad Shavit Cc: [email protected] Subject: Re: snmptrap source ip Elad Shavit wrote: > Hello all, > > > > Does anyone know how can I predict/decide what will be the source ip for > sending trap using "snmptrap" (when sent from multiple IPs machines)? > I had a similar problem, but I was generating informs from a subagent on a machine with multiple interfaces where I needed to ensure informs were coming from a specific interface. See the thread starting here: http://thread.gmane.org/gmane.network.net-snmp.user/25707/focus=25707 I haven't tried it, but I think if you add '--clientaddr=<source_ip>' to your snmptrap command line it will get you the result you want. -- Glenn McAllister <[email protected]> +1 416 348 1594 SOMA Networks, Inc. http://www.somanetworks.com/ +1 416 977 1414 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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