練功房推薦書單

  • 猛虎出柙雙劍合璧版--最新 OCA / OCP Java SE 7 Programmer 專業認證 (電子書)
  • 流浪教師存零股存到3000萬(全新增修版)(書+DVD)
  • 開始在關西自助旅行(京都‧大阪‧神戶‧奈良)(全新增訂版)
  • 不敗教主的300張股票存股術

Solaris Command Reference RSS feed
Forum Index » Solaris
Author Message
andowson

七段學員
[Avatar]

Joined: 2007/1/2
Messages: 709
Location: 台北
Offline
顯示系統Process使用狀態(類似Linux的top指令)
$ prstat

顯示系統組態
$ /usr/platform/`uname -i`/sbin/prtdiag
System Configuration: Sun Microsystems sun4u Sun Fire 480R
系統時鐘頻率:150 MHz
記憶體大小:8192 百萬位元組

========================= CPUs ===============================================

執行 E$ CPU CPU
Brd CPU MHz MB Impl. 遮罩
--- --- --- ---- ------- ----
A 0 1050 8.0 US-III+ 11.0
A 2 1050 8.0 US-III+ 11.0
B 1 1050 8.0 US-III+ 11.0
B 3 1050 8.0 US-III+ 11.0

========================= 記憶體配置 ===============================

邏輯 邏輯 邏輯
MC 記憶庫 記憶庫 記憶庫 DIMM 交插 已交插
Brd ID num 大小 狀態 大小 係數 與
--- --- ---- ------ ----------- ------ ---------- -----------
A 0 0 512MB no_status 256MB 8-way 0
A 0 1 512MB no_status 256MB 8-way 0
A 0 2 512MB no_status 256MB 8-way 0
A 0 3 512MB no_status 256MB 8-way 0
A 2 0 512MB no_status 256MB 8-way 0
A 2 1 512MB no_status 256MB 8-way 0
A 2 2 512MB no_status 256MB 8-way 0
A 2 3 512MB no_status 256MB 8-way 0
B 1 0 512MB no_status 256MB 8-way 1
B 1 1 512MB no_status 256MB 8-way 1
B 1 2 512MB no_status 256MB 8-way 1
B 1 3 512MB no_status 256MB 8-way 1
B 3 0 512MB no_status 256MB 8-way 1
B 3 1 512MB no_status 256MB 8-way 1
B 3 2 512MB no_status 256MB 8-way 1
B 3 3 512MB no_status 256MB 8-way 1

========================= IO 卡 =========================

Bus Max
IO Port Bus Freq Bus Dev,
Type ID Side Slot MHz Freq Func State Name Model
---- ---- ---- ---- ---- ---- ---- ----- -------------------------------- ----- -----------------
PCI 8 B 5 33 33 5,0 ok SUNW,XVR-100 SUNW ,375-3126

顯示CPU速度、型號
$ /usr/sbin/psrinfo -v
Status of processor 0 as of: 10/18/07 22:16:42
Processor has been on-line since 01/15/07 16:27:48.
The sparcv9 processor operates at 1050 MHz,
and has a sparcv9 floating point processor.
Status of processor 1 as of: 10/18/07 22:16:42
Processor has been on-line since 01/15/07 16:27:48.
The sparcv9 processor operates at 1050 MHz,
and has a sparcv9 floating point processor.
Status of processor 2 as of: 10/18/07 22:16:42
Processor has been on-line since 01/15/07 16:27:48.
The sparcv9 processor operates at 1050 MHz,
and has a sparcv9 floating point processor.
Status of processor 3 as of: 10/18/07 22:16:42
Processor has been on-line since 01/15/07 16:27:45.
The sparcv9 processor operates at 1050 MHz,
and has a sparcv9 floating point processor.

顯示周邊設備清單
$ prtconf -D
System Configuration: Sun Microsystems sun4u
Memory size: 8192 Megabytes
System Peripherals (Software Nodes):

