HP小型机的信息的命令集:(三)

26、一个有用的诊断工具mstm
用它可以收集到所有的硬件信息,比如一共有哪些内存插口,
每块现有的内存条有多大,还可以查几个内存条等等信息。

使用举例:
#mstm
选择system(),并且在菜单上选中Tools/information/information log
便可以看到很多关于硬件的消息,如:

System Information for (scp1)
   HPUX Model Number......: L2000            //机器型号是HP L2000
   HPUX Model String......: 9000/800/L2000-44      
   Original Product Number:  A5191A   
   Current Product Number.:
   System Serial Number...: (Unknown)
   Hversion...............: 0x5c40
   Sversion...............: 0x491
   Software Capabilities..: 0x100000f0

PD CPU Information:
   Number of CPUs in the current Protection Domain = 2     //两个cpu

Cabinet 0; Cell 0; CPU Map
cpu  -------------------------------------------------
slot |00|01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|
     -------------------------------------------------
state| a|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
     -------------------------------------------------
     c - Configured                  (CPU powered on)
     d - De-configured               (CPU powered off)
     a - Active                      (configured and processes running)



选择memory,并且在菜单上选中Tools/information/information log
便可以看到关于内存的信息,如:
-- Information Tool Log for MEMORY on path 8 --

Log creation time: Wed Jul  3 17:05:47 2002

Hardware path: 8


Basic Memory Description

    Module Type: MEMORY
    Total Configured Memory   : 1024 MB   //可以看到总的内存有多少,是1G
    Page Size: 4096 Bytes

    Memory interleaving is supported on this machine and is ON.

Memory Board Inventory
   DIMM Slot      Size (MB)
   ---------      ---------
          0a            256            //可以看到每个内存槽里面是不是已经插了内存条,还有
                                          该内存条是多少的内存,比如这里0a槽上插的是256M
          1a            256
          0b            256
          1b            256
   ---------      ---------            //可以看出该台小型机的4个内存槽都已经插满了
   System Total (MB):  1024              


Memory Error Log Summary

    The memory error log is empty.

Page Deallocation Table (PDT)

    PDT Entries Used: 0
    PDT Entries Free: 50
    PDT Total Size: 50

在使用mstm的时候可以打开另外一个终端窗口,执行命令#/usr/sbin/ioscan -fn ,这样可以知道每个设备
的硬件地址信息。


这样可以得到如下结果:
lan        2  0/7/0/0   btlan6  CLAIMED  INTERFACE  HP A3738A PCI 10/100Base-TX Ultimate Combo
                           /dev/diag/lan2  /dev/ether2     /dev/lan2
memory      0  8            memory    CLAIMED     MEMORY       Memory
processor   0  160          processor CLAIMED     PROCESSOR    Processor
processor   1  166          processor CLAIMED     PROCESSOR    Processor
这样可以知道0/7/0/0地址对应的是一个100M的网卡,然后再到mstm窗口中去查看它的information log
信息,这样可以很清楚硬件信息了。


