- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Setting date backwards on HP
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
Discussions
Discussions
Forums
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
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
тАО09-20-2007 12:15 AM
тАО09-20-2007 12:15 AM
Setting date backwards on HP
While setting the system date backwards on HP m/c it asks me a question.
do you really want to run time backwards?[yes/no]
Is there any switch which can skip this question and change the system date?
I want to use *date* command in perl script and hence want to avoid this question.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2007 12:31 AM
тАО09-20-2007 12:31 AM
Re: Setting date backwards on HP
This little shell script snippet should get you past the response requirement:
echo "yes" > /tmp/yes_time
CTIME=`date +%m%d%H%M%y`
date $CTIME < /tmp/yes_time
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2007 12:36 AM
тАО09-20-2007 12:36 AM
Re: Setting date backwards on HP
Thu Sep 20 08:32:43 EDT 2007
# echo "yes" | date 09200732
date: do you really want to run time backwards?[yes/no]Thu Sep 20 07:32:00 EDT 2007
# date
Thu Sep 20 07:32:02 EDT 2007
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2007 12:41 AM
тАО09-20-2007 12:41 AM
Re: Setting date backwards on HP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2007 12:46 AM
тАО09-20-2007 12:46 AM
Re: Setting date backwards on HP
The cron daemon should be killed prior to setting the date backwards, then restarted.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2007 05:47 PM
тАО09-20-2007 05:47 PM
Re: Setting date backwards on HP
See Clay's perl script here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1097748
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2007 06:00 PM
тАО09-20-2007 06:00 PM
Re: Setting date backwards on HP
I want to install a demo license and then want to expire that license by advancing the system date for testing purpose. And then have to set the date back to current date.
Thanks much for the information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2007 11:48 PM
тАО09-20-2007 11:48 PM
Re: Setting date backwards on HP
Bill Hassell, sysadmin