From: "Darryl (gem dandy) Brown" Date: 2010-01-20T10:50:10+09:00 Subject: Re: Working with SNMP On Jan 19, 2:51 pm, brab...@gmail.com wrote: > On Tue, Jan 19, 2010 at 12:11 PM, Atheeq Pasha wrote: > > Do we have to close the Manager class after every set and get methods. > > Because  I am using snmpset for manipulating and then snmpget for > > retrieving in the same function. > > I haven't used this library before, but I don't think you should (need > to) close the Manager; I think you should be able to: > > SNMP::Manager.open(...){|manager| >   ... >   manager.set... >   ... >   manager.get... >   ... > > } > > (I'm using the block form there instead of explicit new and close.) Hello, I've not used the ruby snmp library yet. But I have been using ruby to drive NetSNMP. It's a good tool to use to make sure the agent that you're trying to communicate with is working properly. Also using wireshark to see what going on is also useful - it allows you to load your device specific mibs. regards, Darryl