[% USE CSV %]
[% CSV.dump([ 'Node' 'MAC Address' 'Vendor' 'DNS' 'NetBIOS' 'Time Since Last Seen' ]) %]

[% FOREACH row IN results %]
  [% mylist = [] %]
  [% mylist.push(row.ip) %]
  [% mylist.push(row.mac) %]
  [% mylist.push(row.vendor) %]
  [% mylist.push(row.dns) %]
  [% mylist.push(row.nbname) %]
  [% mylist.push(row.time_last) %]
  [% CSV.dump(mylist) %]

[% END %]
