By default, 20 samples are taken in order to obtain the values for both metrics from the remote machine. If the values of these two metrics do not match, you can modify the sampling value in hostresource.xml from 20 to 60.
NOTE: One sampling is equal to one second.
Steps:
1) Stop Applications Manager.
2) Go to hostresource.xml file under <AppManger_Home>/working/conf/application/ directory and search for the text CPU Entitlement Usage. Then change the sampling value from 20 to 60 in three places.
Eg. Change
lparstat 1 20 >
/tmp/apm_physc.txt && awk '/^..[0-9]/{sum+=$5}END{printf
"UtilizationCPUCore: %.2f\n" ,sum/20}' /tmp/apm_physc.txt && awk
'/^..[0-9]/{sum+=$6}END{printf "EntitledCPUUtilization: %.2f\n"
,sum/20}' /tmp/apm_physc.txt
to
lparstat
1 60 > /tmp/apm_physc.txt && awk
'/^..[0-9]/{sum+=$5}END{printf "UtilizationCPUCore: %.2f\n" ,sum/60}'
/tmp/apm_physc.txt && awk '/^..[0-9]/{sum+=$6}END{printf
"EntitledCPUUtilization: %.2f\n" ,sum/60}' /tmp/apm_physc.txt
3) Once you've changed it, save the file.
4) Now that we are using 60 samplings, the above command must be executed in at least 60 seconds. So the timeout for all AIX monitors added via SSH mode needs to be updated. Using the query below, we can update the timeout for all AIX SSH monitoring:
update am_hostinfo set timeout=70 where resourceid in (select resourceid from am_managedobject where type='AIX') and mode='SSH'
To be on the safer side, it is better to add 10 seconds and set the timeout as 70 seconds for all AIX SSH mode of monitors.
5) start Applications Manager.
6) Check the value for the metrics.