Can anyone tell me the equivalent of snmpset() and snmpget() functions of php in rails?? thanks in advance. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
You could start with the Ruby SNMP, do "gem install snmp". The home site is http://snmplib.rubyforge.org/ and http://snmplib.rubyforge.org/doc/index.html provides the rdocs. On Jan 15, 6:44 am, Atheeq Pasha <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Can anyone tell me the equivalent of snmpset() and snmpget() functions > of php in rails?? > > thanks in advance. > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hello, Can any one please help me in converting this php code into ruby on rails? $oid = ''1.3.6.1.4.1.318.1.1.12.3.3.1.1.4''; $row[''address''] = xx.xx.xx.xx //contains an IP address. $row[''snmp_community_str''] = 6xrt3bY //stores the community string $row[''reset_port''] = 66 //stores a port number where ''3'' is immediate reboot snmpset($row[''address''],$row[''snmp_community_str''],$oid.".".$row[''reset_port''],''i'',''3''); ....... ....... ....... I have no idea of what ''i'' is.. and $status=snmpget($row[''address''],$row[''snmp_community_str''],$oid.".".$row[''reset_port'']); Any help will be appreciated.. thnx in advance:) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.