CmdID

CmdID / aws / aws ssm

aws ssm list-command-invocations

An invocation is copy of a command sent to a specific managed node. AWS CLI reference

1 example 6 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To list the invocations of a specific command

The following list-command-invocations example lists all the invocations of a command.

aws ssm list-command-invocations --command-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111" --detailsIdentify
--command-id(Optional) The invocations for a specific command ID.
--details(Optional) If set this returns the response of the command executions and any command output.
Its output, shortened
{
    "CommandInvocations": [
        {
            "CommandId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "InstanceId": "i-02573cafcfEXAMPLE",
            "InstanceName": "",
            "Comment": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222:a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
            "DocumentName": "AWS-UpdateSSMAgent",
            "DocumentVersion": "",
            "RequestedDateTime": 1582136283.089,
            "Status": "Success",
            "StatusDetails": "Success",
            "StandardOutputUrl": "",
            "StandardErrorUrl": "",
            "CommandPlugins": [
                {
                    "Name": "aws:updateSsmAgent",
                    "Status": "Success",
                    "StatusDetails": "Success",
                    "ResponseCode": 0,
                    "ResponseStartDateTime": 1582136283.419,
                    "ResponseFinishDateTime": 1582136283.51,
                    "Output": "Updating amazon-ssm-agent from 2.3.842.0 to latest\nSuccessfully downloaded https://s3.us-west-2.amazonaws.com/amazon-ssm-us-east-2/ssm-agent-manifest.json\namazon-ssm-agent 2.3.842.0 has already been installed, update skipped\n",
                    "StandardOutputUrl": "",
                    "StandardErrorUrl": "",
                    "OutputS3Region": "us-west-2",
                    "OutputS3BucketName": "",
                    "OutputS3KeyPrefix": ""
                }
            ],
… 52 more lines

For more information, see Understanding Command Statuses in the AWS Systems Manager User Guide.

Options

6 in the AWS CLI reference
--command-id(Optional) The invocations for a specific command ID.
--details(Optional) If set this returns the response of the command executions and any command output.
--filters(Optional) One or more filters.
--instance-id(Optional) The command execution details for a specific managed node ID.
--max-results(Optional) The maximum number of items to return for this call.
--next-token(Optional) The token for the next set of items to return.