Disk serial number is unique number which is key identification of disk on system. While disks are plugged in and online its hard to trace their serial numbers physically. Normally serial number can be identified on disk which is printed on sticker physically. But if the disk is plugged into system and currently online its hard to observe it physically from all sides and get serial number. In such condition we can get serial number from OS by running commands. Commands reads disk information from disks and extract it for us.
Howto get Disk serial number in HPUX
Howto tutorial to get hard disk serial number from HPUX server. Learn to obtain disk information using CSTM command prompt.
Disk serial number is unique number which is key identification of disk on system. While disks are plugged in and online its hard to trace their serial numbers physically. Normally serial number can be identified on disk which is printed on sticker physically. But if the disk is plugged into system and currently online its hard to observe it physically from all sides and get serial number. In such condition we can get serial number from OS by running commands. Commands reads disk information from disks and extract it for us.
How to get serial number
Here we are going to see how to get serial number of the disk which is attached to server running HPUX. Normally everyone knows diskinfo command to get basic disk information.
In diskinfo output we get basic information of disk like its vendor, size, product ID etc. Note that you need to use raw device in command argument i.e. disk name with rdsk not dsk.
But we are not getting serial number of the disk here. We will use CSTM to get this information. CSTM is Command line Support Tool Manager. Its a part of Online Diagnostic tool which is used for real time hardware monitoring on HP platforms.
Running cstm will take you to cstm prompt where different commands can be run.
At cstm prompt run below command to get serial number info.
CSTM prompt can be exited using quit command.
If you do not wish to enter prompt / do interactive stuff then above tasks can be accomplished in single one liner too.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# echo "selclass qualifier hard;info;wait;infolog"|cstm
Running Command File (/usr/sbin/stm/ui/config/.stmrc).
-- Information --
Support Tools Manager
Version A.59.05
Product Number B4708AA
(C) Copyright Hewlett Packard Co. 1995-2007
All Rights Reserved
Use of this program is subject to the licensing restrictions described
in "Help-->On Version". HP shall not be liable for any damages resulting
from misuse or unauthorized use of this program.
cstm>selclass qualifier hard;info;wait;infolog
-- Updating Map --
Updating Map...
-- Converting multiple raw log files to text. --
Preparing the Information Tool Log for each selected device...
.... server1 : 10.10.1.5 ....
-- Information Tool Log for SCSI Disk on path 0/0/1/1.0.0 --
Log creation time: Sat Oct 29 23:33:37 2016
Hardware path: 0/0/1/1.0.0
Product Id: ST373455LC#36 Vendor: HP 36.4G
Device Type: SCSI Disk Firmware Rev: HPC8
Device Qualifier: HP36.4GST373455LC#36 Logical Unit: 0
Serial Number: 3LQ3VVTS000099075C5W
Capacity (M Byte): 34732.89
Block Size: 512
Max Block Address: 71132959
Smart Enabled: TRUE
Error Logs
Read Errors: 0 Buffer Overruns: N/A
Read Reverse Errors: N/A Buffer Underruns: N/A
Write Errors: 0 Non-Medium Errors: 2
Verify Errors: 0
|
0 comments:
Post a Comment