斑竹网络专注为中小企业客户提供以管理服务为核心的IT全方位服务 https://www.sysadm.cn
分类: SOLARIS
2014-01-09 14:43:23
五、solaris 查看硬件信息的命令
1. 获得系统信息
# uname -X
System = SunOS
Node = websphere-test
Release = 5.8
KernelID = Generic_117350-11
Machine = sun4u
BusType =
Serial =
Users =
OEM# = 0
Origin# = 1
NumCPU = 2
2. 查看CPU信息
# psrinfo -v 0
Status of processor 0 as of: 01/10/08 14:39:37
Processor has been on-line since 01/04/08 12:38:36.
The sparcv9 processor operates at 1050 MHz,
and has a sparcv9 floating point processor.
或者用下列方法:
/usr/platform/sun4u/sbin/prtdiag v
System Configuration: Sun Microsystems sun4u Sun Fire 480R
系统时钟频率:150 MHz
内存大小:4096兆字节
========================= CPUs ===============================================
Run E$ CPU CPU
Brd CPU MHz MB Impl. Mask
--- ----- ---- ---- ------- ----
A 0 1050 8.0 US-III+ 2.3
A 2 1050 8.0 US-III+ 2.3
3. 查看内存大小命令
# prtconf |grep Memory
Memory size: 4096 Megabytes
或者用:
/usr/platform/sun4u/sbin/prtdiag –V 命令
4. 查看硬盘信息
iostat -E
sd0 Soft Errors: 0 Hard Errors: 6 Transport Errors: 0
Vendor: TOSHIBA Product: DVD-ROM SD-C2612 Revision: 1011 Serial No: 04/17/02
Size: 18446744073.71GB <-1 bytes>
Media Error: 0 Device Not Ready: 6 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
ssd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE Product: ST336607FSUN36G Revision: 0207 Serial No: 0322A1VX07
Size: 36.42GB <36418595328 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
ssd1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE Product: ST336607FSUN36G Revision: 0207 Serial No: 0322A1W0RJ
Size: 36.42GB <36418595328 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
六、solaris 要进入光盘启动的方法
正常情况下,solaris不会自动从光盘启动的。也不像一般的I386的机器,可以修改CMOS中的启动顺序,不让其从光盘启动。在已经安装了系统的机器上,让其从光盘上引导的方法是:
在启动的开始时,按stop+A键,然后进入到OK提示符的模式。在这里输入 boot cdrom 便可以从光盘上来引导机器了。
七、Solaris 设置路径自动补全和查看历史命令
在新装的Solaris 系统中,其root帐号所使用的shell是/sbin/sh 这时候在终端上,不能对路径自动补全,而且不能用户退格键,同时没有查看历史命令的功能。如在这种环境下操作,会出现如下效果:
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
# sda^H^H^H^H^H^H^Hasda^[[A^[[A^[[Aasdfas
sda^H^H^H^H^H^H^Hasda^[[A^[[A^[[Aasdfas: not found
这时只要修改root用户的shell,就可以达到linux所有的路径自动补全,查看历史命令功能。具体操作是:修改/etc/passwd 文件,将root对应的那一行的最后列由:
root:x:0:1:Super-User:/:/sbin/sh修改成:root:x:0:1:Super-User:/:/bin/bash即可