Operating System - HP-UX
1819801 Members
3311 Online
109607 Solutions
New Discussion юеВ

Getting serial number from command line

 
SOLVED
Go to solution
Jonathan Wegner
Occasional Advisor

Getting serial number from command line

Does anyone know of a command which will give the diskdrive serial number. I know that diskinfo will give the manufacturer and disksize. I'm looking to get a serial number w/o having to shut the machine down and physically remove the drive.

I'm running HP-UX 10.20 on TAC4's.

Thanks,
Jonathan
15 REPLIES 15
Thierry Poels_1
Honored Contributor

Re: Getting serial number from command line

hi,

run Information on the disks from within stm. This will show the required info.
(if not installed, you can install it from the Support Plus CD)

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Richard Darling
Trusted Contributor

Re: Getting serial number from command line

Jonathan,
Earlier this year I got this little gem from the forum, and it will give you exactly what you need:
...find all the disks serial numbers:

Create a file called /tmp/disk.stm with contents...

SelClass type "Disk" qualifier "All"
info;wait
il
done
quit
ok

Call this file at command prompt with cstm command

# cstm -f /tmp/disk.stm
Jonathan Wegner
Occasional Advisor

Re: Getting serial number from command line

Thank you both for your responses. Unfortunately neither answer works.

I don't understand "run Information on the disk from within stm". Also, I do not have a cd-rom of HP-UX. I have only 4mm tapes with supplemental and support.

As to the second reply, the command cstm is unknown on my system. I have done only the basic install of HP-UX 10.20 with patches required for the software I'm running. I have not installed anything from the supplemental or support tapes.

Thanks again for the help.
Jonathan
Bernie Vande Griend
Respected Contributor

Re: Getting serial number from command line

Jonathon,
Sounds like you need to install the Diagnostics utilities first. They can be found on the SupportPlus CD or from ITRC. STM (cstm) is one of the diagnostic tools. IMO they should be installed on every HP-UX system you administer.
Ye who thinks he has a lot to say, probably shouldn't.
Richard Darling
Trusted Contributor

Re: Getting serial number from command line

Jonathan,
The cstm command is the only way I know to get the serial number without opening the box. You should install the utilities...
Richard Darling
Mladen Despic
Honored Contributor
Solution

Re: Getting serial number from command line

Jonathan,

In order to run stm or cstm you need to install STM. This software, which you can get from HP, used to be called Online Diagnostics (I think), but STM stands for Support Tools Manger.

Apparently, you can now download STM over the web.
Here is a link:

http://docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/diag/st/st_web.htm&searchterms=Support%7cTools%7cManager&queryid=20011002-131708
linuxfan
Honored Contributor

Re: Getting serial number from command line

Hi Jonathan,

You could try EMC's inquiry utility. You can get that from

For 10.20
ftp://ftp.emc.com/pub/symm3000/inquiry/v4.3.1.0/inq.hpux1020

For 11.0
ftp://ftp.emc.com/pub/symm3000/inquiry/v4.3.1.0/inq.hpux1100

Has worked like a charm for me

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
G. Vrijhoeven
Honored Contributor

Re: Getting serial number from command line

Jonathan,

Try the print_manifest | more command.

hope this will work.

Gideon
Richard Darling
Trusted Contributor

Re: Getting serial number from command line

Jonathan,
If people take the time to answer you, please take a moment to assign points. Thanks...
Richard Darling
Hamdy Al-Sebaey
Regular Advisor

Re: Getting serial number from command line

Jonathan,

Almost I agree with most of our collega's,
firstly U need to install the software from the CD support plus,then just on your promt type in # xstm or mstm or stm.
U can also try print_manifest & pipe this to /tmp.
Thanks,
Hamdy
Thanks for sharing knowledge
Hamdy Al-Sebaey
Regular Advisor

Re: Getting serial number from command line

Jonathan,

I would like to say that xstm is for hp-ux 11.

Regards,
Hamdy
Thanks for sharing knowledge
harry d brown jr
Honored Contributor

Re: Getting serial number from command line

I've been running xstm on 10.20 machines for years (b4 there was hpux 11.x).

Live Free or Die
Hamdy Al-Sebaey
Regular Advisor

Re: Getting serial number from command line

hi Harry,

Thanks, but what I mean is just the graphical interface of xstm

Regards,
Hamdy
Thanks for sharing knowledge
harry d brown jr
Honored Contributor

Re: Getting serial number from command line

Yes, I have used the graphical interface to xstm, as opposed to the garbage stm.
Live Free or Die
Jonathan Wegner
Occasional Advisor

Re: Getting serial number from command line

Thank you for all the replies. I downloaded and installed stm and am able to use the cstm command with the disk.stm file.

Thanks again,
Jonathan