Re: SNMP problem is TCP

From: Date: Mon, 20 Mar 2006 23:04:14 +0000
Subject: Re: SNMP problem is TCP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-232267@lists.php.net to get a copy of this message
You're not showing enough code... What does function zamiana look like? And is the code you gave us porty_set.php line 70? Or is that some other code we haven't seen? Is 'pliki' a PHP software package you got somewhere else? They may have a more focussed forum / mailing list / whatever that can help you faster than we can here... On Sun, March 19, 2006 4:08 pm, wood-gd wrote: > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#232267) next »