General
cancel
Showing results for 
Search instead for 
Did you mean: 

Model information for processors in nPar

SOLVED
Go to solution
Vineet Deshpande
Frequent Advisor

Model information for processors in nPar

Hi,

I am interested in finding out the model information for processors on an nPar machine. I am getting that through STM utility.

What I want to know is whether there is another way to find out this information? On a non-nPar machine I am viewing this file using this command:

cat /var/tombstones/ts99 2>/dev/null | grep -i "CPU Module" | sed -e 's/^\ *//g' -e 's/ *$//' -e 's/\.* /-/g' 2>/dev/null

Will this work in an nPar setup too ? I don't have the setup so wanted to find out. If anyone having nPar setup can help me out it will be great.

Thanks,

Vineet
5 REPLIES
Steven E. Protter
Exalted Contributor

Re: Model information for processors in nPar

Shalom,

Not having an npar handy, and thinking maybe you do, perhaps you should merely test the script.

It can't hurt anything.

Answer:
http://docs.hp.com/en/T1335-90098/ch01s03.html

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ganesan R
Honored Contributor

Re: Model information for processors in nPar

Hi,

Try this command.

echo "selclass qualifier cpu;infolog" | /usr/sbin/cstm | grep "CPU Module"
Best wishes,

Ganesh.
Vineet Deshpande
Frequent Advisor

Re: Model information for processors in nPar

Hi,

Thanks for your answers. I found that
cat /var/tombstones/ts99 does give me the model information. However I have a different problem now.

I want to grep for 2 strings in this file. But I don't know the exact syntax. I am using /usr/bin/grep

Can you please tell me that?

Thanks,

Vineet
Ganesan R
Honored Contributor
Solution

Re: Model information for processors in nPar

Hi,

If you want to grep two words from a file use this syntax.

#grep -E "strings1|strings2" /tmp/filename

or

#grep -e "strings1" -e "strings2" /tmp/filename

or

#egrep "strings1|strings2" /tmp/filename

Use -i also if you wish to ignore case sensitive

Best wishes,

Ganesh.
Vineet Deshpande
Frequent Advisor

Re: Model information for processors in nPar

Thanks a lot Ganesan !!