Operating System - HP-UX
1837275 Members
3264 Online
110115 Solutions
New Discussion

command line determination of pdc version

 
Ross Hansen
Occasional Advisor

command line determination of pdc version

I need to determine pdc version from a machine which is already running. I can not interact with the system due to this running from a script. There is also the possibilty the stm is not installed.

a system command that produces the version or information containing the version would work perfectly.

any ideas?

Ross Hansen
4 REPLIES 4
Geno Church_1
Valued Contributor

Re: command line determination of pdc version

Ross,

You can check the ts99 file within the /var/tombstones directory. Below is an example...

root@ndchpr8:/var/tombstones $ more ts99
HP-UX ndchpr8 B.11.11 U 9000/800 699349396

CPU-ID( Model ) = 0x13

------- Processor 0 HPMC Information - PDC Version: 43.22 <------

Timestamp = Fri Jan 9 05:57:32 GMT 2004 (20:04:01:09:05:57:32)

HPMC Chassis Codes

Geno
Robert-Jan Goossens
Honored Contributor

Re: command line determination of pdc version

Walter or is it Geno ? (:-)

That is damned smart !

But be shure to check the date stamp in the ts file.

Kind regards,
Robert-Jan

Jeff Schussele
Honored Contributor

Re: command line determination of pdc version

Hi Ross,

Here's a one-liner:

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

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: command line determination of pdc version

Ooops - of course that should be $8 & not &8
fat-fingered that puppy.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!