- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Date problems
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
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
08-23-2002 08:16 AM
08-23-2002 08:16 AM
Date problems
We have system running 11.00. When I telnet or rlogin to system and run DATE command I get correct date and when I run remsh from a different system I MDT time zone date. The command I run is "remsh abc date"
Does any one know why. I am not sure I think it looks like NTP problem.
Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 08:25 AM
08-23-2002 08:25 AM
Re: Date problems
Check $TZ on both servers. When you rlogin in you'll be using that server's TZ. When you remsh, your TZ variable will be set to whatever your local system has.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 08:28 AM
08-23-2002 08:28 AM
Re: Date problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 08:30 AM
08-23-2002 08:30 AM
Re: Date problems
Is it something withe TZ setting.
remsh
rlogin
# echo $TZ
Do you get the same result ?
I tested this but I get the same TZ and time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 08:37 AM
08-23-2002 08:37 AM
Re: Date problems
Ran the command "remsh abc echo ${TZ} and I get PST8PDT. I started NTP serveices, I hope it doesen't cause the problem.
Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 08:43 AM
08-23-2002 08:43 AM
Re: Date problems
Hi
You perhaps need to define the TZ variable on the remote host.
If using sh define TZ in .profile and run the command in this way (from man remsh):
If the remote shell is /usr/bin/sh, the following command line sets up
the environment for the remote command before executing the remote
command:
remsh otherhost . .profile 2>&- \; command
The 2>&- throws away error messages generated by executing .profile
when stdin and stdout are not a terminal.
If your default shell is csh you can define TZ in your .cshrc file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 09:06 AM
08-23-2002 09:06 AM
Re: Date problems
When I do echo on TZ (echo $TZ) I get the right value. This means that the value is set correctly on host abc.
Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 09:11 AM
08-23-2002 09:11 AM
Re: Date problems
So you're saying that TZ is the same on both hosts? There has to be some difference in your environments. As Clay pointed out, remsh is not going to execute your profile, or the system profile (/etc/profile) or anything, so you need to compare env on both machines to find out what's different.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 09:12 AM
08-23-2002 09:12 AM
Re: Date problems
Since TZ is set correctly when you do a "remsh", this means that date should be behaving correctly.
If TZ were not defined, "date" would use EST. But since you are getting MDT, this is what is set by default in /etc/profile when the file /etc/TIMEZONE is not readable.
Another factor to look at is if the paths are different between using "remsh" versus "telnet". Maybe a different "date" program is being run that isn't dealing with TZ correctly.
do a "remsh abc /usr/bin/date" and see if you get MDT or PDT.
My 2 cents.
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 10:09 AM
08-23-2002 10:09 AM
Re: Date problems
Try this command and "remsh abc /usr/bin/date" and still reports MDT timezone.
I think like Microsoft may be reboot will fix.
(HAHA)
Any other idea.
Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 09:44 AM
08-26-2002 09:44 AM
Re: Date problems
The problem is resolve. I reset the date using set_parms commands.
Thanks for your help.
Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2005 05:33 AM
05-05-2005 05:33 AM