hobbitclient-sunos.sh: df bug and my fix
T.J. Yang
tj_yang at hotmail.com
Fri Jun 15 22:21:40 CEST 2007
existing awk patten will fail to report vxfs in following df output.
root at mytest1> /bin/df -n -l
/ : ufs
/proc : proc
/dev/fd : fd
/etc/mnttab : mntfs
/var/run : tmpfs
/tmp : tmpfs
/export/vbs/mystore10: vxfs
/export/vbs/mystore12: vxfs
/export/vbs/mystore11: vxfs
/view : mvfs
/export/vbs/mystore13: vxfs
/data/ccase/mystore13: lofs
/data/ccase/mystore10: lofs
root at mytest1>
Here is my modification, please confirm if this a good fix. I also exclude
the mvfs(Rational clearcase file system)
root at mytest1> diff hobbitclient-sunos.sh.orig hobbitclient-sunos.sh
25c25
< FSTYPES=`/bin/df -n -l|awk '{print $3}'|egrep -v
"^proc|^fd|^mntfs|^ctfs|^devfs|^objfs|^nfs|^lofs"|sort|uniq`
---
>FSTYPES=`/bin/df -n -l|awk -F':' '{print $2}'|egrep -v "^ proc|^ fd|^
>mntfs|^ ctfs|^ devfs|^ objfs|^ nfs|^ lofs|^ mvfs"|sort|uniq`
root at mytest1>
T.J. Yang
_________________________________________________________________
Get a preview of Live Earth, the hottest event this summer - only on MSN
http://liveearth.msn.com?source=msntaglineliveearthhm
More information about the Xymon
mailing list