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

Re: Odd SNMP module behavior

by irirgem (Novice)
on Sep 15, 2012 at 12:55 UTC ( #993872=note: print w/replies, xml ) Need Help??

in reply to Odd SNMP module behavior

So, Not that I don't think you have, but the question needs to be asked...

Have you made sure the devices you are trying to use SNMPv1 from have it available?
For instance... Doing something like printing out each device into a log file to see the attempt to pull something simple like sysName or sysUpTime and showing pass/fail or the return value in blocking mode?

This way you could create a baseline or proof that the at the least it works on all the devices you are attempting to gather information from.

Replies are listed 'Best First'.
Re^2: Odd SNMP module behavior
by joe_tseng (Novice) on Sep 26, 2012 at 19:47 UTC

    I had said before I was very green re: this topic and this is epitomizes my experience. After alot of reading I discovered the script I was using to parse through the MIB entries and retrieve values was written using bulkwalk, and I tried it using both v1 and v3. And in addition, it did not work because bulk operations do not work when using v1. I'd have to rewrite our subroutine to replicate bulk functionality when using v1.

    I hope other newbies figure this out sooner than I did.

Re^2: Odd SNMP module behavior
by joe_tseng (Novice) on Sep 19, 2012 at 15:38 UTC

    I did some more reading and the feature you're describing (in Net::SNMP) doesn't seem to be available in Net-SNMP (which is what we're currently using). And it seems I was mistaken in the understanding that Net::SNMP did not support v3

    I'll update the script using the other module and I'll report back later with my findings.

Re^2: Odd SNMP module behavior
by joe_tseng (Novice) on Sep 21, 2012 at 19:08 UTC

    After some more googling it seems SNMP (using Net-SNMP) lacks blocking mode, but Net::SNMP does. If I'm wrong pls point me in the right direction.

    That said, I found a ton of examples online but they're not entirely helpful to me. I have a vendor's MIB file and I want to:

    • Read in and parse the MIB file
    • Loop through the resulting collection and collect numbers
    The examples I've found all utilize single OIDs. I think SNMP has a built-in parser, but Net::SNMP doesn't. Can anyone recommend a parsing module I can use?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993872]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2018-06-20 23:13 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.