add wireless ssid inventory report

This commit is contained in:
Eric A. Miller
2013-09-24 23:53:14 -04:00
parent 2856271cd2
commit 23301e9f1e
4 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
[% USE Number.Format %]
<table class="table table-bordered table-condensed table-striped nd_floatinghead">
<thead>
<tr>
<th class="nd_center-cell">SSID</th>
<th class="nd_center-cell">Broadcast</th>
<th class="nd_center-cell">Count</th>
</tr>
</thead>
</tbody>
[% WHILE (row = results.next) %]
<tr>
<td class="nd_center-cell">[% row.ssid %]</td>
<td class="nd_center-cell">[% row.broadcast ? 'Yes' : 'No' %]</td>
<td class="nd_center-cell">[% row.get_column('scount') | format_number %]</td>
</tr>
[% END %]
</tbody>
</table>

View File

@@ -0,0 +1,11 @@
[% USE CSV -%]
[% CSV.dump([ 'SSID' 'Broadcast' 'Count' ]) %]
[% WHILE (row = results.next) %]
[% mylist = [] %]
[% mylist.push(row.ssid) %]
[% mylist.push(row.broadcast ? 'Yes' : 'No') %]
[% mylist.push(row.get_column('scount')) %]
[% CSV.dump(mylist) %]
[% END %]