HPE 9000 and HPE e3000 Servers
cancel
Showing results for 
Search instead for 
Did you mean: 

Determine PDC version from a script

 
SOLVED
Go to solution
Jeff Carlin
Frequent Advisor

Determine PDC version from a script

This is how I came up with finding the PDC version in a script. I needed something that worked on A,L,N class servers... It works, but I was curious if anyone had a better way:


echo "sel path `echo "map\n"|cstm|grep CPU|head -n1|awk '{print$2}'`\ninfolog\nexit"|cstm|grep PDC|head -n1|awk '{print$4}'
Where wisdom is called for, force is of little use. --Of course, a hammer does wonders for relieving stress.
3 REPLIES 3
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Determine PDC version from a script

Hi Jeff,

I found this one liner from Jeff Schussele,

# echo "selclass qualifier cpu;info;wait;infolog" | cstm | grep "Processor 0 HPMC" | awk '{print $7,$8,$9}'

and this one,

# grep PDC /var/tompstones/ts99

Hope this helps,
Robert-Jan
Jeff Carlin
Frequent Advisor

Re: Determine PDC version from a script

I forgot about checking tombstones!

The other one doesn't work on all of my servers (returns blank on some). It was similar to my first attempt.
Where wisdom is called for, force is of little use. --Of course, a hammer does wonders for relieving stress.
Jeff Carlin
Frequent Advisor

Re: Determine PDC version from a script

Used above solution.
Where wisdom is called for, force is of little use. --Of course, a hammer does wonders for relieving stress.