SNMP seems to time out returns
| From: | Brad | Date: | Fri, 01 Aug 2003 13:32:42 +0000 |
| Subject: | SNMP seems to time out returns | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-20977@lists.php.net to get a copy of this message | ||
Windows 2K server with Apache. Added the SNMP module (now i don't get bad
function calls!).
Seems when I try to use the functions it trys to get to the router, but
doesn't return information.
Getting "no response" :
Warning: snmprealwalk(): No response from escr1e in C:\WebDoc\snmpinfo.php
on line 13
NULL
Warning: snmpget(): No response from escr1e in C:\WebDoc\snmpinfo.php on
line 15
code:
<html>
<head>
<title>
Information from PHP SMNP
</title>
</head>
<body>
<?php
$host = "eeeeee";
$community = "public";
print("<center><p>PHP information from SNMP follows:<br>\n");
$myarray == snmprealwalk($host,$community,".3.6.1.2.1.2.2.1.2");
var_dump($myarray);
print(snmpget($host,$community,".3.6.1.2.1.1.4"));
?>
</p></center></body></html>