xsynchmtk.sh v1.0.0 Jul 22, 2002 The script retrieves the current date and time from a well-synched time server (default "timesource") via rsh and updates the Foxboro I/A Series Master Time Keeper using utility program set_mtk, as posted on the Cassandra Project site by Jeremy Milum (jeremy_milum@huntsman.com). The script ignores time zone differences. Instead, it assumes that the LOCAL timezone on the time source server reflects the "experienced" time to be set for the node. All time difference calculations are performed using the seconds since 1970-01-01 00:00:00. The string to number conversion is performed using the local timezone setting, typically GMT for Fox I/A, by utility program ccimktime. A compiled executable (gcc Solaris 2.5.1) and the sources for ccimktime are provided with this script. Run xsynchmtk -? to display the documentation for xsynchmtk.sh Run ccimktime -? to display the ccimktime argument syntax. See README.set_mtk for calling arguments for set_mtk. The archive file contains: xsynchmtk.sh Bourne shell script ccimktime Solaris 2.5.1 executable to convert date/time elements to UTC secs since 1/1/1970 ccimktime.d Source tree for ccimktime, contains compressed tar archive set_mtk Solaris 2.5.1 executable to set the Foxboro MTK (from http://www.thecassandraproject.org/archive.html) set_mtk.d Source tree for set_mtk, contains compressed tar archive tmp Empty work directory log Empty log directory xsynchmtk.sh is designed for compatibility with the Cassandra Project Guidelines and Standards (http://www.thecassandraproject.org/guidelines.html) and expects to be run from $CASSANDRA_HOME (default /opt/cassandra). Legalese Copyright (c)2002 CIM Concepts Incorporated. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Redistributions in any form must be accompanied by information on how to obtain complete source code for the software and any accompanying software that is used by the software. The source code must either be included in the distribution or be available for no more than the cost of distribution plus a nominal fee, and must be freely redistributable under reasonable conditions. For an executable file, complete source code means the source code for all modules it contains. It does not include source code for modules or files that typically accompany the major components of the operating system on which the executable file runs. THIS SOFTWARE IS PROVIDED BY CIM CONCEPTS INCORPORATED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL CIM CONCEPTS INCORPORATED BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. FOXBORO and I/A Series are registered trademarks of The FOXBORO Company. Send questions, bug reports, feedback regarding xsynchmtk.sh and ccimktime to Joachim Hirche CIM Concepts Incorporated 200 Continental Drive, Ste 112 Newark, DE 19713 USA 302 368 8982 (x111) joachim.hirche@cimconcepts.com www.cimconcepts.com As specified in the README file accompanying the set_mtk archive send questions, bug reports, feedback regarding set_mtk to Jeremy Milum . ... Or post a question on the Cassandra Project mailing list foxboro@freelists.org