歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> Solaris下了解系統的狀況

Solaris下了解系統的狀況

日期:2017/2/28 11:17:03   编辑:關於Unix


1、查看正在運行的solaris 10的版本,使用不帶參數的命令 showrev,此命令加選項-r則是另外一個功能:查看目前系統所需要安裝的補丁程序。
root@zsc # showrev
Hostname: zsc
Hostid: 841e69f3
Release: 5.10
Kernel architecture: sun4u //intel架構的服務器輸出不一樣
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain:
Kernel version: SunOS 5.10 Generic_118833-18 //內核版本號
2、查看硬件設備的某些情況,使用命令 prtconfig.
root@zsc # prtconf
System Configuration: Sun Microsystems sun4u //intel,amd cpu的輸出不同
Memory size: 8192 Megabytes //內存為8G
System Peripherals (Software Nodes):

SUNW,Sun-Fire-V490
scsi_vhci, instance #0
packages (driver not attached)
SUNW,builtin-drivers (driver not attached)
………
3、查看本機所連接的磁盤數量,使用命令 format.這個命令也是格式化硬盤的工具。
root@zsc # format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w21000014c39d4d9d,0
1. c1t1d0
/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w21000014c39d4d9b,0
從輸出可以知道此服務器有2個scsi硬盤。
4、查看網絡接口的狀況,使用帶選項的命令 ifconfig –a .
root@zsc # ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
ce0: flags=1000843 mtu 1500 index 2
inet 61.128.x.x netmask ffffff00 broadcast 61.128.x.255
ether 0:14:4f:1e:69:f3 //ce0是網絡接口的名字
ce1: flags=1000843 mtu 1500 index 3
inet 192.168.x.5 netmask ffffff00 broadcast 192.168.x.255
ether 0:14:4f:1e:69:f3 //x是某個具體的數值,安全起見這樣處理
從輸出可知,本機有2個網絡接口。如果網絡接口配置錯誤或沒有激活,將有可能在輸出中看不見接口名稱及狀態。
5、查看cpu的個數,使用不帶參數的命令mpstat。
root@db890 ~#mpstat //這個命令也是查看CPU負載的工具
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 0 1 136 3 1 67 1 1 6 1 93 0 1 4 94
1 0 1 101 25 22 67 1 1 6 1 85 0 1 4 95
2 0 1 121 3 1 68 1 1 6 1 91 0 1 4 95
3 0 1 129 3 1 69 1 1 6 1 95 0 1 4 95
4 0 1 126 3 1 69 1 1 5 1 95 0 1 4 95
5 0 1 125 129 126 66 1 1 5 1 90 0 1 4 95
6 0 1 123 4 1 68 1 1 6 1 92 0 1 4 95
7 0 1 105 242 140 65 1 1 7 1 89 0 0 4 95
從輸出可知此服務器有8個cpu,此處按0-7的序號開始;有些輸出不會以順序序號開始,但可以從行數得知cpu數目(有多少行就有多少個cpu)。
Copyright © Linux教程網 All Rights Reserved