System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

possible to get cpu speed,socket & core information without using root or sudo?

 
DeepakMalpote
Occasional Advisor

possible to get cpu speed,socket & core information without using root or sudo?

Hi All,

 

Is it possible to get cpu speed,socket & core information without using root or sudo?

 

I could get all these details using print_manifest on all IA/PA Server in my environment but this command needs root access.

 

Any other option?

 

Thanks in Advance.

 

Deepak

Wish the W was as Curvy as U.
4 REPLIES

Re: possible to get cpu speed,socket & core information without using root or sudo?

Have you looked at machinfo(1)?

DeepakMalpote
Occasional Advisor

Re: possible to get cpu speed,socket & core information without using root or sudo?

HI Dennis

That will not work on PA Hardware.

Do we have any command for PA?

Thanks
Deepak
Wish the W was as Curvy as U.
MADHU-CA
Advisor

Re: possible to get cpu speed,socket & core information without using root or sudo?

Did you find any needed details from cstm.

 

 

I remember could get processor details in cstm(some grep )

 

have a look .....

Spoiler
Spoiler
 

 

 

for cpu speeds

 

perl -e 'local($PSTAT, $PSTAT_PROCESSOR)=(239,10);
local($struct_pst_processor)=("L30");
local($cpu_info, $cpu_ticks);
$cpu_info = "\0" x 120;
syscall($PSTAT, $PSTAT_PROCESSOR, $cpu_info, length($cpu_info), 1, 0);
($cpu_ticks)=(unpack($struct_pst_processor, $cpu_info))[26];
print "speed=".int($cpu_ticks/10000)."\n";'

Re: possible to get cpu speed,socket & core information without using root or sudo?

>That will not work on PA Hardware.

 

This works on 11.31.