Hi, Below is some example code that I have butchered to it's simplest impelmentation.
I don't understand this line.. $session = Net::SNMP->session(-hostname => "10.0.0.100", -community => "public"); Particularly, the way data is presented to the function.. I.E : -data => "text" Is this some special type of data type?? What does the "=>" signify. Also, why the use of the "shift" as in: (from the original example) ($session, $error) = Net::SNMP->session( -hostname => shift || '10.0.0.100', -community => shift || 'public', -port => shift || 161 ); and how can you use "||" with it. I thought it was used like. open(INPUT,"<$file") || die "Error"; being equivalent of: if !(open(INPUT,"<$file") { die "Error; } I apologise for the newbie questions, I am just unable to find info on this in the beginner docs and the like.. Thanks in advance for your assistance Cheers, Lorne --- SNIP --- use Net::SNMP; $session = Net::SNMP->session( -hostname => "10.0.0.100", -community => "public",); my $sysUpTime = '1.3.6.1.2.1.1.3.0'; $response = $session->get_request($sysUpTime); print ($response->{$sysUpTime}); $session->close(); exit 0; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]