Sun Solaris

ID #1018

The Best MQSeries FAQ

#  How to determine what MQSeries packages are installed on Solaris server?

Enter command  pkginfo | grep mq  that will display the list of MQSeries packages installed on Solaris server.  Second column is a package name that can be used with the  pkginfo -l package  command to obtain full information about installed package.


E.g.:  $ pkginfo | grep mq
       application mqm            MQSeries for Sun Solaris 2
       application mqm-upd02      MQSeries for Sun Solaris 2 - U474789
             

If  pkginfo | grep mq  command doesn't display anything, that means that no MQSeries packages are installed on Solaris server.

# How to determine what MQSeries version is installed on Solaris server?

Enter command  pkginfo –l mqm  that will display the detailed information about MQSeries mqm package installed on Solaris server.  Among other things the version of MQSeries installed will be displayed.


E.g.:  $ pkginfo -l mqm
          PKGINST:  mqm
             NAME:  MQSeries for Sun Solaris 2
         CATEGORY:  application
             ARCH:  sparc
          VERSION:  5.2.0
           .  .  .  .  .  .
             

If  pkginfo –l mqm  command doesn't display anything, this means that MQSeries is not installed on Solaris server.

# How to determine default Queue Manager name?

Enter command  awk /DefaultQueueManager:/,/Name=/ /var/mqm/mqs.ini  that will display the Name stanza of the default Queue Manager.


E.g.:  # awk /DefaultQueueManager:/,/Name=/ /var/mqm/mqs.ini
       DefaultQueueManager:
          Name=MYQMGR
             

If awk /DefaultQueueManager:/,/Name=/ /var/mqm/mqs.ini  command doesn't display anything, this means that default Queue Manager is not defined (i.e., Queue Manager name should be specified explicitly in all MQSeries commands).  This command is long enough to be a good candidate for a .profile-defined alias.

# How to determine Queue Manager logging type?

Enter command  grep LogType /var/mqm/qmgrs/queue_manager/qm.ini  that will display the logging type stanza for the specified Queue Manager.  (Circular logging supports only restrat recovery, while linear logging supports both restart and media recovery; logging type can't be changed after a Queue Manager has been created.)


E.g.:  # grep LogType /var/mqm/qmgrs/MYQMGR/qm.ini
            LogType=LINEAR

Tags: MQSeries, Sun Solaris

Related entries:

Last update: 2009-06-19 17:12
AuthorLuke Francis
Revision: 1.0

Digg it! Print this record Send FAQ to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry