Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Re: snmpwalk using net::snmp

by c (Hermit)
on Feb 07, 2002 at 15:42 UTC ( #143894=note: print w/replies, xml ) Need Help??

in reply to Re: snmpwalk using net::snmp
in thread snmpwalk using net::snmp

I would have thought that, given a specific OID, an snmpget or snmpset would suffice. However given a specified example from Cisco, it seems that snmpwalk is required. Check out this CCO url and look near the mid to bottom of the page, specifically at steps #3 and #4. i've gone through this procedure, and it seems as though the router won't respond to a snmpget using the show OID. rather, it only responds to a walk.

thanks! -c

Replies are listed 'Best First'.
Re: Re: Re: snmpwalk using net::snmp
by very empty (Scribe) on Feb 08, 2002 at 11:57 UTC
    Yes you are right!
    In this example you really need snmpwalk bacause a whole tree should be copied. snmpget will not work because you will have lots of timeouts on all nodes which are not intended to have a value and on all nodes which do not exist. Setting a small timeout value might cause loosing values.

    Nevertheless a snmpwalk is -- as you said -- nothing else than a recursive get. Performing a bulkget seems also not possible, bacause the Cisco seems to use snmp version 1 only where bulkrequests are (I am not sure but I think so) not implemented.
    Therefore you should use the get_next_request() in a loop which takes the key of the returned hash as an argument for the next request and puts all OIDS and values in one hash. You might want to define a start-OID because usually not all values in the tree are R/W.
    Afterwards you set your configuration-values on the other router using set_request() for each key and voila the configuration is copied.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://143894]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2023-05-30 18:02 GMT
Find Nodes?
    Voting Booth?

    No recent polls found