Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I've got the following comment in one of the programs I'm attempting to actively work on at the moment. The comment was made by me, but it was made too long ago to remember exactly why I said that...
use SNMP; #pretty much only used for Mib translations use Net::SNMP qw(snmp_dispatcher ticks_to_time);
Later I'm using the following methods from each package:
$sysUpTime = SNMP::translateObj('sysUpTime.0'); # Create a session for this host my ($session, $error) = Net::SNMP->session( -hostname => $box{ipadd}, -community => $community_string, -port => 161, -nonblocking => 0x1, # Create non-blocking object +s -translate => [ -timeticks => 0x0 # Turn off so sysUpTi +me is numeric ] ); if (!defined($session)) { $err++; logit $DBG, sprintf("ERROR: %s.\n", $error); return 0; }
So, from that, either I got what I wanted from each package and was to stuborn to try to learn if one or the other was enough, or they were complementary, and I couldn't do what I wanted from only one. My tuits are missing today or I'd have looked it up by now...


In reply to Re: Net::SNMP vs SNMP, and MIBs by 5mi11er
in thread Net::SNMP vs SNMP, and MIBs by hatter

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2022-05-22 20:31 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (81 votes). Check out past polls.