1833883 Members
1840 Online
110063 Solutions
New Discussion

Disk firmware

 
SOLVED
Go to solution
Adam Noble
Super Advisor

Disk firmware

Hi all,

In cstm you can do a selclass qualifier cpu;info;wait;il to view the PDC rev. I can also see via stm that I can view the disk firmware revision HP05 etc. The problem is I want to run a script to gather this info. Can I get it via cstm.

Cheers
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Disk firmware

Shalom,

Here is an example

echo "selclass qualifier cpu;infolog" | /usr/sbin/cstm

Just change the menu options to gather the information you want.

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
Adam Noble
Super Advisor

Re: Disk firmware

Yes but that displays cpu information I am after the disk firmware. If I simply state disk it fails
Peter Godron
Honored Contributor

Re: Disk firmware

Adam,
please try:
For PDC:
print "selclass qualifier cpu;info;wait;infolog" | /usr/sbin/cstm | grep -i PDC

For Disk Firmware:
echo "map selall info; wait infolog" | cstm | grep -e'Firmware Rev:' | grep -e'SCSI Disk'
Matti_Kurkela
Honored Contributor

Re: Disk firmware

Cstm is certainly possible, but "diskinfo" might be a bit faster if you need just the firmware revision.

For example:
diskinfo -v /dev/rdsk/c1t2d0 |grep "rev level"
outputs:
rev level: HP04

MK
Andrew Merritt_2
Honored Contributor
Solution

Re: Disk firmware

Adam,
To do what you request, the command is:

echo "selclass type disk;info;wait;infolog" | /usr/sbin/cstm

Andrew