1748040 Members
5059 Online
108757 Solutions
New Discussion юеВ

Re: Command Line

 
John Burenheide
Occasional Contributor

Command Line

Is there a command that will return PA value of a given HPUX machine?
8 REPLIES 8
H.Merijn Brand (procura
Honored Contributor

Re: Command Line

model?

/opt/langtools/lib/sched.models will complete your info
Enjoy, Have FUN! H.Merijn
Nick Wickens
Respected Contributor

Re: Command Line

Do you mean the PARISC processor ?

Look at uname -a output and /usr/lib/sched.models
Hats ? We don't need no stinkin' hats !!
Pete Randall
Outstanding Contributor

Re: Command Line

The model number of the PA risc processor I don't know about, but this will give you the speed:
HPUX=/stand/vmunix

MHZ=$(echo itick_per_tick/D | adb -k $HPUX /dev/kmem | tail -1 | awk '{print $2/10000}')
echo $MHZ

Pete
S.K. Chan
Honored Contributor

Re: Command Line

or ..

# /usr/sbin/diag/pdcinfo
Enter "y" when prompted.
S.K. Chan
Honored Contributor

Re: Command Line

sorry ..typo ..

# /usr/sbin/diag/contrib/pdcinfo
James R. Ferguson
Acclaimed Contributor

Re: Command Line

Hi John:

Run 'stm':

# echo "selclass qualifier cpu;info;wait;infolog" | cstm > /tmp/cpuinfo

# grep PA /tmp/cpuinfo

You will find results like:

PA 8200 CPU Module 4.0

...where 4.o is the revison of the module.

Regards!

...JRF...
Shannon Petry
Honored Contributor

Re: Command Line

The easiest way fer real in hp-ux 11.x is to use getconf.
man getconf will give you all sorts of information you can poll for.
getconf CPU_CHIP_TYPE
getconf MACHINE_MODEL
getconf MACHINE_IDENT
just to name a few.

Regards,
Shannon
Microsoft. When do you want a virus today?
Giri Sekar.
Trusted Contributor

Re: Command Line


/usr/sbin/diag/contrib/pdcinfo would give you what you need. To avoid all the garbage use it with -no_banner option.

/usr/sbin/diag/contrib/pdcinfo -no_banner > pdc.out

Thanks
Giri Sekar.

"USL" Unix as Second Language