Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Question about CPU Idle with COLLECT

SOLVED
Go to solution
Nayas
Occasional Contributor

Question about CPU Idle with COLLECT

Hi,

I'd like to know if i could do the follwing, with HP-UX OS:

I'd like to get the cpu idle, cpu per cpu, of the server.

I can do "collect -s c" but the file created by collect is unreable (zipped or unzipped with -oz).

Is there another command (like mpstat -P ALL with Linux) to get that information?

Thank you
6 REPLIES
Ivan Ferreira
Honored Contributor

Re: Question about CPU Idle with COLLECT

I suppose are talking about Tru64 Unix (Not HP-UX).

The collect -sc command will display the information to STDOUT. If you save it to a file (see man collect for activate at startup with rcmgr) you can then "playback" the file with:

collect -sc -p

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor
Solution

Re: Question about CPU Idle with COLLECT

Welcome to the forum, please don't forget to assign points to the answers you get. For more information see:

http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Nayas
Occasional Contributor

Re: Question about CPU Idle with COLLECT

Ya, sorry, I meant Tru64 Unix. Im managing Linux, HP-UX, Tru64, Solaris and AIX server so it gets confuse ;)

I'll try what you point out. I'll let you know.

Thank for fast reply.
Nayas
Occasional Contributor

Re: Question about CPU Idle with COLLECT

Actually, I forgot to mantion an important thing.

I have to collect the cpu idle, cpu per cpu, in a shell script.

I tried to do:
collect -sc -R5s -f tmp.dat
collect -p tmp.dat.cgz

But file was unreadable... I don't think I understand, or see, what I have to do.
Ivan Ferreira
Honored Contributor

Re: Question about CPU Idle with COLLECT

The problem maybe is that you specified run time is very low, for example:

collect -f /tmp/collect.out -R15s
collect -sc -p /tmp/collect.out.cgz

Works correctly.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Nayas
Occasional Contributor

Re: Question about CPU Idle with COLLECT

Awsome, work effectivly perfectly!

Much appreciated.