ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/generic/statgrab.pl
(Generate patch)

Comparing projects/cms/source/host/generic/statgrab.pl (file contents):
Revision 1.1 by pjm2, Fri Jan 19 19:37:59 2001 UTC vs.
Revision 1.2 by tdb, Sat Jan 20 18:50:28 2001 UTC

# Line 21 | Line 21 | $| = 1;
21   # You'd be silly not to use this ;)
22   use strict;
23  
24 + &include_osver();
25   &include_users();
26   &include_top();
27  
# Line 84 | Line 85 | sub include_top() {
85      &print_pair("packet.memory.swap_in_use", $top =~ /([^\s]+?)[MG] swap in use/);
86      &print_pair("packet.memory.swap_free", $top =~ /([^\s]+?)[MG] swap free/);
87      
88 + }
89 +
90 + sub include_osver() {
91 +
92 +    # Find out details about the operating system
93 +    my($os_name) = `uname -s`;
94 +    my($os_release) = `uname -r`;
95 +    my($os_platform) = `uname -m`;
96 +    my($os_sysname) = `uname -n`;
97 +    my($os_version) = `uname -v`;
98 +
99 +    &print_pair("packet.os.name", $os_name);
100 +    &print_pair("packet.os.release", $os_release);
101 +    &print_pair("packet.os.platform", $os_platform);
102 +    &print_pair("packet.os.sysname", $os_sysname);
103 +    &print_pair("packet.os.version", $os_version);
104 +
105   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines