issue with time zone on different users on aIX6.1

Hi

I have an issue with TZ on AIX6.1. As root:
[root@mid:/] date
Mon Apr 11 12:02:11 GMT+02:00 2011
[root@mid:/] echo $TZ
Europe/Andorra

As user user1
[mqm@middlep1:/var/mqm] date
Mon Apr 11 10:02:45 Europe/Andorra 2011
[mqm@middlep1:/var/mqm] echo $TZ
Europe/Andorra

As you see there's a difference in two hours when the TZ is the same. ALso the server is fine with NTP:
 [root@midd:/] ntpq -p
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
*NTPSERVER       LOCAL(0)         4 u   40  128  377     0.67   -0.050    0.09

Also, the only user that has this problem is user1, all other users show the date fine.

Any hint?


sminfoAsked:
Who is Participating?
 
woolmilkporcConnect With a Mentor Commented:
Oh yeah,

I overlooked the mqm thing.

There is a blur in the support of Olson timezone names.

AIX 6.1 does understand them as well as the regular POSIX names,
but the Message Broker has a problem here. Under 6.x there was a workaround,
which unfortunately doesn't work in 7.x anymore.

So now there will be an official solution in ML 7.0.0.3.

The appropriate APAR IC74877 is here:
http://www-01.ibm.com/support/docview.wss?uid=swg1IC74877

Afaik the Maintenance PTF has not been released yet.
Seems that it's planned for the third (!!) quarter 2011

Check here for availability:
http://www-01.ibm.com/support/docview.wss?rs=849&uid=swg27006041

and as long as you don't have the fix I'd recommend reverting to the old POSIX notation, like
TZ=CET-1CEST,M3.5.0,M10.5.0
("Central European Time"), or to the good old "Norway/France Time":
TZ=NFT-1DFT,M3.5.0,M10.5.0

Good luck!

wmp


0
 
woolmilkporcCommented:
Hi Israel,

the verbose name of the timezone ("Europe/Andorra") should not be visible in the output of "date" as from "user1".
See à l'autre coté root's output which is correct.

So I assume that user1 has his (her?) own timezone setting somewhere in his (her?) initialization profiles,
in a way like

TZ="Europe/Andorra "
or
TZ=" Europe/Andorra"
or even
TZ=" Europe/Andorra "

or maybe with apostrophes

TZ='Europe/Andorra '
or
TZ=' Europe/Andorra'
or even
TZ=' Europe/Andorra '

Do you see what I mean?
Yes, I mean the space(s) in front, at the end or even surrounding the TZ string.

Am I right?

P.S. I'll return to your NIM question soon, promise!

wmp
0
 
sminfoAuthor Commented:
umm.. It's odd.because in his profile there's not TZ variable, it's only on the /etc/environment as global. But, one detail this user is for mqm and it load this profile (althout I dont see any TZ variable) but I read from the man date, there're other variables like, LANG, LC_ALL, LC_TYPE, LC_MESSAGES, LC_TIME and NLSPATH, so I dont know if it has to be with the issue.
Also, I ran truss date with this user and it's different from others. Look:

