- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- need to freeze system date/problems with cron
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
01-08-2020 09:33 AM
01-08-2020 09:33 AM
need to freeze system date/problems with cron
I have a server running an OLD ERM system. In 1990 the ERM system, which uses a 2 digit date, was made "Y2K ready" by adding a little math to postpone the problem to 2020. My client made me aware of this November 2019 LMFAO! We successfully got them using a new system in time but need to keep the old system running so they can close the financial year and refer to the old system. As the system conciders any date past 2019 invalid we want to keep the date from advancing past Dec. 30 2019 (keeping the 31st as a safety). I created a simple script that sets UNIX_STD=2003 to prevent date from complaining about setting the date backwards then sets the date to Dec. 29 2019. Cron runs this script at one minute to midnight every day. This works except cron fails every few days and needs to be restarted. Yes, I know this should have all been figured out in a test environment a year ago but I just don't have those resorces.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2020 10:38 PM
01-08-2020 10:38 PM
Re: need to freeze system date/problems with cron
We need identify why the cron is failing. Any entries in syslog.log or cronlog?
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2020 04:43 AM
01-10-2020 04:43 AM
Re: need to freeze system date/problems with cron
After looking at /var/adm/cron/log I think I have some clues. Yesterday I had to manually reset the date as cron had failed. My steps at 3:45am were to stop then start cron and then reset the date to Dec. 30. Upon examining the log file today I found that cron functioned for about 2 hours after being restarted but erroneously recorded the date as Dec. 31 even though the date was immediately set the the 30th after restarting cron. There were no errors recorded the entries just stopped. Today I restarted cron AFTER resetting the date, I will monitor the log file to see when if it works longer. My suspision is that I will have to restart cron at 1 minute after midnight on the morning of the 30th.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2020 05:01 AM
01-12-2020 05:01 AM
Re: need to freeze system date/problems with cron
Possibly solved: Cron appears to create between 0 and 1 log entries with an out of sequence date, then it stops logging. Cron appears to fail completely some time after it stops logging (it does about 8 things per hour and works without logging for at least 2 hours).
Solution: My script that rolls back the date at 23:59 now also then sleeps for 2 minutes then stops and restarts cron so all logging is done dec. 30
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2020 12:11 AM
01-13-2020 12:11 AM
Re: need to freeze system date/problems with cron
Greetings,
I am glad to know to that you figured out the cause and fixed it.
Thank you for sharing the details.
I am a HPE Employee