Martin Wood pointed me into the right direction. The following lines in bb-prtdiag.sh were commented out. I had set them in hobbitclient.cfg but they were not getting pick up correctly in bb-prtdiag.sh.
I uncommented them in bb-prtdiag.sh and the script seems to work without error.
FYI from solaris 9 prtdiag is in /usr/sbin
Start of lines to put in bbsys.local
UNAME="/sbin/uname"
PLATFORM_SPEC=$UNAME -i
#PRTDIAG_COMMAND="/usr/platform/$PLATFORM_SPEC/sbin/prtdiag"
PRTDIAG_COMMAND="/usr/sbin/prtdiag"
or
#PRTDIAG_COMMAND="$SUDO /usr/platform/$PLATFORM_SPEC/sbin/prtdiag" PRTDIAG_OPT="-v" #Systems that don't support temperature checks EXCLUDE_SYSTEMS="Ultra-1 Ultra-2 Ultra-5_10 Ultra-30 Ultra-60 Ultra-80 UltraAX-i2 UltraSPARC-IIi-cEngine Sun-Fire Netra-T4 UltraAX-e2 Ultra- Enterprise-10000" PRTDIAG_IGNORE_ERRORS="No failures|Most recent AC Power Failure|Minimum Available|CS Fail|No Hardware failures|^===|currently no Boards|Faul t Fan" PRTDIAG_IGNORE_FAULTS="No Recent System Faults found|No System Faults found|Fault Value|Fault LED|NO_FAULT|Power Fault|Status Fault| Fault off" LOM_COMMAND="/usr/sbin/lom" LOM_OPT="-pfvt"
export UNAME PLATFORM_SPEC PRTDIAG_COMMAND PRTDIAG_OPT export EXCLUDE_SYSTEMS LOM_COMMAND LOM_OPT export PRTDIAG_IGNORE_ERRORS PRTDIAG_IGNORE_FAULTS
Robert
-----Original Message----- From: Ward, Martin [mailto:Martin.Ward at colt.net] Sent: Monday, February 11, 2008 4:21 AM To: hobbit at hswn.dk Subject: RE: [hobbit] bb-prtdiag.sh
I found I got this error when the environment variables passed in were not being set.
I noticed it at this AWK call: #Do the output conversions echo $TEMPS | $AWK -v SYSTEM=$MACHINETYPE
-v YELL=$YELLOWLINE
-v REDL=$REDLINE
-v THISH=$MACHINE
-v PROG=$TEST
-v GRED=$RED_PIC
-v GYEL=$YELLOW_PIC
-v DEBUG=$DEBUG \For me, the $MACHINE wasn't set properly so THISH wasn't set, which messed up a number of comparisons in the awk code.
You can either print out each of the shell variables listed above just before the AWK call, or you can set up your hobbit environment and then call the bb-prtdiag.sh script yourself as you have already described... or both...
|\/|artin
--
-----Original Message----- From: McGraw, Robert P [mailto:rmcgraw at purdue.edu] Sent: 08 February 2008 21:42 To: hobbit at hswn.dk Subject: [hobbit] bb-prtdiag.sh
Solaris 10 Sparc bb-prtdiag.sh V4_10
When I run bb-prtdiag.sh I get the following error in the bb-prtdiag.log file.
awk: syntax error near line 1 awk: bailing out near line 1
I added "-x" to bb-prtdiag.sh and can see where the awk command is erroring.
I have seen reference to these errors in the archive but have not seen any resolution.
If you have seen this error in bb-prtdiag.sh what did you do to resolve?
Thanks
Robert
Robert P. McGraw, Jr. Manager, Computer System EMAIL: rmcgraw at purdue.edu Purdue University ROOM: MATH-807 Department of Mathematics PHONE: (765) 494-6055 150 N. University Street West Lafayette, IN 47907-2067
The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way.
The contents of this message and its attachments are confidential and may also be subject to legal privilege. If you are not the named addressee and/or have received this message in error, please advise us by e-mailing security at colt.net and delete the message and any attachments without retaining any copies.
Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses.
No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.
Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk