EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: How to set the correct IOC time
From: "Pete R. Jemian" <[email protected]>
To: "Cheng Weixing@ssrc" <[email protected]>
Cc: [email protected]
Date: Tue, 23 Jul 2002 09:45:38 -0500

Check that you have the ntpd package installed on your RedHat Linux system. Look for it with a command such as: <root,32># rpm -qa | grep ntp This should return the full name of the ntp (network time protocol) package, if it's installed. If you have the package installed, then start ntpd by typing: <root,33># /etc/init.d/ntpd start My RedHat 7.3 system returns this list. ntp-4.1.1-1 chkfontpath-1.9.5-2

You may need to configure the file /etc/ntp.conf to point
to a time server near you.  You may need to add a line
to this file which reads
    server  time.nist.gov           # NIST clock
where time.nist.gov would be replaced by the name of a time
server.  If you are lucky, you may be able to use time.nist.gov.
Whatever, the time server you name MUST be running an ntpd process.

To make ntpd start when you boot the Linux computer,
you may need to configure it in the /etc/rc.d/ directories.
You may find this command useful to make this happen:
   <root,34># chkconfig --level 345 ntpd on
This will start ntpd whenever the system transitions
into run levels 3, 4, or 5.

If you do not have an ntpd package installed,
either look on the RedHat 6.2 installation CD in the RedHat/RPMs
directory or go to www.rpmfind.org and download one from there.

Pete Jemian
UNICAT


At 06:54 PM 22-07-02 +0800, you wrote:
Dear Sir:

I have encount a problem about the setting of correct date of IOC.

Host: Intel PentiumII 400 PC, Redhat6.2
IOC: MVME2302 PowerPC card, vxWorks5.3.1

while loading the vxWorks kernel and epics application to IOC. the displayed message is like this:

---------------start of paste message-----------------
.....
iocInit
IocLogClient: EPICS environment variable "EPICS_IOC_LOG_INET" undefined
iocLogClient: logging disabled
############################################################################
### @(#)EPICS IOC CORE built on Jul 22 2002
### @(#)Version R3.13.3 $2000/07/10 18:20:58$
############################################################################
Starting iocInit
Failed to set time from Unix server
value = 0 = 0x0
seq &snctest
@(#)SNC/SEQ Version 1.9.2.Beta12 : Mon Jul 22 18:14:.?.
iocInit: All initialization complete
tShell 12/21/28 22:18:46: Spawning state program "snctest", task name = "snctes"
tShell 12/21/28 22:18:46: Task id = 27324920 = 0x1a0f1f8
value = 27324920 = 0x1a0f1f8


Done executing startup script /ssrf/Apps/ExampleApp/iocBoot/iocexample/st.cmd
->

--------------end of paste-------------------------------

It seems the IOC can't get the time from Linux Host. what's steps should done to make it correct? Need I set some environment variables?

The time on IOC now is:
->date
Dec 21, 2028 22:18:57.006969513

while the host time is :
$ date
Mon Jul 22 18:57:21 CST 2002

I don't know where did IOC get the date value.

Any suggestion is welcomed.

Cheng Weixing
from SSRF, Shanghai,P.R.China.


References:
How to set the correct IOC time Cheng Weixing@ssrc

Navigate by Date:
Prev: Re: TCP/IP driver for RGA Mohan Ramanathan
Next: [no subject] Zhao Zhuo
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: How to set the correct IOC time Cheng Weixing@ssrc
Next: Acromag IP 330 External Triggering Eric Snow
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024