BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: {bb} server-time-ntp / bb-ntp.sh
- To: <bb@bb4.com>
- Subject: RE: {bb} server-time-ntp / bb-ntp.sh
- From: "Kelley, Scott" <Scott.Kelley@disney.com>
- Date: Mon, 11 Apr 2005 10:45:36 -0700
- Content-class: urn:content-classes:message
- Content-transfer-encoding: 8bit
- Content-type: text/plain; charset="us-ascii"
- Reply-to: bb@bb4.com
- Sender: owner-bb@bb4.com
- Thread-index: AcU+n1S/fisqdua0Rj23MaocfQWTyAAFCZcgAAKBsUA=
- Thread-topic: {bb} server-time-ntp / bb-ntp.sh
Craig -
I made two minor changes and I think it is working for me now.
1) I suspect my big problem was Sun's sed command. Is your default sed
by chance gnu sed ? Around line 210 I changed this line -
echo "$VALUE" | $SED 's/^[[:space:]]*//'
to this equivalent
echo "$VALUE" | sed 's/^[ \t\v\f]*//'
This fixed the 'losing the first character problem' and made the script
all happy. It is returning green and "Clock is synchronized".
2) On a minor note, around line 162 I commented out this line
MACHINE=`hostname | $SED 's/\./,/g'`
This seems like a kludge for the comma delimited FQDN, but it breaks the
usage of a bbaliasname.
Thoughts ?
--
Scott Kelley
-----Original Message-----
From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of Kelley,
Scott
Sent: Monday, April 11, 2005 9:40 AM
To: bb@bb4.com
Subject: RE: {bb} server-time-ntp / bb-ntp.sh
Yes, I first tried using it with the SUNWntpr and SUNWntpu packages on
Sun Solaris "5.8 Generic_108528-20". I also tried downloading and
building the latest version of ntp from
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2.0.tar.gz.
Both report "Clock synchronization lost" or "Time server problem" and
the status is "clear".
I do notice that in the section of the output where it reports the
server/refid it is losing a chacater on the front of a server name,
which may be indicative of some data validation problem.
You are the author, yes ? Can I send you the output with the -xv flags
set in the script ?
--
Scott Kelley
-----Original Message-----
From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of Craig Cook
Sent: Monday, April 11, 2005 5:46 AM
To: bb@bb4.com
Subject: RE: {bb} server-time-ntp / bb-ntp.sh
bb-ntp-1_4.sh.gz works fine for me on any version of Solaris, including
8 ;)
Do you have SUNWntpr and SUNWntpu installed?
If so, have you configured /etc/inet/ntp.conf correctly?
I have experienced problems with one box around 5 years ago, it
continued to throw errors and loose time. It was an issue with the
hardware though, not the BB script.
If you want server-time-ntp to work, someone else will need to help you.
Craig Cook
--
Systems Monitoring Consulting and Support Services
http://www.cookitservices.com
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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