ALTER LISTENER on Multiplatforms

Use MQSC command ALTER LISTENER to alter the parameters of an existing IBM MQ listener definition. If the listener is already running, any changes you make to its definition are effective only after the next time that the listener is started.


Use MQSC commands

For information on how we use MQSC commands, see Performing local administration tasks using MQSC commands.

Parameters not specified in the ALTER LISTENER command result in the existing values for those parameters being left unchanged.

Synonym: ALT LSTR

ALTER LISTENER

ALTER LISTENER ( listener-name ) TRPTYPE(LU62)1
  • TRPTYPE(NETBIOS)1
  • TRPTYPE(SPX)1
  • TRPTYPE(TCP)
  • ADAPTER(integer)
  • 2
  • BACKLOG(integer)
  • 34
  • COMMANDS(integer)
  • 2
  • CONTROL(MANUALQMGRSTARTONLY
  • )
  • DESCR(string)
  • IPADDR(string)
  • 3
  • LOCLNAME(string)
  • 2
  • NTBNAMES(integer)2
  • PORT(integer)
  • 3
  • SESSIONS(integer)
  • 2
  • SOCKET(integer)
  • 4
  • TPNAME(string)
  • 5
  • Notes:

    • 1 Valid only on Windows.
    • 2 Valid only on Windows when TRPTYPE is NETBIOS.
    • 3 Valid when TRPTYPE is TCP.
    • 4 Valid on Windows when TRPTYPE is SPX.
    • 5 Valid only on Windows when TRPTYPE is LU62.


    Parameter descriptions for ALTER LISTENER

      listener-name)
      Name of the IBM MQ listener definition (see Rules for naming IBM MQ objects ). This is required.

      The name must not be the same as any other listener definition currently defined on this queue manager (unless REPLACE is specified).

      ADAPTER(integer)
      The adapter number on which NetBIOS listens. This parameter is valid only on Windows when TRPTYPE is NETBIOS.

      BACKLOG(integer)
      The number of concurrent connection requests that the listener supports.

      COMMANDS(integer)
      The number of commands that the listener can use. This parameter is valid only on Windows when TRPTYPE is NETBIOS.

      CONTROL(string)
      Specifies how the listener is to be started and stopped.:

        MANUAL
        The listener is not to be started automatically or stopped automatically. It is to be controlled by use of the START LISTENER and STOP LISTENER commands.
        QMGR
        The listener being defined is to be started and stopped at the same time as the queue manager is started and stopped.
        STARTONLY
        The listener is to be started at the same time as the queue manager is started, but is not requested to stop when the queue manager is stopped.

      DESCR(string)
      Plain-text comment. It provides descriptive information about the listener when an operator issues the DISPLAY LISTENER command (see DISPLAY LISTENER on Multiplatforms ).

      It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes).

      Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager.

      IPADDR(string)
      IP address for the listener specified in IPv4 dotted decimal, IPv6 hexadecimal notation, or alphanumeric host name form. If we do not specify a value for this parameter, the listener listens on all configured IPv4 and IPv6 stacks.

      LIKE(listener-name)
      The name of a listener, with parameters that are used to model this definition.

      This parameter applies only to the DEFINE LISTENER command.

      If this field is not filled in, and we do not complete the parameter fields related to the command, the values are taken from the default definition for listeners on this queue manager. This is equivalent to specifying:
      LIKE(SYSTEM.DEFAULT.LISTENER)
      

      A default listener is provided but it can be altered by the installation of the default values required. See Rules for naming IBM MQ objects.

      LOCLNAME(string)
      The NetBIOS local name that the listener uses. This parameter is valid only on Windows when TRPTYPE is NETBIOS.

      NTBNAMES(integer)
      The number of names that the listener can use. This parameter is valid only on Windows when TRPTYPE is NETBIOS.

      PORT(integer)
      The port number for TCP/IP. This is valid only when TRPTYPE is TCP. It must not exceed 65535.

      SESSIONS(integer)
      The number of sessions that the listener can use. This parameter is valid only on Windows when TRPTYPE is NETBIOS.

      SOCKET(integer)
      The SPX socket on which to listen. This is valid only if TRPTYPE is SPX.

      TPNAME(string)
      The LU 6.2 transaction program name (maximum length 64 characters). This parameter is valid only on Windows when TRPTYPE is LU62.

      TRPTYPE( string )
      The transmission protocol to be used:

        LU62
        SNA LU 6.2. This is valid only on Windows.
        NETBIOS
        NetBIOS. This is valid only on Windows.
        SPX
        Sequenced packet exchange. This is valid only on Windows.
        TCP
        TCP/IP.