- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Date & "remsh server date" different results
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 12:03 AM
06-18-2004 12:03 AM
The "date" and "date -u" command return the correct values for time (current and current -2 , TZ=CTU-2), but when I type "remsh server_name date" it gives me one hour ahead. kmtune shows dst=0.
This one hour ahead time also gets reported to the syslog all the time too. Any jobs which run also reflect this. Any ideas please?
Carlo
(177/177)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 12:09 AM
06-18-2004 12:09 AM
Re: Date & "remsh server date" different results
Is the TZ value the same on the server you're remsh'ing from?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 12:13 AM
06-18-2004 12:13 AM
Re: Date & "remsh server date" different results
Carlo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 12:15 AM
06-18-2004 12:15 AM
Re: Date & "remsh server date" different results
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 12:43 AM
06-18-2004 12:43 AM
Re: Date & "remsh server date" different results
Every user has its TZ variable, and system has /etc/TIMEZONE. Your server can be runing in Mexico and having users connected from Sidney, and London.
So let us know what are those settings for your system, and the users you are using in your tests (the one running date, the one you remsh into, and the system file)
regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 12:49 AM
06-18-2004 12:49 AM
Re: Date & "remsh server date" different results
All done as root.
The issue is not the remsh as such. To me the issue is why it is reporting time to the syslog of one hour ahead. The remsh was just to elaborate. I do not specify -l in my remsh.
Thanks
Carlo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 12:55 AM
06-18-2004 12:55 AM
Re: Date & "remsh server date" different results
I know a similar problem which happens about LANG variable. remsh read a different value than telnet or rlogin.
Your problem is slightly different but similar because it seems that remsh reads something else.
Try this test:
on server launch:
# echo $TZ
and then on the same server:
# remsh server_name
# echo $TZ
Are two values of 'echo $TZ' different?
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 12:56 AM
06-18-2004 12:56 AM
Re: Date & "remsh server date" different results
Out of curiosity, what do you see if you "echo $TZ" compared to doing the same thing via remsh?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 01:01 AM
06-18-2004 01:01 AM
Re: Date & "remsh server date" different results
Carlo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 01:05 AM
06-18-2004 01:05 AM
Re: Date & "remsh server date" different results
You should try 'echo $TZ' with '''''
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 01:26 AM
06-18-2004 01:26 AM
Re: Date & "remsh server date" different results
did you change your timezone recently?
Has you server been rebooted recently?
It seems some processes do not know the current value.
Jeroen P.
32/31/1 (32 replies, approx. 31 replies with assigned points, 1 time 0 points!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 01:35 AM
06-18-2004 01:35 AM
Re: Date & "remsh server date" different results
remsh server 'echo $TZ' returns different value!!!
Server been up for 90 days. Will try to organise reboot after hours.
Carlo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 01:36 AM
06-18-2004 01:36 AM
Re: Date & "remsh server date" different results
Do you use same user to execute date and remsh server_name date commands?
type date -- when you execute data
AND
remsh server_name "type date"
Post the results
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 01:39 AM
06-18-2004 01:39 AM
Re: Date & "remsh server date" different results
What you need to figure out is where that particular timezone gets set. If your /etc/TIMEZONE file is different all you need to do is change it, and restart syslogd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 01:41 AM
06-18-2004 01:41 AM
Re: Date & "remsh server date" different results
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 01:44 AM
06-18-2004 01:44 AM
Re: Date & "remsh server date" different results
could you send us output for
cat /etc/TIMEZONE...
regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 01:45 AM
06-18-2004 01:45 AM
Re: Date & "remsh server date" different results
finsysa / (root) $ remsh finsysa 'echo $TZ'
SAST-2SADT
finsysa / (root) $ echo $TZ
CTU-2
finsysa / (root) $ type date
date is a tracked alias for /bin/date
finsysa / (root) $ remsh finsysa "type date"
date is a tracked alias for /usr/bin/date
finsysa / (root) $ /usr/bin/date
Fri Jun 18 15:41:56 CTU 2004
finsysa / (root) $ /bin/date
Fri Jun 18 15:42:09 CTU 2004
Carlo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 01:52 AM
06-18-2004 01:52 AM
Re: Date & "remsh server date" different results
-r--r--r-- 1 bin bin 19 Apr 6 09:17 /etc/TIMEZONE
finsysa / (root) $ cat /etc/TIMEZONE
TZ=CTU-2
export TZ
Not rebooted yet, system in production!
How do I restart the syslogd?
Carlo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 01:53 AM
06-18-2004 01:53 AM
Re: Date & "remsh server date" different results
ll -d /bin /usr/bin should tell you.
I insist for seeing /etc/TIMEZONE :)
TZ for remsh session must be set by remshd reading from this file...
regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 01:57 AM
06-18-2004 01:57 AM
Re: Date & "remsh server date" different results
finsysa / (root) $ remsh finsysa "cat /etc/TIMEZONE"
TZ=CTU-2
export TZ
finsysa / (root) $ remsh finsysa 'cat /etc/TIMEZONE'
TZ=CTU-2
export TZ
Carlo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 01:57 AM
06-18-2004 01:57 AM
Re: Date & "remsh server date" different results
maybe need for inetd too.
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 02:05 AM
06-18-2004 02:05 AM
Re: Date & "remsh server date" different results
env
As root
remsh server "env"
Compare the output of both.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 02:09 AM
06-18-2004 02:09 AM
Re: Date & "remsh server date" different results
In order to debug I suggest run the following commands above and find differences:
# env
# remsh server_name env
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 02:14 AM
06-18-2004 02:14 AM
Re: Date & "remsh server date" different results
The kill -1 syslogd_pid did not help.
Carlo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 02:17 AM
06-18-2004 02:17 AM
Re: Date & "remsh server date" different results
you need to do.
remsh "server" "TZ=xxx;date"
Anil