--- projects/cms/source/host/generic/statgrab.pl 2001/01/20 18:50:28 1.2 +++ projects/cms/source/host/generic/statgrab.pl 2001/01/22 04:09:41 1.4 @@ -3,7 +3,7 @@ #----------------------------------------------------------------- # Machine statistics grabber # $Author: tdb $ -# $Id: statgrab.pl,v 1.2 2001/01/20 18:50:28 tdb Exp $ +# $Id: statgrab.pl,v 1.4 2001/01/22 04:09:41 tdb Exp $ # # A Perl script to return various information about a host machine # by examining the output of some common Unix/Linux commands. @@ -21,6 +21,7 @@ $| = 1; # You'd be silly not to use this ;) use strict; +&print_ident(); &include_osver(); &include_users(); &include_top(); @@ -29,6 +30,13 @@ exit(0); +# prints out an identifier for this version of statgrab.pl +# the host should check this when reading data +# means the host must be checked and updated to work with newer versions. +sub print_ident() { + print 'version statgrab.pl $Revision: 1.4 $'; + print "\n"; +} # sub to print pairs of data, separated by a single space character. sub print_pair($$) {