ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » mqsiprofile changed environment date

Post new topic  Reply to topic
 mqsiprofile changed environment date « View previous topic :: View next topic » 
Author Message
echoesian
PostPosted: Mon Oct 06, 2008 7:18 pm    Post subject: mqsiprofile changed environment date Reply with quote

Apprentice

Joined: 30 May 2008
Posts: 33

My AIX system time is GMT+8, but after I executed the mqsiprofile (V6), the date changed back to -8. ANyone can help me please?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Oct 06, 2008 7:54 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Do you have an export TZ=xxxxxx statement in your mqsiprofile?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
echoesian
PostPosted: Mon Oct 06, 2008 7:58 pm    Post subject: Reply with quote

Apprentice

Joined: 30 May 2008
Posts: 33

No I did put any TZ=xxxx in the mqsiprofile
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Oct 06, 2008 8:05 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

echoesian wrote:
No I did put any TZ=xxxx in the mqsiprofile

That's not what I asked. I am sure you did not, so what if somebody else did? and with a typo on - instead of + ?? This why I asked you to check.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
echoesian
PostPosted: Mon Oct 06, 2008 8:11 pm    Post subject: Reply with quote

Apprentice

Joined: 30 May 2008
Posts: 33

fjb_saper wrote:
echoesian wrote:
No I did put any TZ=xxxx in the mqsiprofile

That's not what I asked. I am sure you did not, so what if somebody else did? and with a typo on - instead of + ?? This why I asked you to check.


I've checked, there is no TZ variable inside the mqsiprofile.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Oct 06, 2008 8:16 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Did you also check the other files sourced within mqsiprofile?
Could it be that the user's profile is setting the TZ wrong?
Or is defaulted from the box or group default profiles?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
echoesian
PostPosted: Mon Oct 06, 2008 10:15 pm    Post subject: Reply with quote

Apprentice

Joined: 30 May 2008
Posts: 33

fjb_saper wrote:
Did you also check the other files sourced within mqsiprofile?
Could it be that the user's profile is setting the TZ wrong?
Or is defaulted from the box or group default profiles?


I just used the default mqsiprofile from the installation.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Oct 07, 2008 2:49 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

What happens if you log out and log back on and do not run mqsiprofile ?
If you run date or time what time is displayed?
If the date/time is being displayed correctly issue
echo "TZ=${TZ}"
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
echoesian
PostPosted: Tue Oct 07, 2008 5:59 am    Post subject: Reply with quote

Apprentice

Joined: 30 May 2008
Posts: 33

Yes, the date is correctly if I commented the . mqsiprofile

The TZ = Asia/Kuala_Lumpur
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Oct 07, 2008 11:11 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

So you need to reset the TZ env variable after having sourced the mqsiprofile...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
echoesian
PostPosted: Tue Oct 07, 2008 11:15 pm    Post subject: Reply with quote

Apprentice

Joined: 30 May 2008
Posts: 33

I have tried to export the TZ after calling the mqsiprofile but still no success
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Oct 08, 2008 2:45 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

echoesian wrote:
I have tried to export the TZ after calling the mqsiprofile but still no success


in your user profile: ~username/.profile

Code:
MYTZ=${TZ}

. path/mqsiprofile

TZ=${MYTZ}

export TZ


Note . path/mqsiprofile could be source path/mqsiprofile. Of course you will have to replace path with the actual path to the mqsiprofile file.

This should fix it.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
echoesian
PostPosted: Wed Oct 08, 2008 11:27 pm    Post subject: This is the code in my .profile Reply with quote

Apprentice

Joined: 30 May 2008
Posts: 33

Code:
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.

export PATH

if [ -s "$MAIL" ]           # This is at Shell startup.  In normal
then echo "$MAILMSG"        # operation, the Shell checks
fi                          # periodically.

. /home/brkadm/mqsiprofile
. /home/db2inst1/sqllib/db2profile

TZ=Asia/Kuala_Lumpur

export TZ

stty erase ^?


No success
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » mqsiprofile changed environment date
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.