When you have configured the SSM Role as described here
the Insight AWS Integration are able to execute the following commands on the EC2-Instance and receive data.
This requires that the SSM-Agent is installed on the EC2-Instance and the SSM-Role is assigned.
For some Linux Systems the the dmidecode is not installed. Related to that the attribute values will be not available. |
| Instance Attribute | Windows Command | Unix Command |
|---|---|---|
PlatformName | ||
PlatformType | ||
ホスト名 | ホスト名 | ホスト名 |
RAM | Get-WmiObject Win32_PhysicalMemory | select Capacity" | egrep '^MemTotal' /proc/meminfo |
モデル | Get-WmiObject Win32_ComputerSystem | select Model | dmidecode | grep 'Product' |
Serial Number | Get-WmiObject Win32_BIOS | select SerialNumber | dmidecode | grep 'Serial Number' |
uuid | Get-WmiObject Win32_ComputerSystemProduct | select UUID | dmidecode | grep 'UUID' |
vendor | Get-WmiObject Win32_ComputerSystemProduct | select Vendor | dmidecode | grep 'Manufacturer' |
SystemUpTime | (Date)-([Management.ManagementDateTimeConverter]::ToDateTime((gwmi Win32_OperatingSystem).LastBootUpTime)) | uptime -p |
OS | Get-WmiObject Win32_OperatingSystem | select Caption, Manufacturer, OSArchitecture, | uname -o -r -i -m && cat /etc/*release |
CPU コア数 | Get-WmiObject Win32_Processor | select Caption, Name, DeviceID, NumberOfCores, MaxClockSpeed | Format-List | egrep '^(model name|cpu MHz|[pP]rocessor|physical id|cpu cores)' /proc/cpuinfo |