Hello
//---- I sorry my english
//----my script is control TCP protocol --------

$ip=83.190.177.45;  // IP
$community=public; //community (password)
echo $stan = '12'; // deletetcb - del connect

 $LocalAddress =
snmpwalk("$ip","$community","tcp.tcpConnTable.tcpConnEntry.tcpConnLocalAddre
ss");
 $LocalPort =
snmpwalk("$ip","$community","tcp.tcpConnTable.tcpConnEntry.tcpConnLocalPort"
);
 $RemAddress =
snmpwalk("$ip","$community","tcp.tcpConnTable.tcpConnEntry.tcpConnRemAddress
");
 $RemPort =
snmpwalk("$ip","$community","tcp.tcpConnTable.tcpConnEntry.tcpConnRemPort");

 echo $wynik='1.3.6.1.2.1.6.13.1.'.zamiana($LocalAddress[$id],"IpAddress:
").'.'.$LocalPort[$id].'.'.zamiana($RemAddress[$id], "IpAddress:
").'.'.$RemPort[$id];

 snmpset($ip, $community, $wynik, i, $stan);

//-- zamiana($LocalAddress[$id],"IpAddress: ") this is function
//-- Is error

12
1.3.6.1.2.1.6.13.1.0.0.0.0.135.0.0.0.0.0
Warning: snmpset(): Could not add variable:
system.sysUpTime.6.1.2.1.6.13.1.0.0.0.0.135.0.0.0.0.0 i 12 in e:\program
files\apache group\apache\users\snmp\pliki\porty_set.php on line 70

//-- hellp Me. My e-mail [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to