有幾個簡單、有用的指令,可以很容易的知道SUN Solaris 作業系統的資訊,例如是 32-bit 或 64-bit 版本。
1.機器是否支援64-bit的作業系統?
目前Sun的機器只要是屬於UltraSPARC平台的話,就是有支援64-bit的作業系統。
$/bin/uname -m
sun4u
2.知道所執行的作業系統版本是32-bit 或 64-bit?
$/bin/isainfo -v
64-bit sparcv9 applications
32-bit sparc applications
以上訊息表示,它是執行 64-bit 的,否則它會只出現32-bit那一行而已。
3.顯示現行系統相關訊息:
$/bin/showrev -s apsvr01
Hostname: apsvr01
Hostid: 84xx829x
Release: 5.10
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain:
Kernel version: SunOS 5.10 Generic_120011-14
4.系統安裝了多少的記憶體數量?
$/usr/sbin/prtconf | head -2
System Configuration: Sun Microsystems sun4u
Memory size: 4096 Megabytes
5.知道CPU的速度及數量:
$psrinfo
0 on-line since 03/27/06 11:11:53
1 on-line since 03/27/06 11:11:53
完整的資訊:
$psrinfo -v
Status of virtual processor 0 as of: 10/14/08 11:30:41
on-line since 03/27/06 11:11:53.
The sparcv9 processor operates at 1280 MHz,
and has a sparcv9 floating point processor.
Status of virtual processor 1 as of: 10/14/08 11:30:41
on-line since 03/27/06 11:11:53.
The sparcv9 processor operates at 1280 MHz,
and has a sparcv9 floating point processor.