#24 Show device age in device search view

This commit is contained in:
Oliver Gorwits
2018-03-10 11:09:04 +00:00
parent 66e3d2d64e
commit a2269c469f
6 changed files with 39 additions and 10 deletions

View File

@@ -1,10 +1,10 @@
[% USE CSV -%]
[% CSV.dump(['Device','Contact','Location','System Name','Model','OS Version','Management IP','Serial']) %]
[% CSV.dump(['Device','Location','System Name','Model','OS Version','Management IP','Serial','First Seen','Last Discovered']) %]
[% FOREACH row IN results %]
[% mylist = [] %]
[% device = row.dns || row.ip %]
[% FOREACH col IN [ device row.contact row.location row.name row.model row.os_ver row.ip row.serial] %]
[% FOREACH col IN [ device row.location row.name row.model row.os_ver row.ip row.serial row.first_seen_stamp row.last_discover_stamp] %]
[% mylist.push(col) %]
[% END %]
[% CSV.dump(mylist) %]