🌊

CloudWatchAgentのバージョン確認コマンド

2022/03/03に公開

Linux

cat /opt/aws/amazon-cloudwatch-agent/bin/CWAGENT_VERSION
# 実行結果
# 1.247350.0b251780

ファイル配置

[root@ip-10-0-2-10 ec2-user]# ls /opt/aws/amazon-cloudwatch-agent
LICENSE  RELEASE_NOTES         bin                     doc  logs
NOTICE   THIRD-PARTY-LICENSES  cwagent-otel-collector  etc  var
[root@ip-10-0-2-10 ec2-user]# ls /opt/aws/amazon-cloudwatch-agent/bin/
CWAGENT_VERSION                        config-downloader
amazon-cloudwatch-agent                config-translator
amazon-cloudwatch-agent-config-wizard  cwagent-otel-collector
amazon-cloudwatch-agent-ctl            start-amazon-cloudwatch-agent

Windows

notepad C:\Program Files\Amazon\AmazonCloudWatchAgent\CWAGENT_VERSION

実行結果(メモ帳が開きます)

ファイル配置

https://docs.aws.amazon.com/ja_jp/AmazonCloudWatch/latest/monitoring/download-cloudwatch-agent-commandline.html#download-CloudWatch-Agent-on-EC2-Instance-commandline-first

Discussion