Apply patches on demand

更新时间:
复制 MD 格式

To prevent security attacks, you should promptly fix system vulnerabilities. You can use the patch management feature of OOS to keep software packages up to date, fix vulnerabilities, and scan for and install patches. You can use OOS to perform these patch operations on demand.

Patch modes

OOS provides three patch management modes:

Warning

If you select RebootIfNeed when you install patches, the system automatically restarts the instance if a patch requires it.

  1. Scan for patches: Scans your ECS instances for system vulnerabilities.

  2. Install patches without a restart: Fixes system vulnerabilities on the ECS instance without a restart.

  3. Install patches and restart: Fixes system vulnerabilities and restarts the ECS instance if a patch requires it.

Required permissions

To perform patch management operations, you need the following permissions:

{
    "Policy": {
        "Version": "1",
        "Statement": [
            {
                "Action": [
                    "ecs:RebootInstance",
                    "ecs:DescribeInvocationResults",
                    "ecs:DescribeCloudAssistantStatus",
                    "ecs:DescribeInstances",
                    "ecs:DescribeInvocations",
                    "ecs:RunCommand"
                 ],
                 "Resource": "*",
                 "Effect": "Allow"
             },
             {
                 "Action": [
                     "oos:ListInstancePatchStates"
                 ],
                 "Resource": "*",
                 "Effect": "Allow"
              }
      ]
   }
}

You can configure these permissions on the RAM console.

Procedure

  1. Log in to the CloudOps Orchestration Service console. In the left-side navigation pane, choose Quick Setup.

  2. On the Quick Setup page, choose patch management, and then click Create .image

  3. Set Schedule Type to Execute Now. Select Scan and Install or Scan Only. If you select Scan and Install, you can also choose to restart the instance if needed and create a snapshot.image

  4. Select the instances to patch.image

  5. Click Create. In the dialog box that appears, click OK.

  6. You can view the patching status under Server Management > Patch Management in the left-side navigation pane.image