Solaris – useful commands.

##
/usr/platform/`uname -i`/sbin/scadm help (can reset console)
prtdiag
prtconf
##
to find cdrom on solaris:

ls -al /dev/sr* |awk ‘{print “/” $11}’
##————————————————-
##
## FIND commands
## To find a specific file:
find / -name -type f
## To find files of a certain size and list them, with sizes:
find `directory’ -size +1024k -exec du -h {} \;
##
##
##
If a disk is failed in veritas:

/usr/lib/vxvm/bin/vxreattach (failed drive) c1t3d0
vxvol -fg appdg start (failed filesystem) admin1
fsck -o full /admin1
#
##then mount the drives
##
##
to route something through a specific nic (legato in this case)

route -p add 10.55.170.0/24 10.250.251.1 -ifp e1000g2
##

Leave a Reply

Your email address will not be published. Required fields are marked *