prepare($query); if($sth) { $res = $sth->execute(); $result = $sth->fetchrow_hash(); $ip = $result["ip"]; $name = $result["name"]; } else { PRINT "Can not prepare query: ".$sth->errstr."
\n"; } PRINT "\n"; PRINT ""; $hstatus = SNMPHTMLping($ID); error_reporting(0); $uptime = SNMPgetComputerObject($ID, "system.sysUpTime.0"); $uptime_p = explode(" ",$uptime); $uptime = $uptime_p[2]; if ("$uptime" == "" ) { $uptime = "No SNMP"; } PRINT ""; PRINT "
NameStatusUptime*IP
$name$hstatus$uptime$ip
"; if ("$uptime" != "No SNMP") { PRINT "

Browse MIBS

"; PRINT "System
"; PRINT "Network Interfaces
"; PRINT "IP Stats
"; PRINT "Browse all common MIBS"; PRINT "

* Uptime here reflects SNMP agent uptime, not server uptime!"; } commonFooter(); ?>