Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: How to solve Net::SNMP error?

by chargrill (Parson)
on Oct 07, 2006 at 02:25 UTC ( #576781=note: print w/replies, xml ) Need Help??

in reply to How to solve Net::SNMP error?

Whee! This is fun!

Please reference the original question by someone named Geetha. Sure, madtoperl could be "Geetha", but why would madtoperl change the name of the script, and the IP address (but only slightly) when posting in a different forum?

Net::SNMP session creating problem Posted by geetha... on 9/7/2004 11:34:00 AM Hi , I'm using NET::SNMP perl package to send do SNMP operations. This requires establishing snmp session. upon calling create session , I'm getting error "ERROR: Unknown error +creating socket." The code which gives the above error is given below. *************************************************************** # /usr//bin/perl # to test snmp functions use strict; use vars qw($session $error $response); use Net::SNMP; ($session, $error) = Net::SNMP->session( -hostname => shift || 'localhost', -community => shift || 'public', -port => shift || 161 ); if (!defined($session)) { printf("ERROR: %s.\n", $error); exit 1; } *************************************END ***************************** +************* I execute the program as : perl public output of the program: ERROR: Unknown error creating socket. ********************************************************************** +************** As part of debugging this, I read that NET::SNMP package requires Soc +ket6 & IO::Socket::INET6 packages . I installed them, but problem is +still persisting As regarding system configuration , it is a linux OS ,localhost is ena +bled through httpd server. On the command prompt "snmpwalk -v2c -c public localhost system" gives + the output of snmpwalk Can someone help with this session creating problem. I 'm debugging t +his problem from past 3 days, but ... Thanks, Geetha

s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://576781]
[Corion]: usemodperl: Naah, you're just being unreasonable. It's not hard to download https URLs, and we've shown you ways to avoid downloading at all, and ways to keep downloading via http possible. You reject both.
[choroba]: Also, try asking at IRC
[usemodperl]: corion baby you have done nothing of the sort
[usemodperl]: asking how to download from cpan with core perl via http is unreasonable???
[Corion]: usemodperl: No, asking is not unreasonable. Insisting that it must always keep working for you is unreasonable.
[Corion]: But again, you haven't explained why your users need to download, or why they need to download via http, or why you can't host the SSL-stripper yourself.
[choroba]: Wait a second. Does shutting down mean the cpan clients can no longer use their urllist?
[usemodperl]: i'm under no obligation to explain myself mommy, and i'm not insisting, just asking a simple question
[Veltro]: So, I'm confused on the matter actually. There are locked-down computers, but they need updates. How does that work? Isn't that contradictary?
[usemodperl]: EXACTLY

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2018-06-24 16:38 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.