#872 separate column for NetBIOS name in IP Inventory

This commit is contained in:
Oliver Gorwits
2022-07-27 22:48:36 +01:00
parent 48b7447537
commit ec4cf74cea
4 changed files with 45 additions and 25 deletions

View File

@@ -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) {

View File

@@ -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) %]