2009-09-07 11:07:59 +00:00
|
|
|
<?php
|
2007-06-24 15:46:47 +00:00
|
|
|
|
2012-04-22 17:13:27 +00:00
|
|
|
echo("<div style='background-color: #eeeeee; margin: 5px; padding: 5px;'>");
|
|
|
|
|
2011-03-17 11:29:23 +00:00
|
|
|
if ($config['overview_show_sysDescr'])
|
|
|
|
{
|
2012-04-22 17:13:27 +00:00
|
|
|
echo("<p style='padding: 0px;' class=sectionhead>");
|
|
|
|
echo('<div style="font-family: courier, serif; margin: 3px"><strong>' . $device['sysDescr'] . "</strong></div>");
|
|
|
|
echo("</p>");
|
2011-03-17 11:29:23 +00:00
|
|
|
}
|
2010-06-10 19:49:23 +00:00
|
|
|
|
2011-03-17 11:29:23 +00:00
|
|
|
$uptime = $device['uptime'];
|
|
|
|
|
|
|
|
if ($device['os'] == "ios") { formatCiscoHardware($device); }
|
|
|
|
if ($device['features']) { $device['features'] = "(".$device['features'].")"; }
|
|
|
|
$device['os_text'] = $config['os'][$device['os']]['text'];
|
|
|
|
|
2012-04-22 17:13:27 +00:00
|
|
|
echo("<table width=100% cellspacing=0 cellpadding=5>");
|
|
|
|
echo('<tr class="device-overview"><td width="100%"><table width="100%">');
|
2011-03-17 11:29:23 +00:00
|
|
|
|
|
|
|
if ($device['hardware'])
|
|
|
|
{
|
|
|
|
echo('<tr>
|
|
|
|
<td class="list-bold">Hardware</td>
|
|
|
|
<td>' . $device['hardware']. '</td>
|
|
|
|
</tr>');
|
|
|
|
}
|
|
|
|
|
2011-04-21 13:30:09 +00:00
|
|
|
echo('<tr>
|
|
|
|
<td class="list-bold">Operating System</td>
|
|
|
|
<td>' . $device['os_text'] . ' ' . $device['version'] . ' ' . $device['features'] . ' </td>
|
|
|
|
</tr>');
|
|
|
|
|
2011-03-17 11:29:23 +00:00
|
|
|
if ($device['serial'])
|
|
|
|
{
|
|
|
|
echo('<tr>
|
|
|
|
<td class="list-bold">Serial</td>
|
|
|
|
<td>' . $device['serial']. '</td>
|
|
|
|
</tr>');
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($device['sysContact'])
|
|
|
|
{
|
|
|
|
echo('<tr>
|
2011-04-01 15:20:06 +00:00
|
|
|
<td class="list-bold">Contact</td>');
|
|
|
|
if (get_dev_attrib($device,'override_sysContact_bool'))
|
|
|
|
{
|
|
|
|
echo('
|
|
|
|
<td>' . htmlspecialchars(get_dev_attrib($device,'override_sysContact_string')) . '</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="list-bold">SNMP Contact</td>');
|
|
|
|
}
|
|
|
|
echo('
|
2011-03-17 11:29:23 +00:00
|
|
|
<td>' . htmlspecialchars($device['sysContact']). '</td>
|
|
|
|
</tr>');
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($device['location'])
|
|
|
|
{
|
2010-03-07 22:22:29 +00:00
|
|
|
echo('<tr>
|
2011-03-17 11:29:23 +00:00
|
|
|
<td class="list-bold">Location</td>
|
|
|
|
<td>' . $device['location']. '</td>
|
|
|
|
</tr>');
|
2011-05-13 12:28:57 +00:00
|
|
|
if (get_dev_attrib($device,'override_sysLocation_bool') && !empty($device['real_location']))
|
2011-03-31 17:29:38 +00:00
|
|
|
{
|
|
|
|
echo('<tr>
|
|
|
|
<td class="list-bold">SNMP Location</td>
|
|
|
|
<td>' . $device['real_location']. '</td>
|
|
|
|
</tr>');
|
|
|
|
}
|
2011-03-17 11:29:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if ($uptime)
|
|
|
|
{
|
|
|
|
echo('<tr>
|
|
|
|
<td class="list-bold">Uptime</td>
|
|
|
|
<td>' . formatUptime($uptime) . '</td>
|
|
|
|
</tr>');
|
|
|
|
}
|
|
|
|
|
2012-04-22 17:13:27 +00:00
|
|
|
echo("</table></tr></td></table>");
|
|
|
|
echo("</div>");
|
2011-03-17 11:29:23 +00:00
|
|
|
|
2011-04-21 13:30:09 +00:00
|
|
|
?>
|