The listtasks command exports a list of services or a list of tasks to a CSV file.
Syntax
listtasks {[/startrange {yyyy-mm-dd | ,yyyy-mm-dd | yyyy-mm-dd, yyyy-mm-dd}] /output {tasks | histories | taskdetails} {/file outputfile | /taskdetaildir directoryname} [/encoding encoding] [/user username | /user username /passwordfile passwordfile] [/authmode local | external] | /help}
Note: You are prompted to enter the password in interactive mode if you do not specify the passwordfile option.
Options
| Option | Description |
|---|---|
| /startrange | The date range of the task start date. Use this to limit the contents of the list to tasks run within a specific period of time. This option cannot be specified if taskdetails is specified for the output option. |
| /output | Either of the following output data types: tasks (export tasks), histories (export histories), taskdetails (export task with properties) |
| /file | The output file with an absolute or relative path. |
| /taskdetaildir | The output file with an absolute or relative path. /taskdetaildir is required instead of /file when /output taskdetails is specified. |
| /encoding | The encoding of the output file, either UTF-8 or Shift_JIS. |
| /user | The user ID. The Admin role is required to output taskdetails. |
| /passwordfile | The absolute or relative path of the password file. |
| /authmode | Specifies the authentication type, either local or external. Specify local to authenticate locally with Automator. Specify external to authenticate with Common Services. If this option is not specified, Ops Center Automator operates in the authentication mode specified by the command.auth.mode of command_user.properties. |