DataTables for NetBIOS inventory report

This commit is contained in:
Eric A. Miller
2014-05-28 23:44:33 -04:00
parent fa1f928c09
commit cff24e4834
3 changed files with 75 additions and 29 deletions

View File

@@ -3,7 +3,7 @@
[% IF opt %]
[% CSV.dump(['Domain' 'Node' 'Name' 'User' 'First Seen' 'Last Seen']) %]
[% WHILE (row = results.next) %]
[% FOREACH row IN results %]
[% mylist = [] %]
[% device = row.device.dns || row.device.name || row.device.ip %]
[% FOREACH col IN [ row.domain row.mac.upper row.nbname row.nbuser date.format(row.time_first) date.format(row.time_last) ] %]
@@ -15,7 +15,7 @@
[% ELSE %]
[% CSV.dump(['Domain' 'Count']) %]
[% WHILE (row = results.next) %]
[% FOREACH row IN results %]
[% mylist = [] %]
[% domain = row.domain || '(Blank Domain)' %]
[% FOREACH col IN [ domain row.count ] %]