免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4573 | 回复: 11
打印 上一主题 下一主题

请教有没有用命令行的方式就能提取硬盘串号的 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-05-18 13:32 |只看该作者 |倒序浏览
dmesg和machinfo好像不能显示出来,先谢过了

论坛徽章:
0
2 [报告]
发表于 2012-05-18 15:11 |只看该作者
-bash-4.2# cstm
Running Command File (/usr/sbin/stm/ui/config/.stmrc).

-- Information --
Support Tools Manager


Version D.04.00

Product Number B4708AA

(C) Copyright Hewlett Packard Co. 1995-2008
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>info
     ^-- (Information) is currently disabled. --

cstm>map
                                     rx2660a

  Dev                                                 Last        Last Op      
  Num  Path                 Product                   Active Tool Status      
  ===  ==================== ========================= =========== =============
    1  system               system (1022)                                      
    2  memory               IPF_MEMORY (1022)                                 
    3  0                    Bus Adapter (103c4030)                             
    4  0/0                  PCI Bus Adapter (103c122e                          
    5  0/0/1/0              PCI class (103c1303)                              
    6  0/0/1/1              PCI SimpleComm (103c1302)                          
    7  0/0/1/2              RS-232 Interface (103c104                          
    8  0/0/2/0              USB Open Host Controller                           
    9  0/0/2/0.0            Generic USB Interface (30                          
   10  0/0/2/1              USB Open Host Controller                           
   11  0/0/2/1.0            Generic USB Interface (31                          
   12  0/0/2/1.0.0          USB Mass Storage (USBBulk                          
   13  0/0/2/1.0.16         USB to SCSI Bus Adaptor (                          
   14  0/0/2/2              USB Enhanced Host Control                          
   15  0/1                  PCI Bus Adapter (103c122e                          
   16  0/1/1/0              SAS Adapter (SAS Adapter)                          
   17  0/1/1/0.0.0.0.0      SCSI Disk (HPDG146BAAJB)                           
   18  0/1/1/0.0.0.1.0      SCSI Disk (HPDG146BAAJB)                           
   19  0/1/2/0              PCI Gigabit Ethernet Link                          
   20  0/1/2/1              PCI Gigabit Ethernet Link                          
   21  0/2                  PCI Bus Adapter (103c12ee                          
   22  0/3                  PCI Bus Adapter (103c12ee                          
   23  0/3/1/0              Fibre Channel Interface (                          
   24  0/3/1/0.1            FCP Domain (Mass_Storage)                          
   25  0/3/1/***0.255.0.0.0 SCSI Disk (IBM1722-600)                           
   26  0/3/1/***1.255.0.0.0 SCSI Disk (IBM1722-600)                           
   27  0/3/1/0.1.4.255.0.0  Virtual Array 7110 (HPA61                          
   28  0/3/1/0.1.7.255.0.0  Virtual Array 7110 (HPA61                          
   29  0/4                  PCI Bus Adapter (103c12ee                          
   30  0/4/1/0              PCI Gigabit Ethernet Link                          
   31  120                  CPU (1022)                                         
   32  121                  CPU (1022)                                         
   33  250                  Core I/O Adapter (fffffff                          
   34  250/0                IPMI Controller (49504930                          
   35  250/1                RS-232 Interface (504e503                          
   36  250/2                ACPI Device (41435049)                             
cstm>sel device 17
cstm>info
-- Updating Map --
Updating Map...
cstm>il
-- Converting a (124 byte raw log file to text. --
Preparing the Information Tool Log for SCSI Disk on path 0/1/1/0.0.0.0.0 File
...

.... rx2660a  :  192.168.1.26 ....

-- Information Tool Log for SCSI Disk on path 0/1/1/0.0.0.0.0 --

Log creation time: Fri May 18 01:10:00 2012

Hardware path: 0/1/1/0.0.0.0.0


Product Id:       DG146BAAJB        Vendor:           HP      
Device Type:      SCSI Disk         Firmware Rev:     HPDA
Device Qualifier: HPDG146BAAJB      Logical Unit:     0
Serial Number:            P4W5ALJA
Capacity (M Byte):          140014.41
   Block Size:              512
   Max Block Address:       286749487
Error Logs  
   Read Errors:                0    Buffer Overruns:        N/A   
   Read Reverse Errors:      N/A    Buffer Underruns:       N/A   
   Write Errors:               0    Non-Medium Errors:        1   
   Verify Errors:              0
-- Information Tool Log for SCSI Disk on path 0/1/1/0.0.0.0.0 --
View   - To View the file.
Print  - To Print the file.
SaveAs - To Save the file.
Enter Done, Help, Print, SaveAs, or View: [Done]

评分

参与人数 1可用积分 +10 收起 理由
lbseraph + 10 感谢积极答复!

查看全部评分

论坛徽章:
48
15-16赛季CBA联赛之青岛
日期:2021-01-07 13:41:2315-16赛季CBA联赛之上海
日期:2020-12-01 18:02:0720周年集字徽章-20	
日期:2020-10-28 14:14:2620周年集字徽章-20	
日期:2020-10-28 14:04:3015-16赛季CBA联赛之天津
日期:2020-10-18 22:51:412016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2015-12-22 13:30:48操作系统版块每日发帖之星
日期:2015-12-07 06:20:00操作系统版块每日发帖之星
日期:2015-09-04 06:20:002015亚冠之德黑兰石油
日期:2015-08-05 18:46:082015年亚洲杯之巴勒斯坦
日期:2015-04-19 10:42:502015年亚洲杯之巴林
日期:2015-04-09 08:03:23
3 [报告]
发表于 2012-05-18 16:45 |只看该作者
LS正解,加分。

论坛徽章:
0
4 [报告]
发表于 2012-05-24 12:20 |只看该作者
回复 2# Proceed


    谢谢回复,试了,cstm不能运行,我的系统是HP-UX B.11.11,是这个原因吗

论坛徽章:
48
15-16赛季CBA联赛之青岛
日期:2021-01-07 13:41:2315-16赛季CBA联赛之上海
日期:2020-12-01 18:02:0720周年集字徽章-20	
日期:2020-10-28 14:14:2620周年集字徽章-20	
日期:2020-10-28 14:04:3015-16赛季CBA联赛之天津
日期:2020-10-18 22:51:412016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2015-12-22 13:30:48操作系统版块每日发帖之星
日期:2015-12-07 06:20:00操作系统版块每日发帖之星
日期:2015-09-04 06:20:002015亚冠之德黑兰石油
日期:2015-08-05 18:46:082015年亚洲杯之巴勒斯坦
日期:2015-04-19 10:42:502015年亚洲杯之巴林
日期:2015-04-09 08:03:23
5 [报告]
发表于 2012-05-24 13:01 |只看该作者
cstm不能运行那是cstm有问题,报错是什么(最好把你主机运行cstm的输出贴上来)?先确认域名解析有没有问题吧,很多时候这个也会导致cstm运行不了的。

论坛徽章:
5
CU大牛徽章
日期:2013-09-18 15:16:55CU大牛徽章
日期:2013-09-18 15:18:22CU大牛徽章
日期:2013-09-18 15:18:432015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:49:45
6 [报告]
发表于 2012-05-24 13:56 |只看该作者
cstm看到的设备信息应该是最详细的了

论坛徽章:
0
7 [报告]
发表于 2012-06-13 18:05 |只看该作者
tangye 发表于 2012-05-24 13:56
cstm看到的设备信息应该是最详细的了


这个命令在我的系统上不能执行
# cstm
sh: cstm:  not found.
且 # find / -name cstm 也不能找到这个命令

我的系统是B.11.23 U 9000/800

论坛徽章:
5
CU大牛徽章
日期:2013-09-18 15:16:55CU大牛徽章
日期:2013-09-18 15:18:22CU大牛徽章
日期:2013-09-18 15:18:432015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:49:45
8 [报告]
发表于 2012-06-13 22:37 |只看该作者
root不能运行cstm?啥硬件平台?

论坛徽章:
0
9 [报告]
发表于 2012-06-21 16:20 |只看该作者
kelgoo 发表于 2012-05-24 12:20
回复 2# Proceed


把CSTM服务重启下应该就可以了,

通过ps -ef|grep diagmond查看。

正常显示结果如下:ps -ef|grep diagmond

    root 22910     1  0 17:08:40 ?         0:01 /usr/sbin/stm/uut/bin/sys/diagmond
    root 25128 25100  1 17:42:01 pts/tb    0:00 grep diagmond

如果没有第一个进程,可以考虑重起进程。
#/sbin/init.d/diagnostic stop
#/sbin/init.d/diagnostic start.

论坛徽章:
0
10 [报告]
发表于 2012-07-27 16:49 |只看该作者
n1164_30 发表于 2012-06-21 16:20
把CSTM服务重启下应该就可以了,

通过ps -ef|grep diagmond查看。


多谢,这套HP-UX不是官方原装的系统,没有CSTM这个程序,难怪不能运行

能不能在哪里下载到这个程序的安装包啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP