diff --git a/discover-cdp.php b/discover-cdp.php index 1218f13be..1322d473e 100755 --- a/discover-cdp.php +++ b/discover-cdp.php @@ -11,7 +11,7 @@ include("config.php"); include("includes/functions.php"); include("includes/cdp.inc.php"); -$device_query = mysql_query("SELECT * FROM `devices` WHERE `status` = '1' AND `os` = 'IOS' ORDER BY `device_id` DESC"); +$device_query = mysql_query("SELECT * FROM `devices` WHERE `status` = '1' AND (`os` = 'IOS' OR `os` = 'IOS XE') ORDER BY `device_id` DESC"); while ($device = mysql_fetch_array($device_query)) { diff --git a/discovery.php b/discovery.php index 0393d68c1..e5b012bc9 100755 --- a/discovery.php +++ b/discovery.php @@ -56,7 +56,7 @@ while ($device = mysql_fetch_array($device_query)) { } - if($device['os'] == "IOS") { + if($device['os'] == "IOS" || $device['os'] == "IOS XE") { include("includes/discovery/cisco-vlans.php"); include("includes/discovery/cisco-physical.php"); include("includes/discovery/bgp-peers.php"); diff --git a/html/includes/print-syslog.inc b/html/includes/print-syslog.inc index 5d17cfe67..a002591cd 100644 --- a/html/includes/print-syslog.inc +++ b/html/includes/print-syslog.inc @@ -4,23 +4,19 @@ if($bg == $list_colour_a) { $bg = $list_colour_b; } else { $bg=$list_colour_a; } if(!$entry['processed']) { $entry = process_syslog($entry, 1); } - - if(!$entry['deleted']) { - - $entry['hostname'] = gethostbyid($entry['device_id']); + if(!$entry['deleted']) { echo("