BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

{bb} BBOUT Error From bb-iostat 4.02 On AIX 5.2






I have recently downloaded this script from deadcat.net, and am running it
on a 2 CPU IBM p615 with AIX ML04.

When it runs, I get the following entry in BBOUT:

 bb-iostat.sh /home/zespri/bb/ext/bb-iostat.sh[7]: 2: \
   0403-012 A test command parameter is not valid.

I added a few set -x entries for the various subroutines, and believe the
error is generated by line 1419 which looks like this:

 # Delete all non-data lines and the first line after non-data
 ` $CAT $IOSTATLOG | $AWK '{if ( $0 !~ /^ *[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ \
   +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +/) {skip = 1} else \
   {if (skip == 1) {skip = 0} else {print $0} } }' >> $IOSTATDATA `

My $IOSTATLOG file contents look like this:

 System configuration: lcpu=2

 tty:      tin         tout   avg-cpu:  % user    % sys     % idle    %
iowait
           0.0          0.3               0.8      0.9       96.6       1.6
           0.0          0.0               0.2      0.2       99.5       0.0
           0.0          0.0               0.2      0.0       99.8       0.0
           0.0          0.0               0.0      0.0      100.0       0.0
           0.0          0.0               7.8     26.5       63.5       2.2

But the generated $IOSTATDATA file from the awk has zero lines.

The odd thing is that the generated vmio page correctly lists the
$IOSTATLOG entries, and calculates a value for "percent CPU usage waiting
for I/O on average." at the bottom of the page.

My awk skills aren't up to debugging the issue - can anybody else help?

TIA,
Andy.


#####################################################################################

This email is intended for the person to whom it is addressed
only. If you are not the intended recipient, do not read, copy
or use the contents in any way. The opinions expressed may not
necessarily reflect those of ZESPRI Group of Companies ('ZESPRI').

While every effort has been made to verify the information
contained herein, ZESPRI does not make any representations 
as to the accuracy of the information or to the performance
of any data, information or the products mentioned herein.
ZESPRI will not accept liability for any losses, damage or
consequence, however, resulting directly or indirectly from
the use of this e-mail/attachments.
#####################################################################################
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index