- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- timestamp in named log is off by one hour
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
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
04-01-2008 01:04 PM
04-01-2008 01:04 PM
timestamp in named log is off by one hour
The timestamp is the named.run file is off by exactly one hour. The system time is correct and did adjust correctly for DST.
I cannot seem to figure out where the named process is getting its timestamp from. I don't have any specific loggin directives in the named.conf. Just running named with a debug level of 2, and using the default debug logfile of named.run.
The DNS server is running HP-UX 11.11.
Any answers out there?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2008 07:15 PM
04-01-2008 07:15 PM
Re: timestamp in named log is off by one hour
The default TZ value is always found in /etc/TIMEZONE but if missing, then US CST (Central timezone) will be substituted. It's important to understand that you can have many, many timezones on HP-UX at once. This is ideal for a system used in many different locations -- just have the user change the TZ value to match their local location in $HOME/.profile and now date, ll, any command that shows the time will match the local location.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 12:24 AM
04-02-2008 12:24 AM
Re: timestamp in named log is off by one hour
What is the format for this timestamp, does it include the timezone?
If it does, you know how to fix it. If it doesn't, you'll have figure out why TZ is bad as Bill says.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 03:53 AM
04-02-2008 03:53 AM
Re: timestamp in named log is off by one hour
A number of processess (especially low level routines loaded soon after boot ) rely on the kernel setting timezone rather than TZ which used for the shells and most tasks. The default is +420 which is 7 hours west of greenwich this value should be agree with your system default TZ settings for normal (winter) time .
Check the kernel value for dst. 1 follows US conventions, 3 western european conventions, 0 turns off dst changes.
You will need to rebuild the kernel and reboot to change these values.
The sam configurable kernel parameters help under miscellaneous for timezone and dst has more detail.
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 06:00 AM
04-02-2008 06:00 AM
Re: timestamp in named log is off by one hour
1. the /etc/TIMEZONE file exists and has the following value:
TZ=EST5EDT
export TZ
2. the named process is running under user "named" which has been chrooted. The "named" user itself has no .profile set, so I assume it is getting the TZ value from the systems default profile.
3. The timestamp in the named.run log file does not indicate timezone. A sample line taken at 9:59 am this morning looks like this
Apr 02 08:59:16.514 createfetch: www-google-analytics.l.google.com A
Its exactly an hour off.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 06:01 AM
04-02-2008 06:01 AM
Re: timestamp in named log is off by one hour
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 08:45 AM
04-02-2008 08:45 AM
Re: timestamp in named log is off by one hour
> 2. the named process is running under user "named" which has been chrooted.
I found this link under bind faq you may need an copy of /etc/TIMZONE unde the "new" root directory
http://www.bind9.net/BIND-FAQ
look for
Q:
Why are my logs in GMT (UTC).
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 09:05 AM
04-02-2008 09:05 AM
Re: timestamp in named log is off by one hour
Copying the /etc/TIMEZONE file did not make a difference as the corresponding "tztab" file was incorrect and the TIMEZONE file is useless without the correct "/usr/lib/tztab" file.
I copied the "/usr/lib/tztab" file to the chrooted /usr/lib and that fixed the issue.
Thanks a lot everyone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 09:07 AM
04-02-2008 09:07 AM