IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New why doesnt this work?
sol 10-23
bails after the first record, there is 138 lines in the file and I am tired. thanx

while read line
do getveritas=`echo $line | awk '{print $3}'`
echo $getveritas
if test `grep $getveritas /tmp/preport.out$$`
then foo=`grep $getveritas /tmp/preport.out$$`
else foo=NONVERITAS
fi
echo $line $foo
done < /tmp/preport.out$$
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free american and do not reflect the opinions of any person or company that I have had professional relations with in the past 51 years. meep

reach me at [link|mailto:bill.oxley@cox.net|mailto:bill.oxley@cox.net]
New Clueless
Then again, {{insulting remark removed}}

Just tell me what your trying to do here.
New trying to
I have 138 300gb disks
disks 81-138 are new to the system
they are on an emc
I use veritas for volume management
veritas adds the disks to its internal numbering system randomly, not in the order
presented by the format command.
When you build the volumes one must stripe accross spindles
so I take the output of the format command and put it in a file
I also take the output of an inq command which lists the emc disk handles
I get the number of the disk from the format command as well as the controller id
search the inq output for the controller id which gives me the serial number of the disk
I use the serial number of the disk to get the veritas ID
I output disknumber controller id serial number veritas ID
I can now build my stripes efficiently
thanx,
bill
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free american and do not reflect the opinions of any person or company that I have had professional relations with in the past 51 years. meep

reach me at [link|mailto:bill.oxley@cox.net|mailto:bill.oxley@cox.net]
New fixed
the output of the format command doesnt list the internal disks serial number. These are the first 2 lines of the file so results in an empty variable $getveritas which causes the script to bail
so I cut the first 2 lines out of the format.out file and it works
thanx,
bill
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free american and do not reflect the opinions of any person or company that I have had professional relations with in the past 51 years. meep

reach me at [link|mailto:bill.oxley@cox.net|mailto:bill.oxley@cox.net]
     why doesnt this work? - (boxley) - (3)
         Clueless - (crazy) - (1)
             trying to - (boxley)
         fixed - (boxley)

It's like an alien game of "keep-away."
37 ms