split template code out into template.c
[tridge/junkcode.git] / tserver / files / diagnostics.html
1 {{ header.html }}
2
3 <h2>Snapserver Installation Diagnostics</h2>
4
5 This page shows some basic hardware information which may be useful in
6 diagnosing problems with your Snapserver
7
8 <h3>PCI Devices</h3>
9
10 <small>
11 <pre>
12 {{ !
13    lspci
14 }}
15 </pre>
16 </small>
17
18 <h3>Kernel Version</h3>
19
20 <small>
21 <pre>
22 {{ !
23    cat /proc/version
24 }}
25 </pre>
26 </small>
27
28 <h3>Attached Disks</h3>
29
30 <table border=1>
31 <tr><th>Device</th><th>Model</th><th>Capacity (sectors)</th></tr>
32 {{ !
33    cd /proc/ide || exit 1;
34    for d in hd*; do
35       echo "<tr align=right>"
36       echo "<td>$d</td>";
37       echo "<td>"`cat $d/model`"</td>";
38       echo "<td>"`cat $d/capacity`"</td>"
39       echo "</tr>"
40    done
41 }}
42 </table>
43
44 <h3>Disk Partitions</h3>
45
46 <pre>{{ ! cat /proc/partitions }}</pre>
47
48 <h3>Network devices</h3>
49
50 <pre>
51 {{ !
52    ifconfig -a;
53    route -n
54 }}
55 </pre>
56
57 <h3>CPU Info</h3>
58
59 <pre>
60 {{ !
61    cat /proc/cpuinfo
62 }}
63 </pre>
64
65 {{footer.html}}