BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: {bb} bb-prtdiag-4_3 not on the display server
There are a couple more good all around diagnostic tips that might help you out. Go into the bb-prtdiag script on the client and change the line that calls the $BB program from this:
$BB $BBDISP "status $MACHINE.$TEST $COLOR `$DATE` `$CAT $REDLINE` `$CAT $YELLOWLINE` `$CAT $BBTMP/$MACHINE.$TEST` "
to this:
echo $BB $BBDISP "status $MACHINE.$TEST $COLOR `$DATE` `$CAT $REDLINE` `$CAT $YELLOWLINE` `$CAT $BBTMP/$MACHINE.$TEST` "
After that, su over to the big brother user and source the bbdef.sh file. Your local environment will now have all the variables defined for it just like the running bigbrother client does. Now run the bb-prtdiag command and check the output. Compare the output to your working machine. Also compare the results of `env|sort` on the working client & the nonworking one.
Also, don't forget to look in the BBOUT file, too.
Hope this helps.
Steve
-----Original Message-----
From: Trevor Holden [mailto:Trevor.Holden@justice.qld.gov.au]
Sent: Thursday, June 03, 2004 12:55 AM
To: bb@bb4.com
Subject: RE: {bb} bb-prtdiag-4_3 not on the display server
Hi
Thanks Steve for the information, all very useful, I have taken the
problem much further with that information but I still have an issue. I
am leaning towards there being a problem with transferring the data from
the client to the server (which is fine for other scripts), not the
generating of it.
Any help appreciated how to debug that, or pointers where I may have
done something stupid for this particular script.
In the remote client I have the files (if I stop them being removed by
the bb-prtdiag script):
/home/bb/bbc/tmp
-rw-r--r-- 1 bb bb 8774 Jun 3 15:24
bdmsun01,justice,qld,gov,au.prtdiag.tmp
-rw-r--r-- 1 bb bb 8966 Jun 3 15:24
bdmsun01,justice,qld,gov,au.prtdiag
The top file is the output of prtdiag -v
The 2nd file has a few extra lines at the top:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<FONT SIZE=+2><b>Prtdiag Info</b></FONT>
(/usr/platform/SUNW,Sun-Fire-V240/sbin/prtdiag -v)
PS0 P_PWR - - - - -
failed
PS0 faulty
System Configuration: Sun Microsystems sun4u Sun Fire V240
System clock frequency: 167 MHZ
Memory size: 2GB
==================================== CPUs
====================================
Etc
Etc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This looks good. Ok there is a power fault reported, but that's because
this V240 has 2 powers supplies, but there is only room for one to be
comnnected to the UPS.
This get pushed to the Display server with the command:
$BB $BBDISP "status $MACHINE.$TEST $COLOR `$DATE` `$CAT $REDLINE` `$CAT
$YELLOWLINE` `$CAT $BBTMP/$MACHINE.$TEST` "
In the script: bb-prtdiag.sh
I echoed the output of the above cmd to a file, and it equates to (I put
in the XXXs in the IP for the email, but it was correct):
/home/bb/bbc1.9e-btf/bin/bb XXX.XXX.208.23 status
bdmsun01,justice,qld,gov,au.prtdiag red Thu Jun 3 14:38:46 EST 2004
&red prtdiag reports some failures !!!
Again, this looks good.
On the DISPLAY server however, none of the output of prtdiag -v is
contained in the file:
/home/bb/bb1.9e-btf/www/html/:
-rw-r--r-- 1 bb bb 5243 Jun 3 15:35
bdmsun01.justice.qld.gov.au.prtdiag.html
(OK its later than for the file on the remote client, but BB was running
and updated it)
Yet it is for the client on the Display server.
All I see in the html file between the marks for the code generated by
big brother is (I put in the XXXs for the IP):
<!-- Start of code generated by Big Brother -->
<BR><BR>
<A NAME=begindata> </A>
<CENTER><TABLE ALIGN=CENTER BORDER=0>
<TR><TH><FONT SIZE=+1 COLOR="#FFFFCC" FACE="Tahoma, Arial, Helvetica">
bdmsun01.justice.qld.gov.au - prtdiag<BR><HR WIDTH=60%></TH>
<TR><TD><H3>
red Thu Jun 3 15:34:58 EST 2004 <IMG SRC="/bb/gifs/red.gif" ALT="red"
HEIGHT="16" WIDTH="16" BORDER=0> prtdiag reports some failures !!!
</H3><PRE>
<IMG SRC="/bb/gifs/red.gif" ALT="red" HEIGHT="16" WIDTH="16" BORDER=0>
prtdiag reports some faults !!!
<FONT SIZE=+2><b>Prtdiag Info</b><
</PRE>
</TD></TR></TABLE>
<BR><BR>
<TABLE ALIGN=CENTER BORDER=0>
<TR><TD ALIGN=CENTER>
<FONT COLOR=teal SIZE=-1>
Status unchanged in 3.08 hours<BR>Status message received from
XXX.XXX.1.19</FONT></TD></TR>
</TABLE>
<BR><BR><CENTER><FORM ACTION="/cgi-bin/bb-hist.sh"><INPUT TYPE=SUBMIT
VALUE="HISTORY"><INPUT TYPE=HIDDEN NAME="HISTFILE"
VALUE="bdmsun01,justice,qld,gov,au.prtdiag">
<INPUT TYPE=HIDDEN NAME="ENTRIES" VALUE="50"></FORM></CENTER>
</CENTER>
<!-- End of code generated by Big Brother -->
So none of the output of prtdiag -v is there, where as for the client on
the Display server it is.
<!-- Start of code generated by Big Brother -->
<BR><BR>
<A NAME=begindata> </A>
<CENTER><TABLE ALIGN=CENTER BORDER=0>
<TR><TH><FONT SIZE=+1 COLOR="#FFFFCC" FACE="Tahoma, Arial, Helvetica">
sunmgr01.justice.qld.gov.au - prtdiag<BR><HR WIDTH=60%></TH>
<TR><TD><H3>
green Thu Jun 3 15:35:44 EST 2004
</H3><PRE>
<FONT SIZE=+2><b>Prtdiag Info</b></FONT>
(/usr/platform/SUNW,Ultra-4/sbin/prtdiag -v)
System Configuration: Sun Microsystems sun4u Sun Enterprise 450 (2 X
UltraSPARC-II 248MHz)
System clock frequency: 83 MHz
Memory size: 2048 Megabytes
Etc
Etc
Other info
==========
Both the machines (Display server & client, plus 2nd client) are running
the same OS solaris 9.
Both
/usr/sbin/prtdiag -v
And
/usr/platform/`uname -i`/sbin/prtdiag -v
Work fine, including running as user bb.
The only bb processes running on the 2nd bb client (the one I am having
a problem with the bbprtdiag script are:
bb 22506 1 0 11:22:45 pts/59 0:00 /home/bb/bbc1.9e-btf/bin/bbrun
-a /home/bb/bbc1.9e-btf/bin/bb-local.sh
bb 22497 1 0 11:22:45 pts/59 0:00 /home/bb/bbc1.9e-btf/bin/bbrun
-a /home/bb/bbc1.9e-btf/ext/bb-prtdiag-4_3/bb-pr
bb 22503 1 0 11:22:45 pts/59 0:00 /home/bb/bbc1.9e-btf/bin/bbrun
-a /home/bb/bbc1.9e-btf/ext/uptime.sh
bb 22494 1 0 11:22:45 pts/59 0:00 /home/bb/bbc1.9e-btf/bin/bbrun
-a /home/bb/bbc1.9e-btf/ext/bb-iostat-3_10.sh
bb 22500 1 0 11:22:45 pts/59 0:00 /home/bb/bbc1.9e-btf/bin/bbrun
-a /home/bb/bbc1.9e-btf/ext/meta_2_2.sh
Which looks fine to me: 1 client process and one process each for each
of the external scripts. Note: the output of ps -eaf for prtdiag script
is cut off as its too many characters to display, as I kept the scripts
in the subdir bb-prtdiag-4_3.
Cheers
Trevor
-----Original Message-----
From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of Dobbs,
Steve-CONT (CR)
Sent: Tuesday, 1 June 2004 11:58 PM
To: 'bb@bb4.com'
Subject: RE: {bb} bb-prtdiag-4_3 not on the display server
I've got bb-prtdiag running on about 50 solaris 8/9 boxen, and here's
some of the things that I've run into:
First, as a good diagnostic, log into the client having problems and run
prtdiag manually. There are some patch issues under solaris 8 & 9 that
cause prtdiag to fail on a variety of platform/patch level
configurations. The only one I can think of off the top of my head is
Solaris 9 on a V880 with patch 113574-08, but there are others, too.
Be aware that starting with Solaris 9, prtdiag is also in /usr/sbin, not
just in /usr/platform/`uname -i`/sbin/. Make sure that if you are using
a mixed solaris 8/9 environment, that you have the $PRTDIAG_COMMAND
defined correctly.
make sure that you are not accidentally running 2 copies of bigbrother
on the client machine at the same time. If so, what happens is that the
second instance of bb-prtdiag deletes/overwrites the temp file used by
the first instance of BB and hilarity ensues.
Finally, on the client, become the bigbrother user, source the
bbsys.local file, modify the bb-prtdiag script and set DEBUG=Y, and
diagnose what's going on by running $PRTDIAG_COMMAND, bb-prtdiag, and
other things referenced by the bb-prtdiag script.
-----Original Message-----
From: Trevor Holden [mailto:Trevor.Holden@justice.qld.gov.au]
Sent: Monday, May 31, 2004 1:40 AM
To: bb@bb4.com
Subject: {bb} bb-prtdiag-4_3 not on the display server
Hi
I searched the archives for information on this but couldn't find
anything.
Just setting up BB for the 1st time on a few hosts (well only on #2 so
far).
I have successfully got bb-prtdiag-4_3 to work on my display server
under Solaris 9 using bb version 1.9e, but not on a 2nd client. Perhaps
this isn't a problem specific to the prtdiag script, but it's the only
one I am having a problem with so far.
It always displays red, and the output from the red button is:
======================================
red Fri May 28 10:36:15 EST 2004 prtdiag reports some failures !!!
prtdiag reports some faults !!!
<FONT SIZE=+2><b>Prtdiag Info</b><
Status unchanged in 17.75 hours
Status message received from 10.5.1.19
======================================
It seems the output after the '</b><' is missing as compared to the
output on the display server for its local client. The fact that the
text isn't interpreted as HTML isnt such a concern (it happens for other
tests, and there is probably a resolution in the archives, but I haven't
got round to that one yet).
Details:
To get bb onto a 2nd host, again running Solaris 9, the steps I took
were:
Setup a bb user and home dir (same path as display server) on the 2nd
client
Updated the ./etc/bb-hosts under the bb and bbc directories for the 2nd
client on the display server
Copied across a tar file of the client dir on the Display Server
Untarred it
Added a link for bbc to it.
Restarted the bb client and server on the Display server
Started bb on the 2nd client
My other tests (std tests, plus: meta_2_2.sh, bb-iostat-3_10, even one
of my own (it only did uptime, just to see what was required)) work.
The prtdiag test is referenced in bbc/etc/bb-bbexttab on the 2nd client
with:
localhost : : bb-prtdiag-4_3/bb-prtdiag.sh
Removing '$PRTFILE' from the line:
$RM $PRTFILE $YELLOWLINE $REDLINE
in
./bbc/ext/bb-prtdiag-4_3/bb-prtdiag.sh
does result in the output of prtdiag -v being left in the bbc/tmp dir.
I don't see any problems listed in BBOUT.
Not sure what I am missing, any help appreciated.
Cheers
Trevor
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
Home |
Main Index |
Thread Index