What commands do CPU utilization and PercentMemory use(Hardware plugin) from AIX?
CPU utilisation is collected using performance API (the perfstat_cpu_total function). Memory data is collected using the AIX Performance API (using the perfstat_memory_total function).
CPU utilisation is collected using performance API (the perfstat_cpu_total function). This function returns the total number of CPU ticks spend in user/system/idle/wait states. The utilisation is calculated as the difference in the user+system ticks from the previous sample, as a percentage of total CPU ticks spent.
The CPUUtilisation value is also a running average of the past five sample values which may additionally explain why you are seeing differences between the plug-in and Real Time information from the system. To deactivate the average calculation you can turn off ‘cpuSmoothing’ within the sampler options. Memory data is collected using the AIX Performance API (using the perfstat_memory_total function). memoryUse displays “Active Virtual Pages” in megabytes. This is the same as the “avm” figure reported by vmstat divided by 256. (vmstat avm is number of 4kb pages. Therefore (memoryUse in MB) = (avm in pages)4 / 1024.) memoryIdle displays the “physical memory free”, which is the “fre” figure reported by vmstat. Again, vmstat displays pages so divide by 256 to get the figure in megabytes. Swap data is collected using the command “lsps -s”.