This is a discussion on Re: Changing originator IP in trap/inform within the SNMP Coders forums, part of the Networking and Network Related category; On 19/07/06, santhosh.sundarasamy@wipro.com <santhosh.sundarasamy@wipro.com> wrote: > I have notification originator ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On 19/07/06, santhosh.sundarasamy@wipro.com
<santhosh.sundarasamy@wipro.com> wrote: > I have notification originator application, which uses Net-SNMP APIs > and runs as a separate process (not part of snmpd). Presumably this runs as an AgentX subagent - yes? > Net-SNMP APIs assigns the local IP address as the source IP. I am > trying to assign a different IP address as source IP by assigning a > different IP address for the variable 'localname' in snmp_session structure. > But this didn't work. > > Is there a way to change the source IP in the PDU before notification > originator sends the trap/inform? Which API are you using to generate the trap? In particular, are you using SNMPv1 or SNMPv2 syntax? If the latter, try appending a 'snmpTrapAddress' varbind to the payload list, with the address you want to use. I'm not sure whether that will do the trick or not, but it's worth a try. Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?p...rge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |