Reputation: 147
Can you please tell how the environment variable of MQ can be checked in LINUX, AIX or SunOS. For example how to check MQSNOAUT variable. Thank You.
Upvotes: 2
Views: 1327
Reputation: 10652
If the MQSNOAUT
variable is set to any value when the queue manager is created, OAM is turned off. If the MQSNOAUT
variable is set any other time besides queue manager creation it has no effect. This is documented on the IBM MQ v7.1 Knowledge Center page "MQSNOAUT":
When you set this variable it disables the object authority manager (OAM) and prevents any security checking.
The MQSNOAUT variable only takes effect when a queue manager is created.
If you want to check if the MQSNOAUT
variable is set before you run the crtmqm
command to create a new queue manager, on Unix you can as provided by @buzyjess just run the following:
echo $MQSNOAUT
If you want to check if OAM is turned off on a running queue manager run the following command:
DIS QL(SYSTEM.AUTH.DATA.QUEUE) IPPROCS
If the IPPROCS
has a value of 0 the OAM is turned off on the queue manager.
Turning off OAM is not a good solution even on Test/Dev queue managers and is not something I would recommend you do. By leaving OAM turned on you are able to set things up properly as you would in a production environment, this will leave no surprises when you are ready to move to production.
Upvotes: 1
Reputation: 72
Do you want to know the value of the environment variable ?
echo $variable_name
Or Check whether it is set ?
set | grep variable_name
Upvotes: 1