The listservices command exports a list of services or a list of service templates to a CSV file.
Syntax
listservices {/output {services | servicetemplates} /file output-file [/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 |
|---|---|
| /output | Either services (export services) or servicetemplates (export service templates). |
| /file | The output file path. |
| /encoding | The encoding of the output file, either UTF-8 or Shift_JIS. |
| /user | The user ID. The Submit role is required to output services list. The Modify role is required to output service templates list. |
| /passwordfile | Specifies a password file (with an absolute or relative path) that includes the encrypted user credentials for the specified user. |
| /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. |