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 » Not able to set mqsiprofile

Post new topic  Reply to topic
 Not able to set mqsiprofile « View previous topic :: View next topic » 
Author Message
sudeepd2005
PostPosted: Mon Sep 08, 2014 9:10 am    Post subject: Not able to set mqsiprofile Reply with quote

Novice

Joined: 28 Oct 2013
Posts: 22

Hi,

I am getting following issue while setting up mqsiprofile.

First attemp -

/opt/IBM/mqsi/7.0/bin>. mqsiprofile
ksh: MIBDIRS: 0403-041 Parameter not set.

/opt/IBM/mqsi/7.0/bin>mqsilist
The user environment was not adequately prepared to continue execution. Locate and run the profile supplied with the product. This file is called mqsiprofile, and is located in the bin subdirectory for the product.


Second attempt -

/opt/IBM/mqsi/7.0/bin>. mqsiprofile
mqsiprofile repetition disallowed

/opt/IBM/mqsi/7.0/bin>mqsilist
The user environment was not adequately prepared to continue execution. Locate and run the profile supplied with the product. This file is called mqsiprofile, and is located in the bin subdirectory for the product.

Please suggest!
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Sep 08, 2014 9:29 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

What OS?

Have you modified the mqsiprofile from the IBM supplied standard?

Has this ever worked or is this a new installation?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Sep 08, 2014 10:46 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Shouldn't the profile be 'sourced' by

Code:

. ./mqsiprofile

_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
sudeepd2005
PostPosted: Tue Sep 09, 2014 7:38 am    Post subject: Reply with quote

Novice

Joined: 28 Oct 2013
Posts: 22

Thanks for the reply!

The OS is AIX 6. It was working fine when I used last time. I am sure no changes have been made in it after that.

I have tried . ./mqsiprofile as well , same result :

/opt/IBM/mqsi/7.0/bin>. ./mqsiprofile
mqsiprofile repetition disallowed
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Sep 09, 2014 7:54 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

sudeepd2005 wrote:


/opt/IBM/mqsi/7.0/bin>. ./mqsiprofile
mqsiprofile repetition disallowed


Dosen't mqsiprofile repetition disallowed tell you something?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Sep 09, 2014 7:56 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Ok, so the only real issue is the bit about
Quote:
ksh: MIBDIRS: 0403-041 Parameter not set.


and that's coming from ksh, not really from mqsiprofile.

It sounds like you should maybe log out and log back in, and then see if you can source the mqsiprofile the first time without errors.
Back to top
View user's profile Send private message
sudeepd2005
PostPosted: Tue Sep 09, 2014 8:53 am    Post subject: Reply with quote

Novice

Joined: 28 Oct 2013
Posts: 22

Even after logging out and making a first attempt to set mqsiprofile i get below issue, which i have stated earlier -


/opt/IBM/mqsi/7.0/bin>. mqsiprofile
ksh: MIBDIRS: 0403-041 Parameter not set.

On the second attempt that repetition stuff displays.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Sep 09, 2014 9:01 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sudeepd2005 wrote:
/opt/IBM/mqsi/7.0/bin>. mqsiprofile
ksh: MIBDIRS: 0403-041 Parameter not set.


Which, as my most worthy associate points out, is an error from ksh not from mqsiprofile.

Typically it means that ksh thinks a string literal in a command string is a parameter. Ask Mr Google about an 0403-041 error from ksh. Also ask whoever installed AIX if they've "improved" the settings of the Korn shell by changing any of the defaults.......

sudeepd2005 wrote:
On the second attempt that repetition stuff displays.


As it should. We can assume mqsiprofile set the "I've been run" switch before it failed.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Sep 09, 2014 9:21 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

MIBDIRS sounds like something to do with SNMP.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
sudeepd2005
PostPosted: Tue Sep 09, 2014 12:12 pm    Post subject: Reply with quote

Novice

Joined: 28 Oct 2013
Posts: 22

Folks,

Not getting much help from google. What you suggest ?
Just for the info MQ 9 was also installed on same server recently. Is there any chance it has impacted ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Sep 09, 2014 12:24 pm    Post subject: Reply with quote

Grand High Poobah

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

For your mqsi profile you need to make sure you reference the MQ7 environment. See on how to set up the production /test environment by reading up in the infocenter
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sudeepd2005
PostPosted: Wed Sep 10, 2014 12:39 am    Post subject: Reply with quote

Novice

Joined: 28 Oct 2013
Posts: 22

its a QA env where issue is happening.Below excerpt is from mqsiprofile -

MIBDIRS=${MQSI_FILEPATH}/snmp-mib:${MIBDIRS}


where -

PROSPECTIVE_MQSI_FILEPATH=/opt/IBM/mqsi/7.0
MQSI_FILEPATH=${PROSPECTIVE_MQSI_FILEPATH}
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Sep 10, 2014 3:51 am    Post subject: Reply with quote

Grand High Poobah

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

sudeepd2005 wrote:
its a QA env where issue is happening.Below excerpt is from mqsiprofile -

MIBDIRS=${MQSI_FILEPATH}/snmp-mib:${MIBDIRS}


where -

PROSPECTIVE_MQSI_FILEPATH=/opt/IBM/mqsi/7.0
MQSI_FILEPATH=${PROSPECTIVE_MQSI_FILEPATH}


Does this path exist? ${MQSI_FILEPATH}/snmp-mib ?
maybe you'd have to create it?

This does not sound like a standard set up in mqsiprofile...
Did somebody change it? Is it part of the runtime environment set up (plug in to mqsiprofile)? may be you should check that the path exists before trying to set it in the variable...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Sep 10, 2014 4:59 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

fjb_saper wrote:
This does not sound like a standard set up in mqsiprofile...




It's bad practice to change the supplied mqsiprofile - makes maintenance trickier. Change the .profile instead.

I also agree this looks like a simple script bug. Or at least a script bug.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Not able to set mqsiprofile
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.