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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to