Xymon Mailing List Archive search

hobbit client on AIX

3 messages in this thread

list Stef Coene · Fri, 2 Feb 2007 12:54:58 +0100 ·
Hi,

The df output on AIX includes also /proc and nfs mounted file systems.  I 
exclude them with
df -Ik | grep -v "/proc" | grep -v ":/"

Excluding /proc is easy, but the only way I found to exclude nfs file systems 
is excluding the lines with :/ in it ......

Can someone else with an aix box confirm that this is ok ?


Stef
list Pierre Malenfant · Fri, 02 Feb 2007 08:19:31 -0500 ·
Hi Stef,

On AIX, there is more than just excluding NFS and /proc.

In fact, you just want JFS and JFS2 vfs types.  All other (procfs, nfs, cifs, etc) should not be checked with df at all for 2 reasons:

- You will hang the df command if the remote host is not responding
- Only jfs/jfs2 are usefull.

Personnaly, what I do is the following (I'm sure there could be other/better methods):

In the file  /home/hobbit/client/bin/hobbitclient-aix.sh

################################################################################
# Change to remove NFS and CIFS filesystems
#df -Ik | sed -e '/^[^  ][^     ]*$/{
df -Ik `mount | awk '$3~/jfs/ {printf $2 " "}'` | sed -e '/^[^  ][^ ]*$/{
################################################################################

Pierre


Stef Coene <user-dbffe946c0f4@xymon.invalid> 2007-02-02 06:54
Please respond to
user-ae9b8668bcde@xymon.invalid


To
user-ae9b8668bcde@xymon.invalid
cc

Subject
[hobbit] hobbit client on AIX
quoted from Stef Coene


Hi,

The df output on AIX includes also /proc and nfs mounted file systems.  I exclude them with
df -Ik | grep -v "/proc" | grep -v ":/"

Excluding /proc is easy, but the only way I found to exclude nfs file systems is excluding the lines with :/ in it ......

Can someone else with an aix box confirm that this is ok ?


Stef
list Stef Coene · Fri, 2 Feb 2007 14:39:43 +0100 ·
quoted from Pierre Malenfant
On Friday 02 February 2007 14:19, user-82bfd1f0e24a@xymon.invalid wrote:
Hi Stef,

On AIX, there is more than just excluding NFS and /proc.

In fact, you just want JFS and JFS2 vfs types.  All other (procfs, nfs,
cifs, etc) should not be checked with df at all for 2 reasons:

- You will hang the df command if the remote host is not responding
- Only jfs/jfs2 are usefull.

Personnaly, what I do is the following (I'm sure there could be
other/better methods):

In the file  /home/hobbit/client/bin/hobbitclient-aix.sh

###########################################################################
##### # Change to remove NFS and CIFS filesystems
#df -Ik | sed -e '/^[^  ][^     ]*$/{
df -Ik `mount | awk '$3~/jfs/ {printf $2 " "}'` | sed -e '/^[^  ][^ ]*$/{
###########################################################################
#####
Nice done.  

I just tested it on my AIX servers, and it is working flawless.


Henrik, can you change this for the next release ?


Stef