HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/awscli/examples/ssm/describe-patch-group-state.rst
**To get the state of a patch group**

The following ``describe-patch-group-state`` example retrieves the high-level patch compliance summary for a patch group. ::

    aws ssm describe-patch-group-state \
        --patch-group "Production"

Output::

    {
        "Instances": 21,
        "InstancesWithInstalledPendingRebootPatches": 2,
        "InstancesWithNotApplicablePatches": 1,
        "InstancesWithMissingPatches": 0,
        "InstancesWithInstalledPatches": 10,
        "InstancesWithFailedPatches": 3,
        "InstancesWithInstalledOtherPatches": 2,
        "InstancesWithInstalledRejectedPatches": 2,
        "InstancesWithUnreportedNotApplicablePatches": 1
    }

For more information, see `About Patch Groups` <https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-patch-patchgroups.html>__ and `About Patch Compliance States <https://docs.aws.amazon.com/systems-manager/latest/userguide/about-patch-compliance-states.html>`__ in the *AWS Systems Manager User Guide*.