Displaying 1 result from an estimated 1 matches for "toret".
Did you mean:
tore
2010 Jan 16
0
Converting snmpset() and snmpget() functions of php in rails
hello,
I am trying to convert a php script into a rails script. I came accross
snmpset() and snmpget() functions and I am stuck here.
Here is a part of the php script. Please help me in converting these two
functions.
$oid = ''1.3.6.1.4.1.318.1.1.12.3.3.1.1.4'';
$toret = false;
if($pdb->connected) {
$query = "SELECT snmp_community_str, address, reset_port FROM
gd_portal_apc_reboot WHERE device_id=$device_id";
if($result = $pdb->query($query)) {
if($pdb->num_rows($result)) {
$row = $pdb->get_row($result);
snmps...