BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
{bb} Update Made To bb-vxcheck.sh
Brothers,
After
posting the question to the list and not getting any answers to my question
that were satisfactory (no worries, though....), I took it upon myself
to update bb-vxcheck.sh and would like to share that update with the world.
Here is the situation:
Problem: vxdisk check portion
of the script was not working
Diagnosis: vxdisk check requires
a disk group be provided before running the command (vxdisk -g {group}
check {disk}
Solution: In my environment,
I opted to copy the vx commands to $BBHOME/ext/bin and change the permissions...
no worries since nobody outside my direct group has access to the server.
The only thing I did was hardcode my pathing into the script. I
would like to be able to use the globals defined in $BBHOME/etc/bbsyslocal.
Anwyays, here are the changes:
Original:
VX_DISK_LIST=` $AWK '{print $3}'
$VXDISK_TMP |
$UNIQ |
$GREP -v "-" |
$GREP -v "DISK" `
CATCH_COMMAND=` for VX_DISK in
$VX_DISK_LIST
do
$VXDISK_CHECK $VX_DISK
done `
...
CATCH_COMMAND2=` for VX_DISK
in $VX_DISK_LIST
do
$VXDISK_CHECK $VX_DISK
done | $GREP -v Okay`
Revised:
VX_DISK_DG_LIST=` $AWK '{print
$4","$3}' $VXDISK_TMP |
$UNIQ |
$GREP -v "-" |
$GREP -v "DISK" |
$GREP -v "GROUP" `
CATCH_COMMAND=` for LINE in $VX_DISK_DG_LIST
do
echo $LINE | awk -F"," '{print
$1,$2}' | while read G D
do
/opt/BB/bbc/ext/bin/vxdisk
-g $G check $D
done
done `
...
CATCH_COMMAND2=` for LINE in
$VX_DISK_DG_LIST
do
echo $LINE | awk -F"," '{print
$1,$2}' | while read G D
do
/opt/BB/bbc/ext/bin/vxdisk
-g $G check $D
done
done | $GREP -v Okay`
I know that Craig Cook maintains this
script. Craig, I hope you like what you see and can integrate it
into the deadcat version. If you have any questions about it, feel
free to email me directly at this address. Thanks!
Chris Ivey
HP OpenView Certified Consultant - NNM 6.x on Unix (0010-01-42093)
SkillDrill.com Certified Cold Fusion 4.5 Developer
MTS - Systems Engineer IV
Verizon Data Services, ENSS-West NMS Tools Group
AIM: IveyAtGTEDS
"Don't insult me. Luck is for those without skill." ::
Greg Sanders, CSI
Home |
Main Index |
Thread Index