RE: Using perl to create SNMP session towards local machine always use localport=161

<[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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: [email protected]
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.