2 |
|
|
3 |
|
# Display the following data. |
4 |
|
|
5 |
+ |
printLine("Machine"); |
6 |
+ |
|
7 |
|
showStat("Machine Name", "packet.attributes.machine_name", $input); |
8 |
|
showStat("I.P. Address", "packet.attributes.ip", $input); |
9 |
|
|
10 |
< |
printLine(); |
10 |
> |
printLine("Operating System"); |
11 |
|
|
12 |
|
showStat("Operating System Release", "packet.os.release", $input); |
13 |
|
showStat("Operating System Version", "packet.os.version", $input); |
15 |
|
showStat("System Name", "packet.os.sysname", $input); |
16 |
|
showStat("Operating System Platform", "packet.os.platform", $input); |
17 |
|
|
18 |
< |
printLine(); |
18 |
> |
printLine("Processes"); |
19 |
|
|
20 |
|
showStat("Sleeping Processes", "packet.processes.sleeping", $input); |
21 |
|
showStat("Zombie Processes", "packet.processes.zombie", $input); |
23 |
|
showStat("CPU Processes", "packet.processes.cpu", $input); |
24 |
|
showStat("Total Processes", "packet.processes.total", $input); |
25 |
|
|
26 |
< |
printLine(); |
26 |
> |
printLine("Uptime"); |
27 |
|
|
28 |
|
showStat("Uptime (um... seconds)", "packet.os.uptime", $input); |
29 |
|
|
30 |
< |
printLine(); |
30 |
> |
printLine("Packet details"); |
31 |
|
|
32 |
|
showStat("Last sequence number", "packet.attributes.seq_no", $input); |
33 |
|
|
34 |
< |
printLine(); |
34 |
> |
printLine("Users"); |
35 |
|
|
36 |
|
showStat("Number of users", "packet.users.count", $input); |
37 |
|
showStat("User list", "packet.users.list", $input); |
38 |
|
|
39 |
< |
printLine(); |
39 |
> |
printLine("Load"); |
40 |
|
|
41 |
|
showStat("Load 1", "packet.load.load1", $input); |
42 |
|
showStat("Load 5", "packet.load.load5", $input); |
43 |
|
showStat("Load 15", "packet.load.load15", $input); |
44 |
|
|
45 |
< |
printLine(); |
45 |
> |
printLine("CPU"); |
46 |
|
|
47 |
|
showBar("User CPU", "packet.cpu.user", 100, $input); |
48 |
|
showBar("Swap CPU", "packet.cpu.swap", 100, $input); |
50 |
|
showBar("Kernel CPU", "packet.cpu.kernel", 100, $input); |
51 |
|
showBar("IO wait CPU", "packet.cpu.iowait", 100, $input); |
52 |
|
|
53 |
< |
printLine(); |
53 |
> |
printLine("Memory"); |
54 |
|
|
55 |
|
showBar("Swap Free", "packet.swap.free", "packet.swap.total", $input); |
56 |
|
showBar("Memory Free", "packet.memory.free", "packet.memory.total", $input); |
57 |
|
|
58 |
|
|
59 |
< |
?> |
59 |
> |
?> |