Tuesday, January 22, 2008

Handy Solaris commands ...

This was a task given to me to collect all the informations about our servers like ... Hardware details, Processor model, Speed,Memory size etc ...

There are some commands which are useful to gather these information ...
(not necessary to have SU permission)

To collect processor model & Speed informations ...
alutest@aluqa2.nyc ~> psrinfo -pv
The physical processor has 2 virtual processors (0 1)
x86 (chipid 0x0 AuthenticAMD family 15 model 65 step 3 clock 2793 MHz)
Dual-Core AMD Opteron(tm) Processor 2220
The physical processor has 2 virtual processors (2 3)
x86 (chipid 0x1 AuthenticAMD family 15 model 65 step 3 clock 2793 MHz)
Dual-Core AMD Opteron(tm) Processor 2220

To collect network configration informations ...
alutest@aluqa2.nyc ~> ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
nge0: flags=1000843 mtu 1500 index 2
inet 149.77.44.57 netmask ffffff00 broadcast 149.77.44.255
lo0: flags=2002000849 mtu 8252 index 1
inet6 ::1/128
nge0: flags=2000841 mtu 1500 index 2
inet6 fe80::214:4fff:fe7d:b74/10

To collect hardware informations :
alutest@aluqa2.nyc ~> prtconf
System Configuration: Sun Microsystems i86pc
Memory size: 8192 Megabytes
System Peripherals (Software Nodes):

i86pc
scsi_vhci, instance #0
isa, instance #0
asy, instance #0
motherboard (driver not attached)
pci, instance #0
pci10de,5e (driver not attached)
pci10de,cb84 (driver not attached)
pci10de,cb84 (driver not attached)
.....