Displaying 1 result from an estimated 1 matches for "reset_port".
Did you mean:
dest_port
2010 Jan 16
0
Converting snmpset() and snmpget() functions of php in rails
...mpset() 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);
snmpset($row[''address''], $row[''snmp_community_str''],
$oid."."...