SNMP problem is TCP

From: Date: Sun, 19 Mar 2006 22:08:22 +0000
Subject: SNMP problem is TCP
Groups: php.general 
Request: Send a blank email to php-general+get-232225@lists.php.net to get a copy of this message
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 wood-gd@tlen.pl

« previous php.general (#232225) next »