1833767 Members
2789 Online
110063 Solutions
New Discussion

Re: HPUX TIme Zone

 
Kris McCarn
New Member

HPUX TIme Zone

We upgraded our HPUX server from 11.0 to 11.11 this weekend. After everything was said and done the we noticed the timezone was set to MDT.. We modified the /etc/TIMEZONE to reflect EST but all services that started up on reboot are running under MDT timezone. How do we get all the services to use EST without rebooting the server again / or stopping and starting all the services (which is nearly impossible during production hours)
4 REPLIES 4
Kent Ostby
Honored Contributor

Re: HPUX TIme Zone

What happens if you just run :

setenv TZ EST5EDT ?

What is in /etc/profile ?

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Kent Ostby
Honored Contributor

Re: HPUX TIme Zone

Sorry .. I misread your original post.

There is no magic way to get everything using the new time .

More than likely those processes read the system variables at start up.

Anything new will use the new timezone. Anything old will use the old timezone.

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
HGN
Honored Contributor

Re: HPUX TIme Zone

Hi

The temporary situation for indivijual users can be done by adding in the profile
setenv TZ EST5EDT
but for this to make it permanent the server needs to be rebooted.

Rgds

HGN
Borislav Perkov
Respected Contributor

Re: HPUX TIme Zone

Hi Kris,
It is impossible to do changing the Timezone without reboot, as you can see from your services referencing the previous timezone. The best way is doing reboot and than changing the timezone with set_parms script.

See also this link

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=113057

Regards,
Borislav