Wednesday, September 19, 2007

L2S: Hardware Analysis

On linux, a few minutes in the /proc can provide a huge amount of information about the physical construction of a system. On Solaris, /proc is exclusively process information. Here are a the two most basic hardware interrogation solutions:
# prtconf | grep Mem
Memory size: 512 Megabytes
# iostat –En | egrep -v "Not|Req" | sed "s/[A-Z]/ &/"
c0t0d0     Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
 Model: ST38420A   Rev: 3.05 Serial No: 7AZ0V59C
 Size: 8.62GB <8622415872 bytes>
c0t2d0     Soft Errors: 0 Hard Errors: 1 Transport Errors: 0
 Vendor: LG   Product: CD-ROM CRD-8322B Rev: 1.05 Serial No:
 Size: 0.00GB <0 bytes>

Given that ifconfig -a will give us a good look at the network cards, we can now get a fair look at our hardware.

No comments:

Post a Comment