Solaris System Configuration
# system configuration/usr/platform/`uname -i`/sbin/prtdiag -v
sysdef
# Display processor type, speed
psrinfo -v
# Display the device list (and drivers attached to devices)
prtconf -D
# HD info(vendor, RPM, capacity)
iostat -E
# Display the number of used and free i-nodes
df -F ufs -o i
# print the version of OBP
prtconf -V
/usr/platform/`uname -i`/sbin/prtdiag -v | grep OBP
# print the version of Open Windows
showrev -w
# Printing disk geometry and partition info
su - root
prtvtoc /dev/rdsk/c0t0d0s0
# Find out a package which a file belongs to
pkgchk -l -p /usr/lib/sendmail
# Display processes with the highest CPU utilization
ps -eo pid,pcpu,args | sort +1n
# Display processes with the highest memory usage
ps -eo pid,vsz,args | sort +1n
# Examining gcc behavior
gcc -v -x c /dev/null
#Display the version of CDE
/usr/ccs/bin/what /usr/dt/bin/dtmail
# Display the version of BIND
nslookup -class=chaos -q=txt version.bind ns0.optix.org
dig @ns-tk021.ocn.ad.jp version.bind chaos txt
#lists the use/totalin local file systems stored on physical disks, but it does not include /proc virtual file system, the floppy disk, or swap space.
df -lk | egrep -v "Filesystem|/proc|/dev/fd|swap" | awk '{ total_kbytes += $2 } { used_kbytes += $3 } END { printf "%d of %d kilobytes in use.\n", used_kbytes, total_kbytes }'
# Checking whether it's running in 32-bit mode or 64-bit mode
.64-bit mode
isalist -v
isainfo -v
>>64-bit sparcv9 applications
>>32-bit sparc applications
.32-bit mode
isalist -v
isainfo -v
>>32-bit sparc applications
# Verifying a route to a specified network
route -n get xxx.yyy.zzz.0
# patch applied on the system
showrev -p
# exported file system on NFS server
showmount -e NFS_SERVER
# display current run level
who -r
Labels: Unix Command

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home