|
Using Softabar Console for WebSphere MQ is very similar to using normal MQSC. But instead of running MQSC command using runmqsc-command or writing commands in text file and then running with runmqsc, Softabar Console for WebSphere MQ allows users to write commands interactively and automatically save commands to script files. Starting Softabar Console for WebSphere MQ Open a command prompt and go to bin-directory where MQConsole is installed. Run program using command mqconsole.bat
or by specifying queue manager mqconsole.bat -qm <qmgr name>
Use -h option to view usage and other command line parameters. -qm (--queue-manager) qmgrName Queue manager to be used. -f (--script-file) fileName Script file for saving MQSC commands. -cf (--console-script) fileName Load and execute console script file. -l (--load-script) fileName Load and execute MQSC script. -le (--load-script-and-exit) fileName Load and execute MQSC script and then exit program. -lici (--license-install) licenseFileName Install license. -licg (--license-gui) Install license with graphical user interface. -lic (--license) View license information -h (--help) This help. -v (--version) Version info.
Console script file in option -cf is a file that may include MQConsole commands in addition to MQSC commands. Console commands Softabar Console for WebSphere MQ has a few commands that help working with MQSC scripts. All MQConsole commands start with ':' (similar to VI-editor). View commands with command ':help' set - Set/view runtime parameters. Usage: SET [<key> <value> [<value> ...]. exit - Exit program. help - This help. quit - Exit program. var - Set variables. Usage: VAR <variable name> <variable value>. loadparams - Load saved runtime parameters. load - Execute script file. Usage: LOAD <script file>. saveparams - Save runtime parameters.
| Command | Description | | set | Set and view runtime parameters. Default runtime parameters are script.dir=C:\home\temp\mqconsole-1.0.0\mqconsole-1.0.0\scripts add.replace.to.definitions=true script.file.prefix=mqscript command.preprocessor=com.softabar.mq.command.impl.VariableProcessor separate.channel.definitions.file=true command.postprocessor=com.softabar.mq.command.impl.DefaultPostProcessor AMQ8118.continue=false queue.manager=QM1 script.file.suffix=.conf mqsc.commands.to.exclude.from.save= exit.commands= AMQ8118.message=Queue manager does not exist. save.console.commands=false AMQ8146.continue=false force.uppercase.in.script=true AMQ8146.message=Queue manager not available. save.commands=true include.duplicate.definitions=false startup.commands= custom.message.for.mq.codes=AMQ8118 AMQ8146 save.comments=true comment.prefix=* return.codes.to.exclude.from.save=AMQ8405 AMQ8150
See mqconsole.properties for description. | | var | Set variable for scripts. Syntax :var QNAME WEBORDER_Q
After defining variable, all MQSC command may include variable. Example: DEFINE QLOCAL(${QNAME})
defines new local queue with name WEBORDER_Q. By setting parameter save.console.commands to true enables saving console commands to script file. | | saveparams | Saves all parameters including variables to runtime.properties file in temp-directory. | | loadparams | Loads parameters from runtime.properties file. | | load | Executes script file. |
|