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 | ||
Hostname | hostname | hostname |
Ram | Get-WmiObject Win32_PhysicalMemory | select Capacity" | egrep '^MemTotal' /proc/meminfo |
Model | Get-WmiObject Win32_ComputerSystem | select Model | dmidecode | grep 'Product' |
Serialnumber | 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 |
Cpus | 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 |