1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 layout_params['page_title'] = "MyOps Node Scan History"
4 from monitor.util import diff_time
5 from time import mktime
7 from cherrypy import request, response
10 <html py:layout="'sitemenu.kid'"
11 xmlns:py="http://purl.org/kid/ns#"
12 xmlns:mochi="http://www.mochi.org">
14 <div py:match="item.tag == 'content'">
16 <script type="text/javascript">
17 function nodelist_paginator(opts) { plekit_table_paginator(opts, "nodelist"); }
22 <th><a href="${link('nodescanhistory', length=42, **params)}">Last Week</a></th>
23 <th><a href="${link('nodescanhistory', length=180, **params)}">Last Month</a></th>
24 <th><a href="${link('nodescanhistory', length=1000, **params)}">Last 1000</a></th>
31 <table id="nodelist" cellpadding="0" border="0" class="plekit_table sortable-onload-2 colstyle-alt no-arrow paginationcallback-nodelist_paginator max-pages-10 paginate-999">
33 <tr class='pagesize_area'><td class='pagesize_area' colspan='10'>
34 <form class='pagesize' action='satisfy_xhtml_validator'><fieldset>
35 <input class='pagesize_input' type='text' id="nodelist_pagesize" value='25'
36 onkeyup='plekit_pagesize_set("nodelist","nodelist_pagesize", 25);'
37 size='3' maxlength='3' />
38 <label class='pagesize_label'> items/page </label>
39 <img class='reset' src="/planetlab/icons/clear.png" alt="reset visible size"
40 onmousedown='plekit_pagesize_reset("nodelist","nodelist_pagesize", 999);' />
41 </fieldset></form></td></tr>
43 <tr class='search_area'><td class='search_area' colspan='10'>
44 <div class='search'><fieldset>
45 <label class='search_label'> Refine List </label>
46 <input class='search_input' type='text' id='nodelist_search'
47 onkeyup='plekit_table_filter("nodelist","nodelist_search","nodelist_search_and");'
48 size='self.search_width' maxlength='256' />
50 <input id='nodelist_search_and' class='search_and'
51 type='checkbox' checked='checked'
52 onchange='plekit_table_filter("nodelist","nodelist_search","nodelist_search_and");' />
53 <img class='reset' src="/planetlab/icons/clear.png" alt="reset search"
54 onmousedown='plekit_table_filter_reset("nodelist","nodelist_search","nodelist_search_and");' />
55 </fieldset></div></td></tr>
58 <th nowrap="true" class="sortable plekit_table">Date Checked</th>
59 <th class="sortable plekit_table">Hostname</th>
60 <th class="sortable plekit_table">Ping</th>
61 <th class="sortable plekit_table">SSH</th>
62 <th class="sortable plekit_table">Stat</th>
63 <th class="sortable plekit_table">kernel</th>
64 <th class="sortable plekit_table">BootCD</th>
65 <th class="sortable plekit_table">Boot Server</th>
66 <th class="sortable plekit_table">Installation Date</th>
67 <th class="sortable plekit_table">Last_contact</th>
71 <tr py:for="i,node in enumerate(query)">
72 <span py:if="node is not None">
73 <td nowrap="true" py:content="node.node.date_checked">date_checked</td>
75 <a target="_top" href="${link('pcuview', hostname=node.node.hostname)}" py:content="node.node.hostname">your.host.org</a></td>
76 <td py:content="node.node.ping_status">ping</td>
77 <td py:content="node.node.ssh_status">ssh</td>
78 <td py:content="node.node.plc_node_stats['boot_state']">boot</td>
79 <td nowrap="true" py:content="node.kernel"></td>
80 <td nowrap="true" py:content="node.node.bootcd_version"></td>
81 <td nowrap="true" py:content="node.node.boot_server"></td>
82 <td nowrap="true" py:content="node.node.install_date"></td>
83 <td id="node-${node.node.observed_status}" py:content="diff_time(node.node.plc_node_stats['last_contact'])"></td>