Operating System - HP-UX
1832650 Members
2689 Online
110043 Solutions
New Discussion

Command to get firmware System & I/O cards

 
Travis Harp_1
Advisor

Command to get firmware System & I/O cards

I need to get the version number for system firmware and I/O card (Fiber channel & LAN cards) firmware.

Is there a command I can run in a script to pull this information with rexec commands?

Thanks,
Travis
8 REPLIES 8
Deoncia Grayson_1
Honored Contributor

Re: Command to get firmware System & I/O cards

you can the information from stm or by logging into the GSP, this link should be of help:

http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=958113
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
DCE
Honored Contributor

Re: Command to get firmware System & I/O cards


if you do a man on stm, you will see you can use to issue comands via a script

If you really want to do it in a script to various systems, you will problably have to select all of the devices, since the device numbers are probably not identical across all of you systems.

the commands you want to issue in stm
map all
info
infolog > some file

this sequence of commands will result in the listing of all the info available for all of the devices on the system


HTH

Dave
Ivan_86
Frequent Advisor

Re: Command to get firmware System & I/O cards

Hi..!!!!

1.- First obtain the device file of card with te ioscan

#ioscan -nfCfc
Class I H/W Path Driver S/W State H/W Type Description
=================================================================
fc 0 0/4/0/0 td CLAIMED INTERFACE HP Tachyon TL/TS Fibre Char
/dev/td0
fc 4 0/10/0/0 td CLAIMED INTERFACE HP Tachyon TL/TS Fibre Char
/dev/td4
fc 1 0/12/0/0 td CLAIMED INTERFACE HP Tachyon TL/TS Fibre Char
/dev/td1
fc 5 1/8/0/0 td CLAIMED INTERFACE HP Tachyon TL/TS Fibre Char
/dev/td5
fc 3 1/10/0/0 td CLAIMED INTERFACE HP Tachyon TL/TS Fibre Char
/dev/td3

2.- Type the next command with the device file of the card i.e

#fcmsutil /dev/td5

Vendor ID is = 0x00103c
Device ID is = 0x001028
TL Chip Revision No is = 2.3
PCI Sub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x000006
Topology = PTTOPT_FABRIC
Local N_Port_id is = 0x011500
N_Port Node World Wide Name = 0x50060b00000825c1
N_Port Port World Wide Name = 0x50060b00000825c0
Driver state = ONLINE
Hardware Path is = 1/8/0/0
Number of Assisted IOs = 109848940
Number of Active Login Sessions = 1
Dino Present on Card = NO
Maximum Frame Size = 960
Driver Version = @(#) PATCH_11.00: libtd.a : Jul 15 208


The firmware version is "Tl Chip Revision"



I hope help you
Sivakumar TS
Honored Contributor

Re: Command to get firmware System & I/O cards

Hi Travis,

Alternatively you can run the follwoing commands at MP,

at MP>CM>

sysrev -- to get the various system firrmware info

DF -- to get the info about the various FRUs in the system


Regards,

Siva.
Nothing is Impossible !
Andrew Rutter
Honored Contributor

Re: Command to get firmware System & I/O cards

travis,

it depends upon the system and which version of hpux to some extent.

if you have an RP with 11i v1 or above and recent diagnostics you can run this command

Echo â selclass qualifier system;info;wait;infologâ ¦ cstm > /tmp/systeminfo.txt

then just view/print this and you will have all firmware versions of all cards and part numbers.

if not then you can run the info tool on each card seperatly through cstm(STM).

Andy
Andrew Rutter
Honored Contributor

Re: Command to get firmware System & I/O cards

travis,

sorry bad formatting on windows pc

echo "selclass qualifier system;info;wait;infolog"|cstm > /tmp/systeminfo.txt

Andy
Travis Harp_1
Advisor

Re: Command to get firmware System & I/O cards

Great feedback guys thanks.

The data I'm getting back is just too much to sort, is there a quick way to get down to the firmware rev?

I have to run this on around 1000 systems.

Thanks
Bill Hassell
Honored Contributor

Re: Command to get firmware System & I/O cards

Naturally, you will need to script the results. Just run the command through grep to pick what you need. The STM diagnostics can be used to narrow down the hardware:

processor:
echo "selclass qualifier cpu;info;wait;infolog" | cstm

memory:
echo "selclass qualifier memory;info;wait;infolog" | cstm

LAN cards:
echo "selclass type lan;info;wait;infolog" | cstm

and so on. Now you'll need to grep for the firmware revision based on how it is shown in cstm. Then you'll need to associate the revision with the appropriate hardware. Spend some time in the STM manual to find the various type and qualifier names. This is the best page:

http://docs.hp.com/en/diag/stm/stt_ccomm.htm

And the STM doc page:
http://docs.hp.com/en/diag/stm/stt_summ.htm

As far as the fibre cards, just do the same using fcmsutil. You'll have to write a script to find the fibre cards from ioscn. The entire task is a good sized scripting project and will require checking to make sure you have covered all the items listed for each different computer model. When the scripts are done, then they can be deployed and run as necessary to collect the required data. I'd allocate a week or two for 1000 servers to make sure everything is correct.


Bill Hassell, sysadmin