1[% USE CSV -%] 2[% CSV.dump([ 'Observing Device' 'Device Port' 3 'Remote IP' 'Remote Port' 'Remote ID' 'Remote Type' 4 'Last Discovery Attempt' 'Discovery Log']) %] 5 6[% FOREACH row IN results %] 7 [% mylist = [] %] 8 [% mylist.push(row.dns || row.name || row.ip) %] 9 [% mylist.push(row.port) %] 10 [% mylist.push(row.remote_ip) %] 11 [% mylist.push(row.remote_port) %] 12 [% mylist.push(row.remote_id) %] 13 [% mylist.push(row.remote_type) %] 14 [% mylist.push(row.finished) %] 15 [% mylist.push(row.log) %] 16 [% CSV.dump(mylist) %] 17 18[% END %] 19