execve("/opt/IBM/mqsi/7.0/jre16/bin/date", 0x2FF2275C, 0x20012ED8) Err#2  ENOENT
execve("/opt/IBM/mqsi/7.0/bin/date", 0x2FF2275C, 0x20012ED8) Err#2  ENOENT
execve("/usr/mqm/samp/bin/date", 0x2FF2275C, 0x20012ED8) Err#2  ENOENT
execve("/usr/bin/date", 0x2FF2275C, 0x20012ED8)  argc: 1
sbrk(0x00000000)                                = 0x2000114C
vmgetinfo(0x2FF21950, 7, 16)                    = 0
sbrk(0x00000000)                                = 0x2000114C
sbrk(0x00000004)                                = 0x2000114C
__libc_sbrk(0x00000000)                         = 0x20001150
getuidx(4)                                      = 408
getuidx(2)                                      = 408
getuidx(1)                                      = 408
getgidx(4)                                      = 209
getgidx(2)                                      = 209
getgidx(1)                                      = 209
__loadx(0x01480080, 0x2FF21310, 0x00000A50, 0x2FF21E80, 0x2FF22E79) = 0xD0534128
__loadx(0x01480180, 0x2FF21310, 0x00000A50, 0xF075737C, 0xF07572AC) = 0xF0827DA0
__loadx(0x07080000, 0xF075734C, 0xFFFFFFFF, 0xF0827DA0, 0x00000000) = 0xF0828CF4
__loadx(0x07080000, 0xF075728C, 0xFFFFFFFF, 0xF0827DA0, 0x00000000) = 0xF0828D00
__loadx(0x07080000, 0xF075735C, 0xFFFFFFFF, 0xF0827DA0, 0x00000000) = 0xF0828D30
__loadx(0x07080000, 0xF075729C, 0xFFFFFFFF, 0xF0827DA0, 0x00000000) = 0xF0828D3C
__loadx(0x07080000, 0xF075731C, 0xFFFFFFFF, 0xF0827DA0, 0x00000000) = 0xF0828D0C
__loadx(0x07080000, 0xF07572BC, 0xFFFFFFFF, 0xF0827DA0, 0x00000000) = 0xF0828D24
__loadx(0x07080000, 0xF075732C, 0xFFFFFFFF, 0xF0827DA0, 0x00000000) = 0xF0828D48
__loadx(0x07080000, 0xF075733C, 0xFFFFFFFF, 0xF0827DA0, 0x00000000) = 0xF0828D78
__loadx(0x07080000, 0xF07572CC, 0xFFFFFFFF, 0xF0827DA0, 0x00000000) = 0xF0828D60
__loadx(0x07080000, 0xF07572DC, 0xFFFFFFFF, 0xF0827DA0, 0x00000000) = 0xF0828DD8
getuidx(4)                                      = 408
getuidx(2)                                      = 408
getuidx(1)                                      = 408
getgidx(4)                                      = 209
getgidx(2)                                      = 209
getgidx(1)                                      = 209
__loadx(0x01480080, 0x2FF21310, 0x00000A50, 0x2FF21E80, 0x2FF22E79) = 0xD0534128
getuidx(4)                                      = 408
getuidx(2)                                      = 408
getuidx(1)                                      = 408
getgidx(4)                                      = 209
getgidx(2)                                      = 209
getgidx(1)                                      = 209
__loadx(0x01480080, 0x2FF21310, 0x00000A50, 0x2FF21E80, 0x2FF22E79) = 0xD0534128
getuidx(4)                                      = 408
getuidx(2)                                      = 408
getuidx(1)                                      = 408
getgidx(4)                                      = 209
getgidx(2)                                      = 209
getgidx(1)                                      = 209
__loadx(0x01480080, 0x2FF21310, 0x00000A50, 0x2FF21E80, 0x2FF22E79) = 0xD0534128
getuidx(4)                                      = 408
getuidx(2)                                      = 408
getuidx(1)                                      = 408
getgidx(4)                                      = 209
getgidx(2)                                      = 209
getgidx(1)                                      = 209
__loadx(0x01480080, 0x2FF21310, 0x00000A50, 0x2FF21E80, 0x2FF22E79) = 0xD0534128
getuidx(4)                                      = 408
getuidx(2)                                      = 408
getuidx(1)                                      = 408
getgidx(4)                                      = 209
getgidx(2)                                      = 209
getgidx(1)                                      = 209
__loadx(0x01480080, 0x2FF21310, 0x00000A50, 0x2FF21E80, 0x2FF22E79) = 0xD0534128
access("/opt/IBM/mqsi/7.0/messages/en_US/date.cat", 0) Err#2  ENOENT
access("/opt/IBM/mqsi/7.0/messages/En_US/date.cat", 0) Err#2  ENOENT
access("/usr/lib/nls/msg/en_US/date.cat", 0)    = 0
_getpid()                                       = 7667788
loadquery(2, 0x20002D08, 0x00001000)            = 0
__loadx(0x014B0380, 0x2FF21960, 0x00000A50, 0xF075BCE8, 0x2FF22E79) = 0x00000000
access("/opt/IBM/mqsi/7.0/messages/en_US/libc.cat", 0) Err#2  ENOENT
access("/opt/IBM/mqsi/7.0/messages/En_US/libc.cat", 0) Err#2  ENOENT
access("/usr/lib/nls/msg/en_US/libc.cat", 0)    = 0
_getpid()                                       = 7667788
kopen("/usr/lib/nls/msg/en_US/libc.cat", O_RDONLY) = 3
kioctl(3, 22528, 0x00000000, 0x00000000)        Err#25 ENOTTY
kfcntl(3, F_SETFD, 0x00000001)                  = 0
kioctl(3, 22528, 0x00000000, 0x00000000)        Err#25 ENOTTY
kread(3, "\0\001 ù\007\007 I S O 8".., 4096)    = 4096
lseek(3, 0, 1)                                  = 4096
lseek(3, 0, 1)                                  = 4096
lseek(3, 0, 1)                                  = 4096
_getpid()                                       = 7667788
lseek(3, 0, 1)                                  = 4096
close(3)                                        = 0
access("/opt/IBM/mqsi/7.0/messages/en_US/libc.cat", 0) Err#2  ENOENT
access("/opt/IBM/mqsi/7.0/messages/En_US/libc.cat", 0) Err#2  ENOENT
access("/usr/lib/nls/msg/en_US/libc.cat", 0)    = 0
_getpid()                                       = 7667788
kopen("/usr/lib/nls/msg/en_US/libc.cat", O_RDONLY) = 3
kioctl(3, 22528, 0x00000000, 0x00000000)        Err#25 ENOTTY
kfcntl(3, F_SETFD, 0x00000001)                  = 0
kioctl(3, 22528, 0x00000000, 0x00000000)        Err#25 ENOTTY
kread(3, "\0\001 ù\007\007 I S O 8".., 4096)    = 4096
lseek(3, 0, 1)                                  = 4096
lseek(3, 0, 1)                                  = 4096
lseek(3, 0, 1)                                  = 4096
_getpid()                                       = 7667788
lseek(3, 0, 1)                                  = 4096
lseek(3, 4365, 0)                               = 4365
kread(3, " A   s y s t e m   c a l".., 4096)    = 4096
close(3)                                        = 0
kioctl(1, 22528, 0x00000000, 0x00000000)        = 0
Mon Apr 11 11:06:26 Europe/Andorra 2011
kwrite(1, " M o n   A p r   1 1   1".., 40)     = 40
kfcntl(1, F_GETFL, 0x2FF22FFC)                  = 67110914
kfcntl(2, F_GETFL, 0x2FF22FFC)                  = 67110914
_exit(0)

