Handy commands (Solaris)

iostat -xPnce iostat -xsn psrinfo psradm /usr/platform/sun4u/sbin/prtdiag -v or /usr/platform/`uname -m`/sbin/prtdiag
 * Per partition io info:-
 * continuing iostat info to see what's in use:
 * Processor status:-
 * View system config:-

script fuser pkgchk -l -d blah.pkg pkgadd -R /usr/local/blah/ -d blah.pkg prtvtoc /dev/dsk/c0t0d0s0 | fmthard -s - /dev/rdsk/c0t1d0s0 getent hosts www.test.co.uk time tar cf - `\ls -A|egrep -v 'lost|proc'` | ssh 172.22.228.67 "cd /a;tar xf -" luxadm led_on find / -perm -u+s -exec pkgchk -p {} \; | more umount /etc/mnttab chmod 444 /etc/mnttab mount -F mntfs mnttab /etc/mnttab
 * Capture console output:-
 * Show pid accessing file structure:-
 * List package contents:-
 * Install package under alternate root (finish scripts will probably fail):-
 * Copy VTOC between disks:-
 * Perform host lookup using naming service (ie obeying nsswitch.conf):-
 * Clone a box with tar (obviously it's more involved that just this):
 * Flash a disk light using luxadm
 * Find all suid files modifiled since package install (or not installed from pkg)
 * Fix permisions on /etc/mnttab