BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: {bb} Disk Test problem
Neil,
Great, thanks for the help. I was trying to reinvent the wheel.
Thanks,
Lou
>>> Neil.Brookins@Yellowbook.com 4/30/2007 10:03 AM >>>
You need to use the "-P" option for "df"
This can be done by editing the file etc/bbsys.local and adding the line
DF="/bin/df -P"
-----Original Message-----
From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of Louis
Carusone
Sent: Monday, April 30, 2007 9:03 AM
To: bb@bb4.com
Cc: Louis Carusone
Subject: {bb} Disk Test problem
Hello,
I have Big Brother working on our AIX systems and now I am trying to get
the client to work on a SUSE OES 9 Linux system. We are using evms as
the file manager on the Linux system.
The problem I am having is when bb-disk.sh is checking the disk it
issues the following command:
eval "$DFCMD | $EGREP \"$DFUSE\" | $EGREP -v \"$DFEXCLUDE\" | $SORT
\"+${DFSORT}\" > $BBTMP/DFOUT.$$"
This command is getting the information from the df -k command and only
looking for lines with /dev in them.
The problem is that the df -k command is using two lines to show the
information for some of the disk as the file system name is very long
(/dev/evms/po6configfiles and /dev/evms/po7logfiles):
df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 12584568 4326556 8258012 35% /
tmpfs 4152964 60 4152904 1% /dev/shm
/dev/sda1 102166 27644 74522 28% /windows/C
/dev/evms/po6agents 2064204 122676 1836672 7%
/opt/novell/groupwise
/dev/evms/po6backup 206391988 168812 195739056 1% /grpwise/po6back
/dev/evms/po6configfiles
2064204 32848 1926500 2%
/etc/opt/novell/groupwise
/dev/evms/po6data 206391988 156032 195751836 1% /grpwise/po6
/dev/evms/po6logfiles
2064204 33292 1926056 2%
/var/log/novell/groupwise
When the command above egreps with a pattern of ^/dev it removes the
second line with the information for that filesystem.
Has anyone else run into this problem before? If so how did you work
around it.
Thanks,
Lou
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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