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

Wes Hardaker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Sparta
Message-ID <[email protected]>
>>>>> On Tue, 31 Jan 2006 16:06:55 +0100, <[email protected]> said:

Joakim> $trapsink = new SNMP::Session(Version => '2c', DestHost => '0.0.0.0',
Joakim> 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&kid=103432&bid=230486&dat=121642
_______________________________________________
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.