该收集结果文件中还可以找到磁盘的使用信息,如:

     I  H/W Path   Driver      S/W State   Description   ====================================================================     0  0/0/1/1.2.0  sdisk       CLAIMED     SEAGATE ST39204LC     1  0/0/2/1.2.0  sdisk       CLAIMED     HP DVD-ROM 304     2  0/3/0/0.0.0  sdisk       CLAIMED     HP C5447A     4  0/3/0/0.0.1  sdisk       CLAIMED     HP C5447A     6  0/3/0/0.0.2  sdisk       CLAIMED     HP C5447A     8  0/3/0/0.0.3  sdisk       CLAIMED     HP C5447A    10  0/3/0/0.0.4  sdisk       CLAIMED     HP C5447A    12  0/3/0/0.0.5  sdisk       CLAIMED     HP C5447A     3  0/6/0/0.1.0  sdisk       CLAIMED     HP C5447A     5  0/6/0/0.1.1  sdisk       CLAIMED     HP C5447A     7  0/6/0/0.1.2  sdisk       CLAIMED     HP C5447A     9  0/6/0/0.1.3  sdisk       CLAIMED     HP C5447A    11  0/6/0/0.1.4  sdisk       CLAIMED     HP C5447A    13  0/6/0/0.1.5  sdisk       CLAIMED     HP C5447A   Device     H/W Path   Product id    Size     Physical      Alternate                                       (Mbytes) Volume        Link        ====================================================================      c1t2d0  0/0/1/1.2.0  ST39204LC       8683   yes bootable  no       c3t2d0  0/0/2/1.2.0  DVD-ROM            0   no            n/a      c4t0d0  0/3/0/0.0.0  C5447A          1024   yes           no       c4t0d1  0/3/0/0.0.1  C5447A          2052   yes           no       c4t0d2  0/3/0/0.0.2  C5447A         10252   yes           no       c4t0d3  0/3/0/0.0.3  C5447A          1024   no            n/a      c4t0d4  0/3/0/0.0.4  C5447A          2052   no            n/a      c4t0d5  0/3/0/0.0.5  C5447A         10252   no            n/a      c5t1d0  0/6/0/0.1.0  C5447A          1024   yes           yes      c5t1d1  0/6/0/0.1.1  C5447A          2052   yes           yes      c5t1d2  0/6/0/0.1.2  C5447A         10252   yes           yes      c5t1d3  0/6/0/0.1.3  C5447A          1024   no            n/a      c5t1d4  0/6/0/0.1.4  C5447A          2052   no            n/a      c5t1d5  0/6/0/0.1.5  C5447A         10252   no            n/a   Note:  All disk devices are listed here, not only hard disks.LVM mirroring software**********************   LVM mirroring software MirrorDisk/UX (B2491A) is NOT installed................................................................................**********************Part 2:  VOLUME GROUPS**********************Volume Group: /dev/vg00*************   Physical Volumes:   /dev/dsk/c1t2d0   Volume group disk space usage:   Total    :  8676 Mbytes   2169 PE   Allocated:  8404 Mbytes   2101 PE   Free     :   272 Mbytes     68 PE   PE size  :     4 MbytesVolume Group: /dev/vg10*************   Physical Volumes:   /dev/dsk/c4t0d0   /dev/dsk/c5t1d0        Alternate Link   Volume group disk space usage:   Total    :  1020 Mbytes    255 PE   Allocated:     0 Mbytes      0 PE   Free     :  1020 Mbytes    255 PE   PE size  :     4 MbytesVolume Group: /dev/vg12*************   Physical Volumes:   /dev/dsk/c4t0d2   /dev/dsk/c5t1d2        Alternate Link   Volume group disk space usage:   Total    : 10248 Mbytes   2562 PE   Allocated: 10076 Mbytes   2519 PE   Free     :   172 Mbytes     43 PE   PE size  :     4 Mbytes
备注:其实用该收集工具就是在shell中执行不通的程序得到,如执行:
ioscan -fn;
mstm;
cstm;
sam;
等等。




27、重新启动机器
#reboot
#shutdown

28、关闭机器
#shutdown -hy 0
#init 0


28、unix的集中运行的模式
多用户模式,但用户模式等等6种。
用如下命令可以看看它的运行模式:
#who -r

29、普通的对话
#wall "hello!"  (广播hello这个消息)
#banner "hello!"(放大hello这个消息)
#banner "hello!"|more (放大hello消息后再来广播它)

30、看当前的登录名
#logname

31、看所有登录用户
#whoiam

32、看登录用户在干什么
#whodo

33、看看进程
ps -ef|grep root  (看root用户的进程,有时候console上执行的进程不能
够停止的话,那么就将console进程进程杀死,因为该进程是其它进程的
父进程。)


34、webconsole的设置
HP Secure Web Console 的配置与维护
   HP 的Secure Web Console 为系统管理员提供了一个基于Web的、更为 方便的接入Console的手段。系统管理员只需在任意一台能够ping通Web Console的PC上,启动网络浏览器,输入Web Console的IP,即可得到服务器Console的界面。
配置Web Console,应按以下步骤:
1)初始化Web Console:
1/将Web Console接入局网。其预设置的IP地址为192.0.0.192。
2/在您的PC上,运行以下命令:
        route add 192.0.0.192 Local_IP_address
3/确保能够ping 192.0.0.192。
4/在PC上运行网络浏览器,输入URL:http://192.0.0.192,得到Web Console配置菜单。按菜单提示输入Admin Account 用户名和密码,将其IP改为本局网IP地址(确保IP不要重复)和子网掩码。
2)使用 Web Console
1/用普通Console的串口线,一端接服务器Local Console口,另一端接 Web Console 的串行口。
2/在PC的浏览器上,输入 Web Console当前的IP地址。即进入其LOGIN窗口,按要 求输入在配置时创立的Admin Account用户名和密码;则进入服务器Console界面, 用鼠标点击Access Console,黑色的Console窗口出现在屏幕右方;点击In/Out可放 大Console窗口。

35、demo进程的位置
/etc/rc3.d/中的文件在系统启动的时候便可以将进程拉起来。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7316690/viewspace-201678/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7316690/viewspace-201678/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值