Any idea.. I'll appreciate your help.
0
 
sminfoAuthor Commented:
more data, the env command as mqm user:

[mqm@midd:/var/mqm] env
_=/usr/bin/env
LANG=en_US
LOGIN=mqm
MAILCOM=mail root adm
PATH=/opt/IBM/mqsi/7.0/jre16/bin:/opt/IBM/mqsi/7.0/bin:/usr/mqm/samp/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/var/mqm/bin:/usr/bin/X11:/sbin:.
MQSI_JARPATH=/opt/IBM/mqsi/7.0/classes:/opt/IBM/mqsi/7.0/messages
EXTENDED_HISTORY=ON
LC__FASTMSG=true
MQSI_REGISTRY=/var/mqsi
EDITOR=vi
HISTFILE=/var/mqm/.history.mqm/.sh_history.mqm.isga01s.172.21.10.78.pts-1.1257.041111
CLASSPATH=/opt/IBM/mqsi/7.0/classes/ConfigManagerProxy.jar:/opt/IBM/mqsi/7.0/classes/brokerutil.jar:/usr/mqm/java/lib/com.ibm.mq.jar:/usr/mqm/java/lib/connector.jar:/opt/IBM/mqsi/7.0/messages:/var/mqsi/common/wsrr:
LOGNAME=mqm
MQSI_FAD=5
MAIL=/usr/spool/mail/mqm
MQSI_LILPATH=/opt/IBM/mqsi/7.0/lil:/opt/IBM/mqsi/7.0/jplugin
LOCPATH=/usr/lib/nls/loc
PS1=[mqm@middlep2:$PWD]
MQSI_JREPATH=/opt/IBM/mqsi/7.0/jre16
MQSI_DEVELOPMENT=/var/mqsi/registry
USER=mqm
AUTHSTATE=files
IBM_JAVA_OPTIONS=-Dcom.ibm.xslt4j.options=expandedRTFAnalysis
MQSI_VERSION=7.0.0.0
MQSI_CATALINA_HOME=/opt/IBM/mqsi/7.0/catalina
SHELL=/usr/bin/ksh
ODMDIR=/etc/objrepos
ICU_DATA=/opt/IBM/mqsi/7.0/xml4c/data
MQSI_FILEPATH=/opt/IBM/mqsi/7.0
HISTSIZE=4098
TMOUT=7200
HOME=/var/mqm
MQSI_VERSION_F=0
MQSI_WORKPATH=/var/mqsi
MQSI_SECURITY_PROVIDER_PATH=/opt/IBM/mqsi/7.0/SecurityProviders
MQSI_EXMLTCONFIGPATH=/opt/IBM/mqsi/7.0/exmltConfig
TERM=xterm
MAILMSG=[YOU HAVE NEW MAIL]
MQSI_VERSION_M=0
PWD=/var/mqm
TZ=Europe/Andorra
MQSI_VERSION_V=7
MQSI_VERSION_R=0
A__z=! LOGNAME="*TMOUT
NLSPATH=/opt/IBM/mqsi/7.0/messages/%L/%N:/opt/IBM/mqsi/7.0/messages/En_US/%N:/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
LIBPATH=/opt/IBM/mqsi/7.0/jre16/lib/ppc64:/opt/IBM/mqsi/7.0/jre16/lib/ppc64/classic:/usr/mqm/java/lib64:/opt/IBM/mqsi/7.0/xml4c/lib:/usr/mqm/lib64:/opt/IBM/mqsi/7.0/ODBC/V6.0/lib:/opt/IBM/mqsi/7.0/xlxpc/lib:/opt/IBM/mqsi/7.0/lib:/opt/IBM/mqsi/7.0/bin:
0
 
sminfoAuthor Commented:
That's it!..

Thanks wmp..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.