When user starts Local Agent (nsqmq process), the following error is received:Unable to open Queue Manager: RC(2012)

book

Article ID: 48944

calendar_today

Updated On:

Products

Nastel AutoPilot for WebSphere MQ

Issue/Introduction

Description:

RC(2012) on UNIX - Local Agent unable to open Queue Manager

PROBLEM:

When user starts Local Agent (nsqmq process), the following error is received:
Unable to open Queue Manager: RC(2012)

Solution:

ldd nsqmq

If you get ldd /opt/nastel/apwmq/bin/nsqmq
libnsqapi.so => /opt/nastel/apwmq/lib/libnsqapi.so
libnsqclnx.so => /opt/nastel/apwmq/lib /libnsqclnx.so
libnsqsign.so => /opt/nastel/apwmq/lib /libnsqsign.so
libnsqauth.so =>/opt/nastel/apwmq/lib libnsqauth.so
libnsqmqtx.so => /opt/nastel/apwmq/lib /libnsqmqtx.so
libmqm.so => (file not found) <== but not found here; this indicates /usr/lib/*mqm* links are missing
libmqmcs.so => (file not found)
libmqmzse.so => (file not found) Please first verify that IBM links in /usr/lib are missing:
ls -l /usr/lib/*mqm*

If the links missing, then there 2 ways to satisfy the unresolved libraries:

  1. Create the missing links to the IBM libraries, as user root do the following:
    cd /usr/lib
    ln -s /opt/mqm/lib/libmqm.so libmqm.so
    ln -s /opt/mqm/lib/libmqmcs.so libmqmcs.so
    ln -s /opt/mqm/lib/libmqmzse.so libmqmzse.so
    <... etc for other missing links>

  2. Use LD_LIBRARY_PATH to define lib directories to search for IBM's lib files:
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mqm/lib
    export LD_LIBRARY_PATH

Environment

Release:
Component: AUTPLT