Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Tuesday 10 December 2013

How to change the Time Zone in AIX




File involve                  -                       /etc/environment
Reboot Required         -                       Yes (To take effect).

My server location is in EST (Easter Standard Time zone), but some reason it showing me the CST (Central Standard Time Zone). My oslevel is 61.

#date
Mon Feb 11 09:36:02 CST 2013
#

Check your /etc/environment file as well, before going to make changes.

# more /etc/environment
Let’s change the time zone

# smitty chtz_date 

By selecting the approciate time zone, it gives the following message


Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

Any changes made to the time zone will take effect at the next system boot.

OR, you can use the command line to change the time zone as well.

#chtz EST5EDT,M3.2.0/2:00:00,M11.1.0/2:00:00

Let check again, it showing me the same TZ, because changes will take effect after reboot.

#date
Mon Feb 11 09:36:02 CST 2013
#
Any change, to time zone, check your /etc/environment file before going to reboot.

# more /etc/environment
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin
TZ=EST5EDT,M3.2.0/2:00:00,M11.1.0/2:00:00
LANG=en_US

After reboot, Check again, Its done.

guexnim01(/)#date
Mon Feb 11 09:46:00 EST 2013
guexnim01(/)#

No comments:

Post a Comment