#872 separate column for NetBIOS name in IP Inventory
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
<th>MAC Address</th>
|
||||
<th>Vendor</th>
|
||||
<th class="nd_center-cell">DNS</th>
|
||||
<th class="nd_center-cell">NetBIOS</th>
|
||||
<th>Last Used</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -55,6 +56,12 @@ $(document).ready(function() {
|
||||
"render": function(data, type, row, meta) {
|
||||
return he.encode(data || '');
|
||||
}
|
||||
}, {
|
||||
"data": 'nbname',
|
||||
"className": "nd_nowrap nd_center-cell",
|
||||
"render": function(data, type, row, meta) {
|
||||
return he.encode(data || '');
|
||||
}
|
||||
}, {
|
||||
"data": 'age',
|
||||
"render": function(data, type, row, meta) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[% USE CSV %]
|
||||
[% CSV.dump([ 'Node' 'MAC Address' 'Vendor' 'DNS' 'Last Used' ]) %]
|
||||
[% CSV.dump([ 'Node' 'MAC Address' 'Vendor' 'DNS' 'NetBIOS' 'Last Used' ]) %]
|
||||
|
||||
[% FOREACH row IN results %]
|
||||
[% mylist = [] %]
|
||||
@@ -7,6 +7,7 @@
|
||||
[% mylist.push(row.mac) %]
|
||||
[% mylist.push(row.vendor) %]
|
||||
[% mylist.push(row.dns) %]
|
||||
[% mylist.push(row.nbname) %]
|
||||
[% mylist.push(row.time_last) %]
|
||||
[% CSV.dump(mylist) %]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user