dspmqweb (display mqweb server configuration)
Display information about the status of the mqweb server, or about the configuration of the mqweb server. The mqweb server is used to support the IBM MQ Console and administrative REST API.
Use the command on z/OS
Before issuing either the setmqweb or dspmqweb commands on z/OSĀ®, you must set the WLP_USER_DIR environment variable, so that the variable points to your mqweb server configuration.
To do this, issue the following command:export WLP_USER_DIR=WLP_user_directorywhere WLP_user_directory is the name of the directory passed to crtmqweb.sh. For example:
export WLP_USER_DIR=/var/mqm/web/installation1
See Create the Liberty server definition for more information.
Purpose - dspmqweb status
Use the dspmqweb command to view information about the status of the mqweb server.
The mqweb server must be running to use the IBM MQ Console or the administrative REST API. If the server is running then the available root context URLs and associated ports that are used by the IBM MQ Console and administrative REST API are displayed by the dspmqweb command. Alternatively, from Version 9.0.4, use the dspmqweb status command.
Purpose - dspmqweb properties
Use the dspmqweb properties command to view details of the configuration of the mqweb server. It is not necessary for the mqweb server to be running.
The following list outlines the available configuration properties on all platforms, including the IBM MQ Appliance:
- The following properties can be returned by the dspmqweb properties command
on all platforms, including the IBM MQ Appliance:
- ltpaExpiration
- This configuration property is used to specify the time, in seconds, before the LTPA token expires.
- maxTraceFiles
- This configuration property is used to specify the maximum number of trace files that are generated by the mqweb server.
- maxTraceFileSize
- This configuration property is used to specify the maximum size, in MB, that each log file can reach.
- mqRestCorsAllowedOrigins
- This configuration property is used to specify the origins that are allowed to access the REST API. For more information about CORS, see Configure CORS for the REST API.
- mqRestCorsMaxAgeInSeconds
- This configuration property is used to specify the time, in seconds, that a web browser can cache the results of any CORS pre-flight checks.
mqRestCsrfExpirationInMinutes
- This configuration property no longer exists at Version 9.0.5.
- mqRestCsrfValidation
- This configuration property is used to specify whether CSRF validation checks are performed. A value of false removes the CSRF token validation checks.
- mqRestGatewayEnabled
- This configuration property is used to specify whether the administrative REST API gateway is enabled.
- mqRestGatewayQmgr
- This configuration property is used to specify the name of the queue manager to use as the gateway queue manager. This queue manager must be in the same installation as the mqweb server. A blank value indicates that no queue manager is configured as the gateway queue manager.
- mqRestMessagingEnabled
- This configuration property is used to specify whether the messaging REST API is enabled.
- mqRestRequestTimeout
- This configuration property is used to specify the time, in seconds, before a REST request times out.
- traceSpec
- This configuration property is used to specify the level of trace that is generated by the mqweb server. For a list of possible values, see Configure logging for the IBM MQ Console and REST API.
The following properties are the additional properties that can be returned by the dspmqweb properties command on z/OS, UNIX, Linux , and Windows:
- httpHost
- This configuration property is used to specify the HTTP host name as an IP address, domain name server (DNS) host name with domain name suffix, or the DNS host name of the server where IBM MQ is installed.
- httpPort
- This configuration property is used to specify the HTTP port number that is used for HTTP connections.
- httpsPort
- This configuration property is used to specify the HTTPS port number that is used for HTTPS connections.
- mqConsoleAutostart
- This configuration property is used to specify whether the IBM MQ Console automatically starts when the mqweb server starts.
- mqRestAutostart
- This configuration property is used to specify whether the REST API automatically starts when the mqweb server starts.
Syntax


Optional parameters
- status
- Displays information about the status of the mqweb server. That is, whether the mqweb server is running. If the mqweb server is running, information about the available root context URLs and associated ports that are used by the IBM MQ Console and administrative REST API are displayed.
- properties
- Displays information about the configurable properties of the mqweb server. That is, which properties are configurable by the user and those that have been modified. It is not necessary for the mqweb server to be running.
- -l
- Enable verbose logging. Diagnostic information is written to a mqweb server log-file.
Return codes
Return code | Description |
---|---|
0 | Command successful |
>0 | Command not successful. |
Related commands
Command | Description |
---|---|
strmqweb | Start the mqweb server. |
endmqweb | Stop the mqweb server. |
setmqweb | Configure the mqweb server. |