- Product Bulletin
- Service Overview
-
User Guide
- Usage Overview
- Selecting HCE as the Public Image When Creating an ECS
- Changing an OS to HCE
- Migrating an OS
- Upgrading HCE and RPM Packages
- Security Updates for HCE
- Obtaining the openEuler Extended Software Packages
- Creating a Docker Image and Starting a Container
- Tools
- Kernel Functions and Interfaces
- xGPU
- Configuring the Repositories and Installing Software for HCE
-
FAQs
- What Do I Do If CentOS Linux Is No Longer Maintained?
- Does Huawei Cloud Have a Migration Solution for CentOS?
- How Do I Install the MLNX Driver?
- How Do I Enable SELinux on an ECS Running HCE?
- How Do I Change the OS Name on the Console After the OS Is Migrated?
- How Are Huawei Cloud EulerOS, EulerOS, and openEuler Different from One Another?
- How Do I Enable WireGuard in Kernel and Install wireguard-tools?
- How Do I Save the User Credential Information for Logging In to Docker Like What Docker CE Does?
- What Is OOM? Why Does OOM Occur?
- How Do I Handle IPVS Errors?
- Why Can't HCE Obtain an IPv6 Address After IPv6 Is Enabled for an ECS?
- How Do I Set Auto Log Using TMOUT?
- Best Practices
- General Reference
Show all
Copied.
Automatic Update Using osmt-agent
The osmt-agent service periodically checks whether there are available RPM package updates and updates them automatically. You can configure how often to check updates and when to perform the update.
- Run the following command to ensure that the value of auto_upgrade in the osmt.conf file is True:
osmt config -k auto_upgrade -v True
- Run systemctl status osmt-agent.service to check whether the osmt-agent service is started.
- If the Active value is active (running), osmt-agent is started.
- Otherwise, run systemctl start osmt-agent.service to start osmt-agent.
- Run the desired command to configure when or how often to perform the updates:
- To configure a time window for automatic updates:
osmt config -k auto_upgrade_window -v "auto_upgrade_window"
auto_upgrade_window: defines the start time and end time of automatic updates using the osmt-agent service. The value is in the format of "HH:MM-HH:MM".
If the end time is smaller than the start time, the update period covers two dates. For example, 22:00-05:00 indicates an update period from 22:00 on the current day to 05:00 on the next day.
For example, run the following command to configure a time window starting from 23:00 on the current day to 01:00 on the next day:
osmt config -k auto_upgrade_window -v "23:00-01:00"
- To configure the interval between two automatic updates:
osmt config -k auto_upgrade_interval -v auto_upgrade_interval
auto_upgrade_interval: defines the minimum interval between two automatic updates, in days.
For example, run the following command to configure automatic updates every other day:
osmt config -k auto_upgrade_interval -v 1
- To configure a time window for automatic updates:
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot