MQ

 View Only

On Linux 8.x machines seen the errors libedit version as "unknown" and runmqsc gives “AMQ8521I: Command completion and history unavailable.

By Prema Laxmanachar posted Wed August 10, 2022 06:51 AM

  

Resolution to libedit version details  being displayed  as “ Version:     <unknown:536895861> on Linux 8.x Platforms When user issues dspmqver -a on MQ 9.2.0.3 and above versions”

OR

Resolution to the message “AMQ8521I: Command completion and history unavailable.” When user issues runmqsc on IBM MQ 9.2.0.3 and above on Linux 8.x Platforms

 

Summary:

When user issues runmqsc command, user may see “AMQ8521I: Command completion and history unavailable.” Message.

Also user might notice the libedit version as :     <unknown:536895861> when user issue the command dspmqver -a command on MQ 9.2.0.3 and above MQ versions.

 

Solution to the problem: This problem occurs due to nurses libraries do not present in the Linux 8.x  new machines. So, user needs to install all nurses libraries.

 

Follow the steps to resolve the above problem:

Steps to recreate the problem:

  1. User should have Linux 8.x machine
  2. Download and Install MQ 9.2.0.3 or above MQ version
  3. Route to MQ install directory/bin (ex: /opt/mqm/bin)
  4. Issue the command ./dspmqver -a command and notice the libedit version displayed

[root@linuxlibedit1 bin]# ./dspmqver -a

Name:        IBM MQ

Version:     9.2.0.3

Level:       p920-003-210714

BuildType:   IKAP - (Production)

Platform:    IBM MQ for Linux (x86-64 platform)

Mode:        64-bit

O/S:         Linux 4.18.0-305.25.1.el8_4.x86_64

O/S Details: Red Hat Enterprise Linux 8.4 (Ootpa)

InstName:    Installation1

InstDesc:

Primary:     Yes

InstPath:    /opt/mqm

DataPath:    /var/mqm

MaxCmdLevel: 920

LicenseType: Production

 

Name:        IBM MQ Java Runtime Environment

Version:     java full version JRE 1.8.0 IBM Linux build 8.0.6.31 - pxa6480sr6fp31-20210510_01(SR6 FP31)

Location:    file:/opt/mqm/java/jre64/jre

 

Name:        IBM MQ classes for Java

Version:     9.2.0.3

Level:       p920-003-210714

Build Type:  Production

Location:    file:/opt/mqm/java/lib/com.ibm.mq.jar

 

Name:        IBM MQ classes for Java Message Service

Version:     9.2.0.3

Level:       p920-003-210714

Build Type:  Production [Built on IBM Corporation  8.0.5.17 - pxa6480sr5fp17-20180627_01(SR5 FP17) Linux]

Location:    file:/opt/mqm/java/lib/com.ibm.mqjms.jar

 

Name:        Common Services for Java Platform, Standard Edition

Version:     9.2.0.3

Level:       p920-003-210714

Build Type:  Production

Location:    file:/opt/mqm/java/lib/com.ibm.mq.jmqi.jar

 

Name:        Java Message Service Client

Version:     9.2.0.3

Level:       p920-003-210714

Build Type:  Production

Location:    file:/opt/mqm/java/lib/com.ibm.mqjms.jar

 

Name:        IBM MQ JMS Provider

Version:     9.2.0.3

Level:       p920-003-210714 mqjbnd=p920-003-210714

Build Type:  Production

Location:    file:/opt/mqm/java/lib/com.ibm.mqjms.jar

 

 

Name:        IBM MQ Advanced Message Security

Version:     9.2.0.3

Level:       p920-003-210714

BuildType:   IKAP - (Production)

 

Name:        IBM MQ AMQP Support

Version:     9.2.0.3

Level:       p920-003-210714

Build Type:  Production

Location:    file:/opt/mqm/amqp/lib/AMQPListener.jar

 

Name:        IBM MQ Telemetry

Version:     9.2.0.3

Level:       p920-003-210714

Build Type:  Production

Location:    file:/opt/mqm/mqxr/lib/MQXRListener.jar

 

AMQ8250I: The 32-bit GSKit component is not installed.

 

Name:        IBM Global Security Kit for IBM MQ

Version:     8.0.55.24

Build Type:  Production

Mode:        64-bit

 

Name:        WebSphere Application Server

Version:     21.0.0.6

Location:    file:/opt/mqm/web

 

