maintenance_tools command options

You can use any of the following options with the maintenance_tools command. You must always supply the -password option.

-args arg1 arg2 ...
Arguments to use while starting a process. Use only with -startprocess.
If you have multiple arguments, separate each one with a space. The command does not validate the provided arguments.

To use arguments with custom batch processes, see Implementing IProcessesPlugin, especially the following method:

  • ProcessesPlugin.createBatchProcess(type, args)
-password password
Password (password) to use to connect to the server. PolicyCenter requires the password.
-processstatus process
Returns the status of a batch process. For the process value, specify a valid process name or a process ID.
For work queues, this option returns the status of the writer process. It does not check whether additional work items remain in the work queue. Thus, it is possible for the process status to report completion after the writer finishes adding items to the work queue while the work queue contains unprocessed work items.
-server url
Specifies the PolicyCenter host server URL. Include the port number and web application name, for example:
  • http://serverName:8180/pc
-startprocess process -args...
Starts a new batch process. For the process value, specify a valid process code. See also -args.
For a list of batch process codes, including work queue writer processes, see Work queues and batch processes, a reference.
-terminateprocess process
Terminates a batch process. For the process value, specify a valid process name or a process ID.
It is not possible to terminate single phase processes using this option. Single phase processes run in a single transaction. Thus, there is no convenient place to terminate the process. See Work queues and batch processes, a reference to determine if it is possible to terminate a process.
-user user
User (user) to use to run this process.
-whenstats
Reports the last time PolicyCenter calculated statistics on the server.