SUNW,Sun-Fire-480R
packages
SUNW,builtin-drivers
deblocker
disk-label
terminal-emulator
SUNW,debug
dropins
obp-tftp
kbd-translator
SUNW,i2c-ram-device
SUNW,fru-device
ufs-file-system
chosen
openprom
client-services
options, instance #0 (driver name: options)
aliases
memory
virtual-memory
SUNW,UltraSPARC-III+ (driver name: us)
memory-controller, instance #0 (driver name: mc-us3)
SUNW,UltraSPARC-III+ (driver name: us)
memory-controller, instance #1 (driver name: mc-us3)
SUNW,UltraSPARC-III+ (driver name: us)
memory-controller, instance #2 (driver name: mc-us3)
SUNW,UltraSPARC-III+ (driver name: us)
memory-controller, instance #3 (driver name: mc-us3)
pci, instance #0 (driver name: pcisch)
SUNW,XVR-100, instance #0 (driver name: pfb)
ide, instance #0 (driver name: uata)
disk (driver name: dad)
cdrom (driver name: sd)
sd, instance #0 (driver name: sd)
pci, instance #1 (driver name: pcisch)
pci, instance #2 (driver name: pcisch)
ebus, instance #0 (driver name: ebus)
flashprom
bbc (driver name: bbc)
power (driver name: power)
i2c, instance #1 (driver name: pcf8584)
fru, instance #0 (driver name: seeprom)
fru, instance #1 (driver name: seeprom)
fru, instance #2 (driver name: seeprom)
fru, instance #3 (driver name: seeprom)
fru, instance #4 (driver name: seeprom)
fru, instance #5 (driver name: seeprom)
fru, instance #6 (driver name: seeprom)
fru, instance #7 (driver name: seeprom)
fru, instance #8 (driver name: seeprom)
fru, instance #9 (driver name: seeprom)
fru, instance #10 (driver name: seeprom)
fru, instance #11 (driver name: seeprom)
fru, instance #12 (driver name: seeprom)
fru, instance #13 (driver name: seeprom)
fru, instance #14 (driver name: seeprom)
fru, instance #15 (driver name: seeprom)
fru, instance #16 (driver name: seeprom)
fru, instance #17 (driver name: seeprom)
fru, instance #18 (driver name: seeprom)
fru, instance #19 (driver name: seeprom)
fru, instance #20 (driver name: seeprom)
fru, instance #21 (driver name: seeprom)
fru, instance #22 (driver name: seeprom)
fru, instance #23 (driver name: seeprom)
fru, instance #24 (driver name: seeprom)
fru, instance #25 (driver name: seeprom)
fru, instance #26 (driver name: seeprom)
fru, instance #27 (driver name: seeprom)
fru, instance #28 (driver name: seeprom)
fru, instance #29 (driver name: seeprom)
fru, instance #30 (driver name: seeprom)
fru, instance #31 (driver name: seeprom)
fru, instance #32 (driver name: seeprom)
fru, instance #33 (driver name: seeprom)
nvram, instance #34 (driver name: seeprom)
idprom
fru, instance #35 (driver name: seeprom)
fru, instance #36 (driver name: seeprom)
i2c, instance #0 (driver name: pcf8584)
temperature, instance #0 (driver name: max1617)
temperature, instance #1 (driver name: max1617)
temperature, instance #2 (driver name: max1617)
ioexp, instance #0 (driver name: pcf8574)
ioexp, instance #1 (driver name: pcf8574)
ioexp, instance #2 (driver name: pcf8574)
temperature, instance #3 (driver name: max1617)
ioexp, instance #3 (driver name: pcf8574)
ioexp, instance #4 (driver name: pcf8574)
ioexp, instance #0 (driver name: ssc050)
ioexp, instance #1 (driver name: ssc050)
temperature-sensor, instance #0 (driver name: lm75)
fru, instance #37 (driver name: seeprom)
fru, instance #38 (driver name: seeprom)
fru, instance #39 (driver name: seeprom)
fru, instance #40 (driver name: seeprom)
fru, instance #41 (driver name: seeprom)
rscrtc
rtc, instance #0 (driver name: todds1287)
gpio (driver name: gpio_87317)
pmc (driver name: pmc)
rsc-control, instance #0 (driver name: su)
rsc-console, instance #1 (driver name: su)
serial, instance #0 (driver name: se)
usb, instance #0 (driver name: ohci)
network, instance #1 (driver name: ce)
pci, instance #3 (driver name: pcisch)
network, instance #2 (driver name: ce)
SUNW,qlc, instance #0 (driver name: qlc)
fp (driver name: fp)
disk (driver name: ssd)
fp, instance #0 (driver name: fp)
ssd, instance #0 (driver name: ssd)
ssd, instance #1 (driver name: ssd)
os-io
pseudo, instance #0 (driver name: pseudo)

顯示系統資訊
$ sysdef

檢查作業系統是64-bit還是32-bit
$ isalist -v
sparcv9+vis2 sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc
$ isainfo -v
64-bit sparcv9 applications
32-bit sparc applications

顯示硬碟資訊
$ iostat -E
sd0 Soft Errors: 0 Hard Errors: 2 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: 2 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
ssd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: DK32EJ72FSUN72G Revision: 2Q09 Serial No: 0336W1C5PQ
Size: 73.40GB <73400057856 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: HITACHI Product: DK32EJ72FSUN72G Revision: 2Q09 Serial No: 0336W1939F
Size: 73.40GB <73400057856 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

參考資料:
http://www.optix.org/~dxy/solaris/command/
http://blog.joycode.com/peon/articles/47128.aspx

分享經驗 累積智慧
[WWW]
ofather

九級學員

Joined: 2007/5/22
Messages: 10
Offline
iostat -x 5 2000 | grep nfs
顯示 nfs device 的使用狀態,每 5 分鐘取樣一次,一共取樣 2000
 
Forum Index » Solaris
Go to:   
Mobile view