Wednesday, September 24, 2008

System info in solaris and linux

If you work for a non microsoft shop, its highly likely that you would develop and/or deploy your applications in linux or solaris systems. Our windows to the target system is the ubiquitous command line via ssh. Here are some of the commands that I find useful to get the details of target system.


Solaris commands
Hardware deatails
Processor /usr/sbin/psrinfo -v
Memory /usr/sbin/prtconf -v | grep Memory
HD /usr/sbin/format < /dev/null

Current statistics
memory statistics /usr/bin/vmstat
io statistics /usr/bin/iostat
network statistics /usr/bin/netstat
disk space usage /usr/sbin/df

Process details
list of processes running /usr/bin/ps -aef

memory usage for a given process /usr/bin/pmap processid | grep total

list of ports open for a given process
/usr/proc/bin/pfiles processId | grep "port: portId"


I have listed only the commands. A simple google or map page should give you details about each of the command. I will follow it up with Linux command later.

No comments: