AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  change server time/date consideration

    Posted 03/04/09 06:24 AM

    Originally posted by: apple08


    dear AIX gurus,
    would like to seek your advice. i want to change the server date on weekend from one date to another date for one day.

    i was thinking of cron job. do we need to stop the cron job before we change the time and during the date change? can application id change the server time/date? or we need to grant to sudo?
    what are the things that i overlook. would really appreciate your advice. thank you
    #AIX-Forum


  • 2.  Re: change server time/date consideration

    Posted 03/12/09 01:53 AM

    Originally posted by: apple08


    dear IBM AIX gurus,
    i have created one id with minimun privilege. and run the # smitty date. the user can run. but i can't change the date now since the server is production server and none of our aix server is test server. how to check the other than root id can change the server date/time?

    if can change, i don't need to grant sudo to them.

    hope to hear from you. many thanks in advance.t hank you
    #AIX-Forum


  • 3.  Re: change server time/date consideration

    Posted 03/12/09 09:56 PM

    Originally posted by: dukessd


    apple08,

    You need to learn how to use the 'man' command or look in the command reference.

    We are here to help people but not to assist people that do not try to help them selves or people who ask stupid questions and, or bump their threads.

    The date can only be changed by root and should not be changed on a system in production because all sorts of things can go horribly wrong.

    The 'date' command reference:
    http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds2/date.htm

    Says:
    Attention: Do not change the date when the system is running with more than one user.
    Only a root user can change the date and time.

    RTFM
    HTH
    #AIX-Forum


  • 4.  Re: change server time/date consideration

    Posted 03/13/09 02:21 AM

    Originally posted by: apple08


    dear Sir,
    thank you for your reply. i find this forum is very helpful and all friends here are have depth technical knowledge.

    i heard, if i want to change the date i need to stop the cron services. ive installed the sudo and grant the application id to execute /usr/bin/date

    will test out tomorrow. will let u know the outcome, but do we need to stop the cron service? i tried to google, but can't find anything pre-req about this cron service thingy.

    many thanks in advance.
    #AIX-Forum


  • 5.  Re: change server time/date consideration

    Posted 03/15/09 10:36 AM

    Originally posted by: apple08


    dear all,
    would like to share my action taken:
    action taken:
    1. stop the db and application services - recommended to stop to avoid any data inconsistency
    2. change server time # date 0215183009 or using smitty date
    #AIX-Forum


  • 6.  Re: change server time/date consideration

    Posted 03/15/09 11:48 AM

    Originally posted by: esv


    apple08:

    you need to reboot the server if you want the change to be effective immediately.

    best regards,
    esv.
    #AIX-Forum