Hey Ted,

My MUA believes you used (X-Mailer not set)
to write the following on Wednesday, April 24, 2002 at 9:56:09 PM.
TH> Hello,

TH> I'm executing the 1st example (get sysUpTime) in the
TH> Net::SNMP module at

TH> http://search.cpan.org/doc/DTOWN/Net-SNMP-4.0.1/lib/Net/SNMP.pm

TH> The example is failing with the error

TH> ERROR: Expected OBJECT IDENTIFIER in dotted notation

TH> this is occurring because the $result is undefined.

I copied Example 1 and changed the 'localhost' and 'public' strings to
be appropriate, and it worked just fine.

   my ($session, $error) = Net::SNMP->session(
      -hostname  => shift || 'localhost',         #<=== Change
      -community => shift || 'public',            #<=== Change
      -port      => shift || 161 
   );


output:
sysUpTime for host '10.11.145.1' is 94 days, 17:03:54.95

This was a Cisco switch/router.

Does this help?

-- 
[EMAIL PROTECTED]
MUA = TB! v1.53d (www.RitLabs.com/The_Bat)
Windows NT 5.0.2195 (Service Pack 2)
MS-DOS: celebrating ten years of obsolescence 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to