如何查看solaris系統的版本和位數大綱

最近一些朋友問小編如何查看solaris系統的版本和位數?今天小編將爲大家分享查看solaris系統的版本和位數的方法!希望對大家會有幫助,有需要的朋友一起去看看吧

如何查看solaris系統的版本和位數大綱

我知道的有下面的`三種方法,showrev、uname和查看/etc/release。

(1)命令showrev

show machine, software revision, and patch revision information

(2)命令uname

print name of current system.參數 -a :Prints basic information currently available from the system.

(3)查看/etc/release

演示如下:

bash-3.00$ showrev

Hostname: sunv890

Hostid: 84b7fe80

Release: 5.10

Kernel architecture: sun4u

Application architecture: sparc

Hardware provider: Sun_Microsystems

Domain:

Kernel version: SunOS 5.10 Generic_137111-08

bash-3.00$ uname -a

SunOS sunv890 5.10 Generic_137111-08 sun4u sparc SUNW,Sun-Fire-V890

bash-3.00$ cat /etc/release

Solaris 10 1/06 s10s_u1wos_19a SPARC

Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.

Use is subject to license terms.

Assembled 07 December 2005

bash-3.00$

由上可以看出該系統爲Sun Sparc平臺的5.10系統。

如何查看solaris系統是32位還是64位的?

使用isainfo -v命令

如果是運行在32位模式下, 則有如下輸出:

32-bit sparc applications

如果是運行在64位模式下, 則有如下輸出:

64-bit sparcv9 applications

32-bit sparc applications

注意:

從Solaris10開始支持AMD64和EM64(intel)處理器,即通常說的x64,同樣能用上述命令來判斷。Solaris10 的x86和x64 使用同一個安裝包,即Solaris_x86_ga_u2_...。

bash-3.00$ isainfo -b -v

64-bit sparcv9 applications

vis2 vis popc

bash-3.00$

由上可知道,solaris系統爲64位的。

另:

psrinfo -v 查看cup的狀態

mpstat 可以列出多cpu負載的狀態

prtconf | grep 'Memory' 可以查看內存的多少.

prtdiag -v 顯示系統配置信息