# alinux-automation

Part of **ALINUX**

# Alibaba Cloud Linux Automation and Task Management Console Guide

## Operations Overview

| Operation | Console Entry | Prerequisites | Description |
|----------|---------------|---------------|-------------|
| Define and Execute Complex Task | Console > OS Copilot > Task Management > Define Complex Tasks | OS Copilot service enabled, File with task definition created and accessible | Upload a JSON/YAML file to define and immediately or schedule a multi-step system task |
| Define Complex Tasks from Files | Console > OS Copilot > Tasks > Define Task from File | OS Copilot enabled, File upload permissions, Prepared task definition file | Upload a local text/JSON file to create a complex operational task via file input |
| Use OS Copilot Assistant | Home > Products > Operating System > OS Copilot > Introduction Video Zone | None | Access video tutorials and learning resources for OS Copilot features |

## Step-by-Step Instructions

### Define and Execute Complex Task

**Navigation**: Console > OS Copilot > Task Management > Define Complex Tasks

**Prerequisites**:
- OS Copilot service enabled
- File with task definition created and accessible

1. Navigate to the Task Management section  
   - Element: **Task Management** (menu) — left navigation panel

2. Click on 'Define Complex Tasks' to open the file upload interface  
   - Element: **Define Complex Tasks** (button) — main content area  
   - Notes: The interface supports uploading JSON or YAML files containing structured task definitions.

3. Upload the task definition file using the file picker  
   - Element: **Choose File** (button) — top-right corner of the upload form  
   - Notes: Supported formats: JSON, YAML. The file must follow the required schema.

4. Review the task details in the preview pane  
   - Element: **Preview** (tab) — top of the form  
   - Notes: Shows a live preview of the parsed task structure from the uploaded file.

5. Click 'Execute' to start the task  
   - Element: **Execute** (button) — bottom-right corner  
   - Notes: Task execution begins immediately after confirmation. A success message appears upon submission.

| Parameter | Type | Required | Options/Values | Description |
|-----------|------|----------|----------------|-------------|
| Task Name | text_input | Yes | — | A unique name for the task to identify it in logs and history. |
| File Format | dropdown | Yes | JSON, YAML | Specifies the format of the uploaded task definition file. |
| Execution Mode | radio | Yes | Immediate, Scheduled | Determines whether the task runs now or at a later time. |
| Schedule Time | datetime | No | — | If scheduled mode is selected, set the date and time for execution. |

### Define Complex Tasks from Files

**Navigation**: Console > OS Copilot > Tasks > Define Task from File

**Prerequisites**:
- OS Copilot enabled
- File upload permissions
- Prepared task definition file

1. Click the '' button 
 - Element: **** (button) — top of the main content area 
   - Notes: This button is only visible on the task management page.

2. Select and upload a local file  
 - Element: **** (file_input) — within the pop-up dialog 
   - Notes: Supports .txt and .json files up to 10MB in size.

3. View the file content preview and confirm  
 - Element: **** (tab) — in the detail panel that appears after upload 
   - Notes: The system automatically parses the task structure. Validation errors will be displayed if the format is invalid.

### Use OS Copilot Assistant

**Navigation**: Home > Products > Operating System > OS Copilot > Introduction Video Zone

1. Enter the OS Copilot introduction video zone  
 - Element: **** (link) — main content area 
   - Notes: This page contains multiple video tutorials. Click any video to play it directly in the browser.

## FAQ

Q: What file formats are supported for defining complex tasks?  
A: Both JSON and YAML formats are supported for task definition files. Ensure your file adheres to the required schema for successful parsing.

Q: Can I modify a task after uploading the definition file but before execution?  
A: No. Once the file is uploaded and validated, you can only review the parsed structure in the Preview tab. To make changes, you must edit the source file and re-upload it.

Q: Where can I find video tutorials for OS Copilot?  
A: Video tutorials are available in the "Introduction Video Zone" under OS Copilot in the console navigation path: Home > Products > Operating System > OS Copilot > .

Q: What happens if my task definition file exceeds the size limit?  
A: For the "Define Complex Tasks from Files" operation, files larger than 10MB will be rejected by the file picker. Reduce the file size or split the task into smaller components.

Q: Do I need special permissions to upload task definition files?  
A: Yes. You must have file upload permissions for the OS Copilot service. Contact your account administrator if the upload button is disabled or missing.

## Pricing & Billing

### Billing Model
Per-request billing based on task execution.

### Price Reference

| Tier | Input Price | Output Price |
|------|-------------|--------------|
| standard | ¥0.001 per request | ¥0.002 per request |

### Free Tier
100 free executions per month.

### Billing Notes
- For "Define and Execute Complex Task": Tasks running longer than 5 minutes are billed per minute, with a minimum charge of 1 minute.
- For "Define Complex Tasks from Files": Tasks exceeding 30 seconds in execution time are billed per minute, rounded up (e.g., 31 seconds = 1 minute).
- The "Use OS Copilot Assistant" (video zone) is currently free with no usage limits.