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
##

Solaris – NFS Mounts

Edit /etc/hosts and /etc/vfstab on the machine which needs the filesystem mounted.

Hosts file should have servername and IP of the host server. Your vfstab is for automounting the filesystem.
Edit the /etc/hosts and /etc/dfs/dfstab files on the server which hosts the filesystem.

Hosts file should have the servername and IP of the client system. The dfstab should have the entry for the client.

On the host system, share the filesystem:

shareall

Mount the filesystem on the client:

mount -F nfs server:/filesystem /client/filesystem/name