psrinfo -p needs root login ?

Hi,

I tried running psrinfo command on couple of machines but found that if i login as root then it works.
But when i login other than root account, I get this error,

$ /usr/sbin/psrinfo -pv | fgrep UltraSPARC
/usr/sbin/psrinfo: illegal option -- p
usage:
        psrinfo [-v] [processor_id ...]
        psrinfo -s processor_id
$

Can anybody explain, if i need root login to run psrinfo with '-p' option?
and i would also like to know if from which version of sunos psrinfo with '-p' option is supported ?

Thanks in advance,
Roshan

psrinfo -p option will give how many processes are working
so this can be seen as u login as root
if u want to see to as user just give root permissions to user

sun solaris 10 os 8/07

spandhan

Thanks for quick responce.

I wanted to find the information about physical processors only.
i.e. using "prsinfo -vp" command.

So you mean, i can be only run, if login is root ?

What version of OS are you using? On Solaris 8,9,10 I could use psrinfo -pv as regular user. Other option is to try prtdiag command

I tried on 5.9 and 5.10, on both i see that only root user could execute prsinfo -pv,

otherwise i could run psrinfo -v with user other than root.

Does any other command gives information on physical processors, without login as root user?

Why can 't you just sudo power to that user for that command?

there is no "sudo" on a default solaris installation!

kstat can be run without root privileges. Something as simple as `kstat -p|grep cpu` might work for your needs.

You don't. psrinfo works exactly the same regardless of you being root or not. Please double check your tests. In the latests Solaris 10 updates, psrinfo is a perl script so you can verify no privilege is required.

Started with Solaris 9 12/03.
New psrinfo Option to Identify Chip Multithreading Features (Solaris 10 What's New) - Sun Microsystems