免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
打印 上一主题 下一主题

下面是查看HP小型机的信息的命令集 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2006-12-16 18:42 |只看该作者
22、配置远程维护

如何确定是否已经配置了远程维护,远程维护是通过硬件来配置的,
只要远程维护的串口没有损坏,哪怕你是重新安装,在小型机前面板上的
remote灯会亮为黄色,黄色的灯一直都是两着的表示可以远程维护串口正常。
但是我们还是需要通过GSP来配置远程维护。

》》》小型机的remote口的配置
ctrl + b
enter
enter
GSP>; ca

这样就出现了对话框,如果你要修改某个参数的话,可以通过该对话框来修改。
通常的值是:
bitrate :9600
flow control :software
terminal type:vt100
modem protocol:CCITT
modem bit rate:9600
flow control :hardware
mode transmit configuration:disable
mode presence:always connected


》》》modem上的配置
AT&F
ATS0=1
AT&WO&Y0
保存退出。

备注:HP公司一般提供了专门的全向modem,名字叫“天幕驰舟”,
modem一定要接在line口上。

论坛徽章:
0
22 [报告]
发表于 2006-12-16 18:42 |只看该作者
23.一个超级命令
#set_parms
它后面带的参数可以是如下
date_time:设者时间;
ip_address:设置网卡地址;
hostname:设置主机名;
addl_netwrk:设置主机的网关。

24、用户和用户组的添加
方法一:用useradd和groupadd命令来添加;
方法二:修改文件/etc/passwd 和 /etc/group 文件来实现。

论坛徽章:
0
23 [报告]
发表于 2006-12-16 18:42 |只看该作者
25、一个有用的工具是sam
通过sam可以进行各种操作,比如:用户、用户组的管理;逻辑卷组、逻辑卷的管理;内核参数的管理;

论坛徽章:
0
24 [报告]
发表于 2006-12-16 18:42 |只看该作者
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;
等等。

论坛徽章:
0
25 [报告]
发表于 2006-12-16 18:43 |只看该作者
27、重新启动机器
#reboot
#shutdown

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

论坛徽章:
0
26 [报告]
发表于 2006-12-16 18:43 |只看该作者
28、unix的集中运行的模式
多用户模式,但用户模式等等6种。
用如下命令可以看看它的运行模式:
#who -r

论坛徽章:
0
27 [报告]
发表于 2006-12-16 18:43 |只看该作者
29、普通的对话
#wall \"hello!\"  (广播hello这个消息)
#banner \"hello!\"(放大hello这个消息)
#banner \"hello!\"|more (放大hello消息后再来广播它)

论坛徽章:
0
28 [报告]
发表于 2006-12-16 18:43 |只看该作者
30、看当前的登录名
#logname

31、看所有登录用户
#whoiam

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

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

论坛徽章:
0
29 [报告]
发表于 2006-12-16 18:44 |只看该作者
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窗口。

论坛徽章:
0
30 [报告]
发表于 2006-12-16 18:44 |只看该作者
35、demo进程的位置
/etc/rc3.d/中的文件在系统启动的时候便可以将进程拉起来。

36、磁带的使用
写:
tar cvf /dev/rmt/0m /temp/t.sql   //将temp目录下面的t.sql文件备份到磁带0m中;


读:
tar tvf /dev/rmt/0m   //读出磁带0m中的内容;

从磁带上解开tar文件:
tar xvf /dev/rmt/0m/aa.tar ./     //将磁带上的aa.tar文件解开到当前目录下;

当用磁带来启动机器的时候,我们在启动的时候敲击任意键,就可以进入启动的路径,
再输入SEA(search)来搜寻启动的路径,然后就可以找到磁带的路径,如磁带路径为
5号路径,则输入po 5,便可以从磁带启动了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP