1847253 Members
4413 Online
110263 Solutions
New Discussion

Re: Date Problem

 
Mark Irvine
New Member

Date Problem

First of all I have to say that I know very little about Unix. I am helping to administer a small network of 22 windows workstations, 2 NT servers and 1 HP 9000 712/100 Unix PC. This PC is used to plot templates for cutting fabric, which are then made into garments. Also on the network is an IP telephone system. Each time the telephone system is rebooted, for what ever reason, the time it picks up is 1 hour behind, even though all of the windows/NT PC's are running at the correct time. After a process of elimination I traced the source of the problem to our Unix PC. After getting in touch with the vendor, we discovered that the Unix PC was running in Western European time when it should be GMT/BST. We then changed this setting, but it had no effect. Are there any other settings that I should check? Although I have been told that the Unix PC does not broadcast the time, is there any way to tell the Unix PC not to provide the time even when asked??
aspire to perfection
4 REPLIES 4
Craig Rants
Honored Contributor

Re: Date Problem

You will need to stop the ntp service.

type in /sbin/init.d/xntpd stop.

Then to make sure this does not start again...

you will need to edit /etc/rc.config.d/netdaemons.

Have you used vi before? You may want to look at this...

anyway in that file change XNTPD=1 to XNTPD=0

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Steve Steel
Honored Contributor

Re: Date Problem

Hi

1)What os is the system on.10.x 11.x

2)Check for xntpd running

look at this file
/etc/rc.config.d/netdaemons:
# xntp configuration. See xntpd(1m)
#XNTPD: Set to 1 to start xntpd (0 to not run xntpd)
# XNTPD_ARGS: command line arguments for xntpd

also ps -ef|grep ntp

If xntpd is not running then the ux box is not serving time.

3)Did you reboot after the TimeZone change

steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Shannon Petry
Honored Contributor

Re: Date Problem

Well I have to correct you on something. UNIX is never a PC! ;) Unix is either workstation or server.
Now that grammer is fixed, you will need root access to the server. As root run the following command.
set_parms timezone

This will prompt you for the correct information.
Changing the timezone will require a reboot.

Regards,
Shannon
Microsoft. When do you want a virus today?
MANOJ SRIVASTAVA
Honored Contributor

Re: Date Problem

Hi Mark


Welcome to the forums .

The source of the problems can be many :

1. Run date command and check whehter the time being dispalyed is correct or not if not then set_params timezone reboot the machine. This will give you the right time , timezone .

2. /etc/profile has the set timezone loop . after the sytem comes up do a echo $TZ which should say the correct timezone you are in , incase this is not set then alos you may have the problem . ( incase /etc/profile permission should be atleast read by all ) you can just set this parameter for the session by export TZ=EST etc.

3. If the workstation is tranmitting packets for the netwrok time protocal or ntp which si cause of the problem then may be you can try stopping that . Do a ps -ef | grep xntp and you give get a process running xntp . You can stop it by /usr/sbin/xntp stop . To make is permanent you have to change in /etc/rc.cofig.d/netdaemons and change the vaule of XNTPD to 0.


Manoj Srivastava