SNMP in rails

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:)