Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Scheduled O&M

Updated on 2024-06-28 GMT+08:00

The Scheduled O&M page displays the execution records of all scheduled tasks. You can create and manage scheduled tasks on this page. After scheduled tasks are created, operations (such as script execution and file/scenario/job management) are performed at a specified time or periodically. You can create up to 100 scheduled tasks.

Creating a Task

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Automation (Retiring). The Automation page is displayed.
  3. In the navigation pane, choose Scheduled O&M and click Create Scheduled Task in the upper right corner to create a task.
  4. Set parameters by referring to Table 1.

    Figure 1 Basic information for creating a scheduled task
    Table 1 Parameters for creating a task

    Parameter

    Description

    Task Name

    User-defined task name.

    Enter up to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. By default, Auto is selected, which means that the system automatically generates a task name.

  5. Set parameters by referring to Table 2.

    Figure 2 Creating a scheduled task
    Table 2 Parameters for creating a scheduled task

    Parameter

    Description

    Time Zone

    Time zone of the scheduled task. You can select a desired time zone from the drop-down list.

    Execution Policy

    Execution policy of a scheduled task. Options:

    • One-time: The task is performed once at a specified time.
    • Periodic: The task is executed regularly based on the preset period.
    • Periodic (Cron): The task is performed based on the configured cron expression.

    Execution Time

    Time when a scheduled task is executed.

    Execution Interval

    This parameter is mandatory only when Execution Policy is set to Periodic.

    • Daily: every day in the period.
    • Weekly: Select one or more days from a week. By default, all days in a week are selected.

    Execution Rule

    This parameter is mandatory only when Execution Policy is set to Periodic (Cron).

    The task is performed based on the configured cron expression. Currently, the execution time can only start from minute 0 (ascending order) and the minimum interval is 30 minutes. For details about the rules and configuration methods, click View Details on the console.

  6. Set notifications by referring to Table 3.

    Figure 3 Notification settings
    Table 3 Notification parameters

    Parameter

    Description

    Successful Execution

    When a task is successfully executed, a notification is sent to related personnel. By default, this function is disabled.

    • Send To: Select one or more recipients from the drop-down list.
    • You can also click Create Topic for notification. Specifically, create a topic and add subscriptions to the topic for notification.

    Failed Execution

    When a task fails to be executed, a notification is sent to related personnel. By default, this function is disabled.

    • Send To: Select one or more recipients from the drop-down list.
    • You can also click Create Topic for notification. Specifically, create a topic and add subscriptions to the topic for notification.
    NOTE:

    Notifications can be sent by email or SMS.

  7. Set a task. The task type can be Scripts, Packages, Scenarios, and Jobs.

    • Set a script execution task.
      1. Set Task Type to Scripts.
      2. Enter the script name, script parameters, timeout duration, and execution account. The Script Name drop-down list displays only released scripts. Script version, which is automatically obtained based on the selected script name.
        If Sensitive next to Script Parameters is selected, the content you enter will not be explicitly displayed in the Script Parameters text box.
        Figure 4 Setting a script execution task
      3. Select target instances. Specifically, click Add. The instance selection page is displayed. For Instance Type, the default value is ECS. For Method, the default value is Specific. For details about the methods, see Table 4.
        Table 4 Selection method description

        Selection Method

        Description

        Specific

        Enter search criteria and select instances from the instance list. By default, instances are searched by name.

        By filter

        • Enter filter attributes and values to search for instances.
        • If there are multiple filter criteria, the search is performed based on the AND relationship.
        • This method also takes effect for instances added later.

        By tag

        • Set tag keys and values, and specify one or more tags to select instances.
        • If there are multiple tags, the search is performed based on the AND relationship.
        • This method also takes effect for instances added later.

        From CMDB

        Enter search criteria or keywords and select instances from CMDB. There are two types of nodes:

        • Static: Select an ECS under a specified CMDB application.
        • Dynamic: Select a node in the CMDB application to dynamically obtain ECSs under the node. This method also takes effect for instances added later.
    • Set a package management task.
      1. Set Task Type to Packages.
      2. Enter the package name, version, type, timeout duration, storage path, and execution account. Only released packages are displayed in the drop-down list. Versions are automatically displayed based on the packages you select.
        Figure 5 Setting a package management task
      3. Select target instances. Specifically, click Add. The instance selection page is displayed. For Instance Type, the default value is ECS. For Method, the default value is Specific. For details about the methods, see Table 4.
    • Set a scenario task.
      1. Set Task Type to Scenarios.
      2. Select a scenario from the drop-down list. For details about operations in different scenarios, see Scenarios.
        Figure 6 Setting a scenario task
    • Set a job management task.
      1. Set Task Type to Jobs.
      2. Select a job name and an execution plan from the drop-down lists.
        Figure 7 Setting a job management task

  8. If needed, expand More to set the review configuration and execution policy by referring to Table 5.

    Table 5 More settings

    Category

    Parameter

    Description

    Review

    Review

    Specifies whether to enable manual review. By default, the setting cannot be changed. To change the review settings for default scenarios, go to the Tool Market to set atomic cards; for job execution plans, go to the Jobs page; for packages, go to the Packages page; for scripts, go to the Scripts page.

    Reviewer

    After manual review is enabled, you need to select a reviewer.

    Alternatively, create a topic and add a subscription on the SMN console to notify a reviewer.

    Execution Policy

    Batch Release

    Specifies whether to enable batch release. By default, this function is disabled.

    Instances for Each Batch

    Number of instances on which tasks can be executed at the same time.

    Interval

    Interval for executing each batch of tasks.

  9. Click Submit to create a scheduled task.

More Operations

After a task is created or executed, you can view Task Name, Task Type, Execution Policy, Latest Execution, Updated By, Updated, Start/Stop Task, and Operation on the task list page. You can also perform the operations listed in Table 6.

Table 6 Related operations

Operation

Description

Starting or stopping a task

Click the button in the Start/Stop Task column to start or stop a task.

Modifying a task

Click Modify in the Operation column to modify a task.

You can modify a task only when the task is closed.

Viewing execution records

Click Execution Records in the Operation column to view the task execution details (such as task name/ID/status, execution time, and reviewer).

Deleting a task

Click Delete in the Operation column to delete a task. You can delete a task only when the task is closed.

Searching for a task

You can search for tasks by task name, creator, modifier, latest execution result, task type, and enterprise project. Enter a keyword in the search box in the upper right corner and click .

Hiding/Showing columns in the task list

Click and select or deselect columns to display.

Refreshing the task list

Click to refresh the task list.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback