<p>:-}</p>
<p>I spent a full day wrestling a pxeboot kickstart install that failed to access a specific system for rpms. Problem was the dhcp had a typo in the router IP. DOH! moment indeed.</p>
<div class="gmail_quote">On Apr 26, 2011 8:31 AM, "Damon Chesser" <<a href="mailto:dchesser@acsi2000.com">dchesser@acsi2000.com</a>> wrote:<br type="attribution">> Is this a good time to say “Doh!”?<br>
> <br>> Sincerely,<br>> <br>> Damon Chesser<br>> SRP Linux/Red Hat Engineer<br>> Core Integration Engineering<br>> Apex Computer Systems Inc.<br>> Cell 404-271-8699<br>> <a href="mailto:dchesser@acsi2000.com">dchesser@acsi2000.com</a><mailto:<a href="mailto:dchesser@acsi2000.com">dchesser@acsi2000.com</a>><br>
> <br>> <br>> From: <a href="mailto:ale-bounces@ale.org">ale-bounces@ale.org</a> [mailto:<a href="mailto:ale-bounces@ale.org">ale-bounces@ale.org</a>] On Behalf Of Jim Kinney<br>> Sent: Tuesday, April 26, 2011 8:18 AM<br>
> To: Atlanta Linux Enthusiasts<br>> Subject: Re: [ale] bash assistance<br>> <br>> <br>> $LVM in $DF not defined<br>> On Apr 26, 2011 7:38 AM, "Damon Chesser" <<a href="mailto:dchesser@acsi2000.com">dchesser@acsi2000.com</a><mailto:<a href="mailto:dchesser@acsi2000.com">dchesser@acsi2000.com</a>>> wrote:<br>
>> Believe it or not, this is above my rudimentary bash skills and I have hit a wall: So I am seeking advice or pointers.<br>>><br>>> Scenario: recording Volume Group info on a server by server bases.<br>
>><br>>> It did not take me long to realize that I wanted to script this. I am putting the output of my script into a spread sheet (copy and paste). The servers I am running this on are remote and I have no convenient way to get the output text to my workstation, so copy and paste works.<br>
>><br>>> Desired output:<br>>><br>>> VGname VGsize LVname LVsize LVmount_point %diskused<br>>><br>>> I have all the above working up to LVmount where it all goes horribly bad. Here is my code:<br>
>> -----start-----<br>>> #!/bin/bash<br>>><br>>> FILE=/tmp/dlc/vginfo_script.txt<br>>><br>>> rm $FILE<br>>><br>>> for VG in `vgdisplay | grep -e "VG Name" | awk '{print $3}'`<br>
>> do<br>>> VGsize=`vgdisplay $VG |grep -e "VG Size" | awk '{print $3 $4}'`<br>>> for LV in `vgdisplay -v $VG |grep "LV Name" | cut -d\/ -f4`<br>>> do<br>>> LVsize=`lvdisplay /dev/$VG/$LV | grep "LV Size" | awk '{print $3 " " $4}'`<br>
>> # for MNTP in `mount |grep "$LVM" | awk '{print $3}'`<br>>> # do<br>>> # DF=`df -T "$MNTP" |awk '{print $6}'`<br>>> # done<br>>> echo $VG $VGsize $LV $LVsize $MNTP $DF<br>
>> done<br>>> done > $FILE<br>>><br>>> ---end----<br>>><br>>> The above code, as written outputs this:<br>>><br>>> vgorabak8 375.00GB lvorabak8 374.90 GB<br>>> vgorabak7 375.00GB lvorabak7 374.90 GB<br>
>><br>>> take out the # above and it does this:<br>>><br>>> vgorabak8 375.00GB lvorabak8 374.90 GB /var/lib/ntp/proc Use% -<br>>> vgorabak7 375.00GB lvorabak7 374.90 GB /var/lib/ntp/proc Use% -<br>
>><br>>> No idea why. This makes my head hurt. I have tried everything I can think of. It seems I don't think enough!<br>>><br>>> Any help would be appreciated.<br>>><br>>><br>>><br>
>><br>>> Sincerely,<br>>><br>>> Damon Chesser<br>>> <a href="mailto:dchesser@acsi2000.com">dchesser@acsi2000.com</a><mailto:<a href="mailto:dchesser@acsi2000.com">dchesser@acsi2000.com</a>><br>
>><br>>><br>>><br>>> ________________________________<br>>> Disclaimer: This electronic transmission and any attachments contain confidential information belonging to the sender. This information may be legally protected. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient or receive this message in error, you are hereby notified that any disclosure, copying, distribution or taking of any action in reliance on or regarding the contents of this information is strictly prohibited. Please notify the sender immediately if you have received this information in error.<br>
>><br>>> <a href="http://www.acsi2000.com">www.acsi2000.com</a><<a href="http://www.acsi2000.com">http://www.acsi2000.com</a>><br>> <br>> _____________________________________________________________________________<br>
> Scanned by IBM Email Security Management Services powered by MessageLabs. For more information please visit <a href="http://www-935.ibm.com/services/us/index.wss/offerfamily/iss/a1026954">http://www-935.ibm.com/services/us/index.wss/offerfamily/iss/a1026954</a><br>
> _____________________________________________________________________________<br>> <br>> ________________________________<br>> Disclaimer: This electronic transmission and any attachments contain confidential information belonging to the sender. This information may be legally protected. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient or receive this message in error, you are hereby notified that any disclosure, copying, distribution or taking of any action in reliance on or regarding the contents of this information is strictly prohibited. Please notify the sender immediately if you have received this information in error.<br>
> <br>> <a href="http://www.acsi2000.com">www.acsi2000.com</a><br></div>