Automation tasks

Updated at:

An automation task is triggered by the platform or by a user through an API. The automation system uses the provided template and parameters to run the published script.

Create a task

  1. Select a template.

  2. Enter the parameters. For device templates, select the device for the operation.

  3. Click Execute.

  4. To stop a running task, click Stop.

View a task

Automation task: A task created from a template and initiated by a real-time task or a step in the Change Center.

Device task: A record created when the login_device function is called from the parent task template.

Command-Line Interface (CLI) task: A record of the specific commands sent to a device and the responses received during a device task.

Task log: A log recorded by the logger during task execution.

Return code descriptions

Return code

Description

OK

The task executed successfully.

LANG_*

Standard Python error.

CORE_*

Platform-related error.

UDF_*

Template-related error.

OZ_USER_KILL

User-initiated abnormal termination

CONTROLLER_ERROR

An error occurred when sending the task to the agent.

AGENT_IO_ERROR

The connection between the agent and the device was unexpectedly lost.

AGENT_LOGIN_TIMEDOUT

The agent timed out when logging on to the device.

AGENT_STATE_ERROR

The device is in an abnormal state.

AGENT_EXEC_TIMEDOUT

The agent timed out when executing a command.

BAD_DEVICE_RESPONSE

The device response contained a blacklisted keyword.