From: brabuhr@... Date: 2010-01-20T04:51:10+09:00 Subject: Re: Working with SNMP 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.)