AMQ8250I: The 64-bit IBM MQ Replicated Data Queue Managers component is not installed.

 

Name:        IBM MQ Managed File Transfer

Version:     9.2.0.3

Level:       p920-003-210714

Build Type:  Production

 

Name:        libCurl

Version:     libcurl/7.77.0 GSKit 8.0.55.24

Location:    file:/opt/mqm/lib64/libcurl.so

 

Name:        libedit

Version:     <unknown:536895861>

Location:    file:/opt/mqm/lib64/libedit.so

 

Name:        Bridge for Salesforce (jetty)

Version:     9.4.43.v20210629

Location:    /opt/mqm/mqsf/prereqs/jetty*.jar

 

Name:        Bridge for Salesforce (cometd)

Version:     3.1.14

Location:    /opt/mqm/mqsf/prereqs/cometd*.jar

 

Name:        Bridge for Salesforce (slf4j)

Version:     1.7.31

Location:    /opt/mqm/mqsf/prereqs/slf4j*.jar

 

Name:        Bridge for Blockchain (jetty)

Version:     9.4.43.v20210629

Location:    /opt/mqm/mqbc/prereqs/jetty*.jar

 

Name:        Bridge for Blockchain (sdk)

Version:     2.2.2

Location:    /opt/mqm/mqbc/prereqs/fabric-gateway-java.jar

 

  1. Method to recreate the problem “AMQ8521I: Command completion and history unavailable.

 

  1. Route to MQ install directory/bin – create the QM by issuing : ./crtmqm QM  ( create as mqm user)

 

  1. Start the QM by issuing :  ./strmqm QM

 

  1. Issue the command ./runmqsc QM - observe the message “AMQ8521I: Command completion and history unavailable.

 

[root@linuxlibedit1 bin]# sudo su mqm

bash-4.4$ crtmqm QM

IBM MQ queue manager created.

Directory '/var/mqm/qmgrs/QM' created.

The queue manager is associated with installation 'Installation1'.

Creating or replacing default objects for queue manager 'QM'.

Default objects statistics : 83 created. 0 replaced. 0 failed.

Completing setup.

Setup completed.

 

bash-4.4$ strmqm QM

The system resource RLIMIT_NOFILE is set at an unusually low level for IBM MQ.

IBM MQ queue manager 'QM' starting.

The queue manager is associated with installation 'Installation1'.

5 log records accessed on queue manager 'QM' during the log replay phase.

Log replay for queue manager 'QM' complete.

Transaction manager state recovered for queue manager 'QM'.

IBM MQ queue manager 'QM' started using V9.2.0.3.

 

bash-4.4$ runmqsc QM

5724-H72 (C) Copyright IBM Corp. 1994, 2021.

Starting MQSC for queue manager QM.

AMQ8521I: Command completion and history unavailable.

 

 

 

Solution to the problem AMQ8521I: Command completion and history unavailable and

libedit Version:     <unknown:536895861>.

 

In this case, grep for ncurses libraries installed in the Linux 8.x platform , by default only 3 ncurses liberies are installed on the new Linux 8.x machine.

[root@linuxlibedit1 bin]# rpm -qa | grep -i ncurses*

ncurses-6.1-7.20180224.el8.x86_64

ncurses-base-6.1-7.20180224.el8.noarch

ncurses-libs-6.1-7.20180224.el8.x86_64

 

The following ncurses libraries should be installed on the Linux 8.x machine.

[root@LinRHEL82test1 ~]# rpm -qa | grep -i ncurses*

ncurses-base-6.1-7.20180224.el8.noarch

ncurses-c++-libs-6.1-7.20180224.el8.x86_64

ncurses-6.1-7.20180224.el8.x86_64

ncurses-libs-6.1-7.20180224.el8.x86_64

ncurses-compat-libs-6.1-7.20180224.el8.x86_64

 

Now install the missing libraries as root user.

 

Issue the command : yum install ncurses*  to install the missing libraries:

 

After installing missing nurses libraries , issue dspmqver -a and runmqsc Qmname to make sure that issue is resolved by issuing the command dspmqver -a / runmqsc Qmname.

 

Output from dspmqver -a command:

[root@linuxlibedit1 bin]# dspmqver -a

Name:        IBM MQ

Version:     9.2.0.3

Level:       p920-003-210714

BuildType:   IKAP - (Production)

Platform:    IBM MQ for Linux (x86-64 platform)

Mode:        64-bit

O/S:         Linux 4.18.0-305.25.1.el8_4.x86_64

