You are trying to use the AWS Systems Manager run command on a set of Amazon Linux AMI Instances.
The run command is not working on a set of Instances.
What can you do to diagnose the issue? (Select TWO.)
Click on the arrows to vote for the correct answer
A. B. C. D.Answer: A and B.
Option A is CORRECT because the first step to troubleshoot the run command issue would be to check if the SSM agent is properly running on the target machine.
Option B is CORRECT because the SSM Agent stores logs in /var/log/amazon/ssm/errors.log.
The information in these log files can help you to troubleshoot problems.
Option C is incorrect because the right AMI has nothing to do with the issues.
The agent which is used to execute run commands can run on a variety of AMIs.
Option D is incorrect because port 22 is not used for the run command in AWS Systems Manager.
For more information on troubleshooting AWS SSM, kindly visit the following URL:
https://docs.aws.amazon.com/systems-manager/latest/userguide/troubleshooting-remote-commands.htmlTo diagnose the issue with the AWS Systems Manager run command not working on a set of Amazon Linux AMI instances, you can take the following steps:
luasudo systemctl status amazon-ssm-agent
If the SSM Agent is not running, you can start it by running the following command:
sqlsudo systemctl start amazon-ssm-agent
csudo less /var/log/amazon/ssm/errors.log
If there are any errors related to the run command, you can use them to diagnose the issue.
sudo amazon-ssm-agent version
Ensure that the AMI you are using is compatible with this version.
By following these steps, you can diagnose the issue with the AWS Systems Manager run command not working on a set of Amazon Linux AMI instances.