Operating System - HP-UX
1833138 Members
3595 Online
110051 Solutions
New Discussion

Server time problem through telnet

 
SOLVED
Go to solution
Trent Bukowsky
Advisor

Server time problem through telnet

I have D-Class installed with HP_UX 10.20. Most of my users connect via IBM tenet emulator from their Win 95 Desktops.

Lately I have noticed (I think this problem was there from the begining, but I just did not notice it) that when I give the Last -R Command to find out when a user last logged in through an emulator I get a differnet time from that of the server time. If I run the sam command on the console its perfect. Its only when I run the command through telnet that there is a change, it usally shows 5 to 6 hours behind the actual server time.

I guess it has something to do with Time Zone settings. But what confuses me is that even the local machine has almost the same time as the server.

Can somebody give me a solution.

Thankx

Trent
4 REPLIES 4
Animesh Chakraborty
Honored Contributor

Re: Server time problem through telnet

Hi,
In both the cases, are you using same user id to login ?


Thanks
Animesh
Did you take a backup?
Wim Rombauts
Honored Contributor

Re: Server time problem through telnet

Every user has it's own TZ (timezone) environment variable.
When logged on through telnet, type echo $TZ(in ksh or posix, I don't know for csh).
Lookup that same variable when you log on to the console.
I think you can override the system default value in /etc/profile or $HOME/.profile.
Trent Bukowsky
Advisor

Re: Server time problem through telnet

i do use the same id. the echo output while telneting is blank, but on the console I get the time zone and the time diference.
Wim Rombauts
Honored Contributor
Solution

Re: Server time problem through telnet

Well Trent, I think that will be the problem. I
What do you see if you type "date" on both the temnet session and the console ? Normally date returns the tuimezone also.

The type "date -u", giving time in UTC. Does this mach on telnet and the console ?

If so, you just have to make sure both sessions get the same timezone. It should be set in /etc/TIMEZONE or with the program "/etc/Set_parms timezone".