From: Atheeq Pasha Date: 2010-01-20T00:44:21+09:00 Subject: Working with SNMP Hello, I am working with SNMP in ruby, I have installed the SNMP library and written these two functions for Set and Get request but when i rub this I am getting SNMP::RequestTimeout: host xx.xx.xx.xx.xx not responding What might be the reason? oid = '1.3.6.1.4.1.318.1.1.12.3.3.1.1.4'; result = GdPortalApcReboot.find_by_device_id(self.id) //this object will have address, community_str and reset_port fields. manager = SNMP::Manager.new(:Host => result.address,:Community => result.snmp_community_str) varbind = VarBind.new(oid.to_s + '.' + result.reset_port.to_s, OctetString.new("3")) manager.set(varbind) manager.close and response = manager.get(oid.to_s + "." + result.reset_port.to_s) response.each_varbind do |vb| status = "#{vb.name.to_s} #{vb.value.to_s} #{vb.value.asn1_type}" end manager.close and i expect the output of snmpget as INTEGER:1 or INTEGER:2 or INTEGER:3 Any help will be appreciated. Thanks in advance :) -- Posted via http://www.ruby-forum.com/.