More updates

This commit is contained in:
laf
2015-11-17 05:38:45 -08:00
parent 253b27d403
commit 52e0be911b
4 changed files with 4 additions and 6 deletions

View File

@@ -19,9 +19,6 @@ if (empty($hosts) && empty($ports)) {
}
echo "TEST $hosts and $ports\n";
$debug=1;
foreach (dbFetchRows("SELECT `device_id`,`hostname` FROM `devices` WHERE `hostname` LIKE ?", array('%'.$hosts.'%')) as $device) {
echo "Found hostname " . $device['hostname'].".......\n";
foreach (dbFetchRows("SELECT `ifIndex`,`ifName`,`ifSpeed` FROM `ports` WHERE `ifName` LIKE ? AND `device_id` = ?", array('%'.$ports.'%',$device['device_id'])) as $port) {