Agile Process : Administering My webMethods Server : Running My webMethods Server from the Command Line : Command Syntax for My webMethods Server
Command Syntax for My webMethods Server
There are times when it is useful to start and stop the server from the command line. Starting the server this way, for example, allows you to use debug mode so you can record or display server activity. There are several commands you can use to control operation of the server, as described in the following procedure.
To control the server from the command line
1. At a command line prompt, type the following command to move to the server’s bin directory:
cd Software AG_directory\MWS\bin
2. Type the following command:
For Windows:
mws.bat -option -option ... command
For UNIX:
mws.sh -option -option ... command
where option is any of the following:
Option
Description
-d[ebug]
Starts the server in debug mode. DEBUG statements appear in the console window and a Java debug listener opens on port 10033.
-n nodeName
In a clustered environment, the node name assigned to the server instance. Not required if the server is running standalone, or if it is the master node of a cluster. For more information about clusters, see My webMethods Server Clustering.
-s serverName
The name of the server instance. Not required if you are controlling the default server. You can find the server instances on a machine by looking here:

Software AG_directory
\MWS\server
and command is any command in the following table. Note that when you execute the following commands, you cannot add Java parameters using the command line:
*- start
*- stop
*- restart
*- installservice
In this case, you can add these Java parameters by editing the corresponding custom_wrapper.conf file and adding the parameters as additional properties. For more information, see Configuring JVM Settings for My webMethods Server.
Command
Description
help
Prints command syntax in the console window.
init
Starts My webMethods Server, initializes the My webMethods Server database, and then stops the server.
ping
If the server is stopped, indicates this fact. If the server is running, returns information, including what ports the server is using.
restart
Stops a running server and then starts it again.
run
Starts the server in the same console.
start
Starts the server in a new console window. On UNIX based operating systems the process is started in background execution mode.
stop
Stops a running server.
updatesinfo
Displays information about any fixes that have been installed to My webMethods Server, the My webMethods Server Common Library, or the user interfaces of installed webMethods applications.
The following commands are for Windows only:
installservice
Registers the server as a Windows service.
restartservice
Stops a server that is registered as a Windows service and then starts it again.
startservice
Starts a server that is registered as a Windows service.
stopservice
Stops a server that is registered as a Windows service.
uninstallservice
Unregisters the server as a Windows service.
The following commands are for UNIX only:
installservice
Registers the server as a UNIX service.
The following parameters are required by the command:
*mws.user=<A user that MWS runs with>
*platform=<suse or redhat>
The platform parameter is mandatory only when My webMethods Server is installed on Linux based operating systems, such as SuSE, or RedHat.
uninstallservice
Unregisters the server as a UNIX service.
The following parameter is required by the command:
*platform=<suse or redhat>
The platform parameter is mandatory only when My webMethods Server is installed on Linux based operating systems, such as SuSE, or RedHat.
The following commands configure or delete server instances:
delete
Deletes an existing instance of My webMethods Server. Accepts only the -s option. See Deleting a Server Instance.
getconfig
Downloads a configuration file from the My webMethods Server database. See Modifying Configuration Files Stored in the Database.
putconfig
Uploads a configuration file to the My webMethods Server database
new
Creates a new server instance. See Creating a New Server Instance.
update
Used as part of a product fix, updates classpaths and deploys new or updated components. Accepts only the -s option.
Note:  
Use this command only as directed while installing a fix supplied by Software AG.
Copyright © 2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback