#800 gather and report SNMP Chassis ID http://oid-info.com/cgi-bin/display?oid=1.3.6.1.4.1.9.3.6.3&a=display
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE device ADD COLUMN "chassis_id" text;
|
||||
|
||||
COMMIT;
|
||||
@@ -62,6 +62,10 @@
|
||||
<td>Serial Number</td>
|
||||
<td>[% d.serial | html_entity %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Chassis ID</td>
|
||||
<td>[% d.chassis_id | html_entity %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Description</td>
|
||||
<td>[% d.description | html_entity | html_line_break %]</td>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<th>Model</th>
|
||||
<th>OS Version</th>
|
||||
<th>Management IP</th>
|
||||
<th>Serial</th>
|
||||
<th>Serial / Chassis ID</th>
|
||||
<th>First Seen</th>
|
||||
<th>Last Discovered</th>
|
||||
</tr>
|
||||
@@ -53,7 +53,7 @@ $(document).ready(function() {
|
||||
}, {
|
||||
"data": 'serial',
|
||||
"render": function(data, type, row, meta) {
|
||||
return he.encode(data || '');
|
||||
return he.encode(row.serial || '') + (row.chassis_id ? ('<br />' + he.encode(row.chassis_id || '')) : '');
|
||||
}
|
||||
}, {
|
||||
"data": 'first_seen_stamp',
|
||||
|
||||
Reference in New Issue
Block a user