O/S Details: Red Hat Enterprise Linux 8.4 (Ootpa)

InstName:    Installation1

InstDesc:

Primary:     Yes

InstPath:    /opt/mqm

DataPath:    /var/mqm

MaxCmdLevel: 920

LicenseType: Production

 

Name:        IBM MQ Java Runtime Environment

Version:     java full version JRE 1.8.0 IBM Linux build 8.0.6.31 - pxa6480sr6fp31-20210510_01(SR6 FP31)

Location:    file:/opt/mqm/java/jre64/jre

 

Name:        IBM MQ classes for Java

Version:     9.2.0.3

Level:       p920-003-210714

Build Type:  Production

Location:    file:/opt/mqm/java/lib/com.ibm.mq.jar

 

Name:        IBM MQ classes for Java Message Service

Version:     9.2.0.3

Level:       p920-003-210714

Build Type:  Production [Built on IBM Corporation  8.0.5.17 - pxa6480sr5fp17-20180627_01(SR5 FP17) Linux]

Location:    file:/opt/mqm/java/lib/com.ibm.mqjms.jar

 

Name:        Common Services for Java Platform, Standard Edition

Version:     9.2.0.3

Level:       p920-003-210714

Build Type:  Production

Location:    file:/opt/mqm/java/lib/com.ibm.mq.jmqi.jar

 

Name:        Java Message Service Client

Version:     9.2.0.3

Level:       p920-003-210714

Build Type:  Production

Location:    file:/opt/mqm/java/lib/com.ibm.mqjms.jar

 

Name:        IBM MQ JMS Provider

Version:     9.2.0.3

Level:       p920-003-210714 mqjbnd=p920-003-210714

Build Type:  Production

Location:    file:/opt/mqm/java/lib/com.ibm.mqjms.jar

 

 

Name:        IBM MQ Advanced Message Security

Version:     9.2.0.3

Level:       p920-003-210714

BuildType:   IKAP - (Production)

 

Name:        IBM MQ AMQP Support

Version:     9.2.0.3

Level:       p920-003-210714

Build Type:  Production

Location:    file:/opt/mqm/amqp/lib/AMQPListener.jar

 

Name:        IBM MQ Telemetry

Version:     9.2.0.3

Level:       p920-003-210714

Build Type:  Production

Location:    file:/opt/mqm/mqxr/lib/MQXRListener.jar

 

AMQ8250I: The 32-bit GSKit component is not installed.

 

Name:        IBM Global Security Kit for IBM MQ

Version:     8.0.55.24

Build Type:  Production

Mode:        64-bit

 

Name:        WebSphere Application Server

Version:     21.0.0.6

Location:    file:/opt/mqm/web

 

AMQ8250I: The 64-bit IBM MQ Replicated Data Queue Managers component is not installed.

 

Name:        IBM MQ Managed File Transfer

Version:     9.2.0.3

Level:       p920-003-210714

Build Type:  Production

 

Name:        libCurl

Version:     libcurl/7.77.0 GSKit 8.0.55.24

Location:    file:/opt/mqm/lib64/libcurl.so

 

Name:        libedit

Version:     libedit 0:66:0 (20210522-3.1)

Location:    file:/opt/mqm/lib64/libedit.so

 

Name:        Bridge for Salesforce (jetty)

Version:     9.4.43.v20210629

Location:    /opt/mqm/mqsf/prereqs/jetty*.jar

 

Name:        Bridge for Salesforce (cometd)

Version:     3.1.14

Location:    /opt/mqm/mqsf/prereqs/cometd*.jar

 

Name:        Bridge for Salesforce (slf4j)

Version:     1.7.31

Location:    /opt/mqm/mqsf/prereqs/slf4j*.jar

 

Name:        Bridge for Blockchain (jetty)

Version:     9.4.43.v20210629

Location:    /opt/mqm/mqbc/prereqs/jetty*.jar

 

Name:        Bridge for Blockchain (sdk)

Version:     2.2.2

Location:    /opt/mqm/mqbc/prereqs/fabric-gateway-java.jar

 

 

Output from runmqsc command ( issue this command as mqm user)

 

[root@linuxlibedit1 bin]# sudo su mqm

bash-4.4$ runmqsc QM

5724-H72 (C) Copyright IBM Corp. 1994, 2021.

Starting MQSC for queue manager QM.

 

 

Now both the errors not seen , so issue is resolved.

 

 

 

0 comments
5 views

Permalink