Re: [chrony-users] Modifying system date and syncing back

2014-05-12 Thread mallapadi niranjan
That was one of the options that i did consider, but i wanted to know if i could achieve the same with chrony running . I have implemented the Suggestions given by Miroslav Lichvar in my test scripts and monitoring . On Mon, May 12, 2014 at 2:45 PM, Ed W wrote: > On 28/04/2014 13:06, Mirosla

Re: [chrony-users] Modifying system date and syncing back

2014-05-12 Thread Miroslav Lichvar
On Mon, May 12, 2014 at 10:15:05AM +0100, Ed W wrote: > On 28/04/2014 13:06, Miroslav Lichvar wrote: > >A better approach would be to make chronyd step the clock via the > >manual feature. For example: > > > >chronyc -a 'manual on' (or enable it in chrony.conf) > > > >chronyc -a -m 'offline' 'setti

Re: [chrony-users] Modifying system date and syncing back

2014-05-12 Thread Ed W
On 28/04/2014 13:06, Miroslav Lichvar wrote: On Sat, Apr 26, 2014 at 10:53:17PM +0530, mallapadi niranjan wrote: we have certain automation testing where we expire certs by moving date, We currently do move the date back by date command , example: chronyc -a offline date -s '1 month' dat

Re: [chrony-users] Modifying system date and syncing back

2014-04-29 Thread mallapadi niranjan
Thanks Miroslav, I will try the given suggestion and see how it works out. Regards Niranjan On Mon, Apr 28, 2014 at 5:36 PM, Miroslav Lichvar wrote: > On Sat, Apr 26, 2014 at 10:53:17PM +0530, mallapadi niranjan wrote: > > we have certain automation testing where we expire certs by moving > > d

Re: [chrony-users] Modifying system date and syncing back

2014-04-28 Thread Miroslav Lichvar
On Sat, Apr 26, 2014 at 10:53:17PM +0530, mallapadi niranjan wrote: > we have certain automation testing where we expire certs by moving > date, We currently do move the date back by date command , > > example: > > chronyc -a offline > date -s '1 month' > > date -s '1 month ago' > chronyc -

Re: [chrony-users] Modifying system date and syncing back

2014-04-26 Thread mallapadi niranjan
Thanks a lot for the information,the actions take not more than a 5 minutes(max),so do you suggest that i don't modify anything (i.e making offline and online). ? On Sat, Apr 26, 2014 at 11:33 PM, Bill Unruh wrote: > On Sat, 26 Apr 2014, mallapadi niranjan wrote: > > we have certain a

Re: [chrony-users] Modifying system date and syncing back

2014-04-26 Thread mallapadi niranjan
we have certain automation testing where we expire certs by moving date, We currently do move the date back by date command , example: chronyc -a offline date -s '1 month' date -s '1 month ago' chronyc - a online chronyc -a makestep what i would like to know is can we modify the date af

[chrony-users] Modifying system date and syncing back

2014-04-26 Thread mallapadi niranjan
Greetings, I am using Fedora 20 and running version chrony-1.29.1-1.fc20.x86_64, I run certain automation scripts which requires to change system date , run some script and then change the date back. currently i am doing the following chronyc -a offline date -s '1 month' chronyc -a online chr

Re: [chrony-users] Modifying system date and syncing back

2014-04-26 Thread Bill Unruh
On Sat, 26 Apr 2014, mallapadi niranjan wrote: we have certain automation testing where we expire certs by moving date, We currently do move the date back by date command , example: chronyc -a offline date -s '1 month' date -s '1 month ago' chronyc - a online chronyc -a makestep what i

Re: [chrony-users] Modifying system date and syncing back

2014-04-26 Thread Bill Unruh
On Sat, 26 Apr 2014, mallapadi niranjan wrote: Greetings, I am using Fedora 20 and running version chrony-1.29.1-1.fc20.x86_64, I run certain automation scripts which requires to change system date , run some script and then change the date back. currently i am doing the following chrony