On Jan 19, 2:51 ¨Βν¬ βςαβ®®®ΐηναιμ®γοχςοτεΊ > On Tue, Jan 19, 2010 at 12:11 PM, Atheeq Pasha <ath... / carmatec.com> wrote: > > Do we have to close the Manager class after every set and get methods. > > Because ¨Β αν υσιξσξνπσεζοναξιπυματιξη αξτθεξ σξνπηεζο> > 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