Hi Wes, I've tried this which seems to work using my test script. Now I need to see if it works with the real code.
Anyway, thanks for your reply. /Joakim -----Original Message----- From: Wes Hardaker [mailto:[EMAIL PROTECTED] Sent: den 1 februari 2006 21:03 To: Olsson Joakim Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Using perl to create SNMP session towards local machine always use localport=161 >>>>> On Tue, 31 Jan 2006 16:06:55 +0100, <[EMAIL PROTECTED]> said: Joakim> $trapsink = new SNMP::Session(Version => '2c', DestHost => Joakim> '0.0.0.0', LocalPort => '1620'); Um, try "RemotePort" not "LocalPort". Also, you can actualy combine those: DestHost => "0.0.0.0:1620". Note, however, that I think you want DestHost => "127.0.0.1:1620" -- Wes Hardaker Sparta, Inc. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users