';
$uptime = $device['uptime'];
if ($device['os'] == 'ios') {
formatCiscoHardware($device);
}
if ($device['features']) {
$device['features'] = '('.$device['features'].')';
}
$device['os_text'] = $config['os'][$device['os']]['text'];
echo '
System Name |
'.$device['sysName'].' |
';
if ($device['hardware']) {
echo '
Hardware |
'.$device['hardware'].' |
';
}
echo '
Operating System |
'.$device['os_text'].' '.$device['version'].' '.$device['features'].' |
';
if ($device['serial']) {
echo '
Serial |
'.$device['serial'].' |
';
}
if ($device['sysContact']) {
echo '
Contact | ';
if (get_dev_attrib($device, 'override_sysContact_bool')) {
echo '
'.htmlspecialchars(get_dev_attrib($device, 'override_sysContact_string')).' |
SNMP Contact | ';
}
echo '
'.htmlspecialchars($device['sysContact']).' |
';
}
if ($device['location']) {
echo '
Location |
'.$device['location'].' |
';
if (get_dev_attrib($device, 'override_sysLocation_bool') && !empty($device['real_location'])) {
echo '
SNMP Location |
'.$device['real_location'].' |
';
}
}
$loc = parse_location($device['location']);
if (!is_array($loc)) {
$loc = dbFetchRow("SELECT `lat`,`lng` FROM `locations` WHERE `location`=? LIMIT 1", array($device['location']));
}
if (is_array($loc)) {
echo '
Lat / Lng |
['.$loc['lat'].','.$loc['lng'].'] |
';
}
if ($uptime) {
echo '
Uptime |
'.formatUptime($uptime).' |
';
}
echo '