My webMethods Server 10.7 | My webMethods Server Webhelp | Administering My webMethods Server | Startup and Configuration | Running My webMethods Server from the Command Line | Executing My webMethods Server Commands
 
Executing My webMethods Server Commands
You can perform basic administration and configuration operations using the My webMethods Server command line utility. Starting the server from the command line, for example, allows the use of debug mode so you can record or display server activity.
*To execute My webMethods Server commands
1. At a command line prompt, go to the My webMethods Server bin directory:
Software AG_directory\MWS\bin
2. To run a command, type a My webMethods Server command with the required options and parameters and press Enter.
Example
mws new -Dserver.name=testInstance -Dhttp.port=8586 -Ddb.type=sqlserver
-Ddb.url=jdbc:wm:sqlserver://dbserver:1433;databaseName=WMDB
-Ddb.username=sa -Ddb.password=manage
The example command creates a new My webMethods Server instance named testInstance, accessible on port 8586. The new server instance uses an SQL Server database with the name WMDB, installed on the dbserver machine, port 1433. The username and password to connect to the database are sa and manage.