2009-09-07 11:07:59 +00:00
|
|
|
<?php
|
2007-06-24 15:46:47 +00:00
|
|
|
|
2014-02-26 22:33:45 +00:00
|
|
|
echo('<div class="container-fluid">');
|
|
|
|
echo("<div class='row'>
|
|
|
|
<div class='col-md-12'>
|
|
|
|
<div class='panel panel-default panel-condensed'>
|
|
|
|
<div class='panel-heading'>");
|
2012-04-22 17:13:27 +00:00
|
|
|
|
2011-03-17 11:29:23 +00:00
|
|
|
if ($config['overview_show_sysDescr'])
|
|
|
|
{
|
2014-02-26 22:33:45 +00:00
|
|
|
echo('<strong>' . $device['sysDescr'] . "</strong>");
|
2011-03-17 11:29:23 +00:00
|
|
|
}
|
2010-06-10 19:49:23 +00:00
|
|
|
|
2014-02-26 22:33:45 +00:00
|
|
|
echo('</div>
|
|
|
|
<table class="table table-hover table-condensed table-striped">');
|
|
|
|
|
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'];
|
|
|
|
|
|
|
|
if ($device['hardware'])
|
|
|
|
{
|
|
|
|
echo('<tr>
|
2014-02-26 22:33:45 +00:00
|
|
|
<td>Hardware</td>
|
2011-03-17 11:29:23 +00:00
|
|
|
<td>' . $device['hardware']. '</td>
|
|
|
|
</tr>');
|
|
|
|
}
|
|
|
|
|
2011-04-21 13:30:09 +00:00
|
|
|
echo('<tr>
|
2014-02-26 22:33:45 +00:00
|
|
|
<td>Operating System</td>
|
2011-04-21 13:30:09 +00:00
|
|
|
<td>' . $device['os_text'] . ' ' . $device['version'] . ' ' . $device['features'] . ' </td>
|
|
|
|
</tr>');
|
|
|
|
|
2011-03-17 11:29:23 +00:00
|
|
|
if ($device['serial'])
|
|
|
|
{
|
|
|
|
echo('<tr>
|
2014-02-26 22:33:45 +00:00
|
|
|
<td>Serial</td>
|
2011-03-17 11:29:23 +00:00
|
|
|
<td>' . $device['serial']. '</td>
|
|
|
|
</tr>');
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($device['sysContact'])
|
|
|
|
{
|
|
|
|
echo('<tr>
|
2014-02-26 22:33:45 +00:00
|
|
|
<td>Contact</td>');
|
2011-04-01 15:20:06 +00:00
|
|
|
if (get_dev_attrib($device,'override_sysContact_bool'))
|
|
|
|
{
|
|
|
|
echo('
|
|
|
|
<td>' . htmlspecialchars(get_dev_attrib($device,'override_sysContact_string')) . '</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-02-26 22:33:45 +00:00
|
|
|
<td>SNMP Contact</td>');
|
2011-04-01 15:20:06 +00:00
|
|
|
}
|
|
|
|
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>
|
2014-02-26 22:33:45 +00:00
|
|
|
<td>Location</td>
|
2011-03-17 11:29:23 +00:00
|
|
|
<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>
|
2014-02-26 22:33:45 +00:00
|
|
|
<td>SNMP Location</td>
|
2011-03-31 17:29:38 +00:00
|
|
|
<td>' . $device['real_location']. '</td>
|
|
|
|
</tr>');
|
|
|
|
}
|
2011-03-17 11:29:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if ($uptime)
|
|
|
|
{
|
|
|
|
echo('<tr>
|
2014-02-26 22:33:45 +00:00
|
|
|
<td>Uptime</td>
|
2011-03-17 11:29:23 +00:00
|
|
|
<td>' . formatUptime($uptime) . '</td>
|
|
|
|
</tr>');
|
|
|
|
}
|
|
|
|
|
2014-02-26 22:33:45 +00:00
|
|
|
echo('</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>');
|
2011-04-21 13:30:09 +00:00
|
|
|
?>
|