Archive for December, 2008

Solaris basic administartion commands

December 2, 2008

==Displaying current run level==

who -r

==Checking whether 32 or 64 bit mode==

isalist -v

==Display the device list==

prtconf -D


To view processor info


To view no of process currently online

psrinfo or psrinfo -v

==Find out a package which a file belong to==

pkgchk -l -p /usr/bin/which


Viewing attached HDD

format </dev/null or iostat -E

printing disk geometry and partition info of a hdd-

prtvtoc /dev/dsk/c1t4d0s0

If BIOS detect ur hdd but OS not showing partition table then run

devfsadm -c disk


To reconfig display


==NIC administration==

dladm show-dev

ndd -get /dev/rtls0 link_status

==Displaying processes with highest CPU usage-==

ps -eo pid,pcpu,args | sort +1n

==Displaying processes with highest memory usage==

ps -eo pid,vsz,args |sort +1n