Solaris中獲取硬體以及系統配置資訊

2021-09-22 09:22:41 字數 787 閱讀 7247

cpu資訊檢視

1.cpu個數檢視

物理cpu個數

/usr/sbin/psrinfo -p 用來列印物理cpu的個數

虛擬cpu個數(多核cpu時有參考價值)

psrinfo -v 可以檢視虛擬cpu個數與執行狀態

/usr/sbin/prtconf 在結尾部分有列印

2.cpu執行頻率廠商檢視

/usr/sbin/prtdiag 會根據bios配置資訊列印出機器廠商和cpu資訊

prtconf -v 結尾列印cpu資訊時會有「

name='brand-string' type=string items=1

value='intel(r) core(tm)2 quad cpu    q8300  @ 2.50ghz'」這樣的資訊。

記憶體資訊檢視

1.記憶體大小

prtconf | grep 'memory'

硬碟資訊檢視

1.硬碟廠商和大小

/bin/iostat -e

結果中有「model: wdc wd5000aaks- revision:  serial no:      wd-wcawfc0 size: 500.10gb <500101152768 bytes>」,表示這個硬碟是西數藍盤wd5000aaks 500g。

2.硬碟分割槽使用情況

df -h

系統體系架構

/bin/showrev

如何獲取iphone的硬體版本以及系統資訊

reference 獲取iphone的系統資訊使用 uidevice currentdevice 資訊如下 uidevice currentdevice systemname 系統名稱,如iphone os uidevice currentdevice systemversion 系統版本,如4.2...

如何獲取iphone的硬體版本以及系統資訊

reference 獲取iphone的系統資訊使用 uidevice currentdevice 資訊如下 uidevice currentdevice systemname 系統名稱,如iphone os uidevice currentdevice systemversion 系統版本,如 4....

從C 中讀取硬體以及系統資訊

using system using system.collections.generic using system.componentmodel using system.data using system.drawing using system.text using system.window...