jackhhc has asked for the wisdom of the Perl Monks concerning the following question:
Dear Sir:
I want to collect some system data.
I got a report from my server.
I will got the two blocks data echo time.
How can I get the second block data and get the bigger 2 value of util field.
I have some script do from shell.
But I do't how to do it from perl.
thanks
Jack Hu
Data examplt:
-------- device %util queue r+w/s blks/s secs-avs +erv 09:47:09 10/0/15/1.6.0 45.33 0.00 77 897 5 +.88 09:47:09 10/0/15/1.5.0 16.00 0.00 59 806 2 +.74 -------- device %util queue r+w/s blks/s secs-avs +erv 09:47:14 10/0/15/1.6.0 6.50 0.00 21 166 3 +.17 09:47:14 10/0/15/1.5.0 3.44 0.00 18 157 1 +.89 09:47:14 10/2/2/0.3.0 2.48 0.00 4 134 6 +.20 09:47:14 10/2/2/0.13.0 2.29 0.00 4 133 6 +.03 09:47:14 10/1/5/0.2.0 8.22 0.02 15 60 5 +.48
20030823 Edit by Corion: Fixed formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: collect the system data
by liz (Monsignor) on Aug 24, 2003 at 08:12 UTC | |
|
Re: collect the system data
by CombatSquirrel (Hermit) on Aug 24, 2003 at 10:24 UTC | |
|
Re: collect the system data
by asarih (Hermit) on Aug 24, 2003 at 12:27 UTC |