22 lines
660 B
Plaintext
22 lines
660 B
Plaintext
[% USE CSV -%]
|
|
[% CSV.dump([ 'Full Name' 'Username'
|
|
'LDAP Auth' 'RADIUS Auth' 'TACACS+ Auth' 'Port Control' 'Port Control Role' 'Administrator' 'Created'
|
|
'Last Login' 'Note']) %]
|
|
|
|
[% FOREACH row IN results %]
|
|
[% mylist = [] %]
|
|
[% mylist.push(row.fullname) %]
|
|
[% mylist.push(row.username) %]
|
|
[% mylist.push(row.ldap) %]
|
|
[% mylist.push(row.radius) %]
|
|
[% mylist.push(row.tacacs) %]
|
|
[% mylist.push(row.port_control) %]
|
|
[% mylist.push(row.portctl_role) %]
|
|
[% mylist.push(row.admin) %]
|
|
[% mylist.push(row.created) %]
|
|
[% mylist.push(row.last_seen) %]
|
|
[% mylist.push(row.note) %]
|
|
[% CSV.dump(mylist) %]
|
|
|
|
[% END %]
|