1828233 Members
2743 Online
109975 Solutions
New Discussion

Cpu LOAD command

 
FOREST Michel
Frequent Advisor

Cpu LOAD command

Hi,
i would like to knom with which command can i get the load of the cpu. Just the load.
Whith a "top", i have all and with a "sar 1 10"
i haven't the value of the load.
Must i use a grep or awk command to extract this value ?
Thanks for all
Michel
A rookie in the HP Forum :)
5 REPLIES 5
Steven Sim Kok Leong
Honored Contributor

Re: Cpu LOAD command

Hi,

The uptime command will show you the cpu load for the last 1, 5 and 15 mins.

# uptime

man 1m uptime for more information. You can interface uptime with scripting to extract the current load eg.:

# uptime | awk '{print $10}' | cut -d\, -f1

Hope this helps. Regards.

Steven Sim Kok Leong
Victor BERRIDGE
Honored Contributor

Re: Cpu LOAD command

Hi,
Would the system load given by uptime be enough?

All the best

Victor
FOREST Michel
Frequent Advisor

Re: Cpu LOAD command

Hi, if i have understand, the three value of the uptime load average are :
the load average for the last minute
the load average for the last fifht minute
the load avearge for the last fithteen minute ?

Thanks !

A rookie in the HP Forum :)
Pal Szabo_1
Valued Contributor

Re: Cpu LOAD command

Yes, definitely.

Steven Sim Kok Leong
Honored Contributor

Re: Cpu LOAD command

Hi,

Note that it is not the uptime at the 1st, 5th or 15th minute. Rather, it is the average of the load spread over the last 1 min, over the last 5 mins and over the last 15 mins.

Hope this helps. Regards.

Steven Sim Kok Leong