-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreport_item.inc.php
More file actions
24 lines (19 loc) · 938 Bytes
/
report_item.inc.php
File metadata and controls
24 lines (19 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
global $base;
// Provide a short (less than 50 characters) description
$report_description="Compare IOS configuration to data stored in ONA.";
// Display the ios router config audit report if this device has an ios config archive.
if ($extravars['window_name'] == 'display_host') {
list($status, $rows, $rpttype) = ona_get_config_type_record(array('name' => 'IOS_CONFIG'));
list($status, $rows, $rptconf) = ona_get_config_record(array('host_id' => $record['id'], 'configuration_type_id' => $rpttype['id']));
if ($rows) {
$row_html .= <<<EOL
<tr title="{$report_description}">
<td class="padding" align="right" nowrap="true">IOS Config Audit:
<a onClick="xajax_window_submit('work_space', 'xajax_window_submit(\'display_report\', \'report=>cisco_cfg_audit,config=>{$record['fqdn']}\', \'display\')');"
>View Report</a>
</tr>
EOL;
}
}
?>