CommVault Forums – stop and start services on Unix (solaris 10)

If you are running simpana (OEM CommVault), then the commands are as follows: Stops services: # simpana stop Starts services # simpana start Bounces services… (stops then immediately restarts) # simpana restart Displays service status (Running has PID, stopped has N/A) # simpana list Displays installed environment # simpana status For Hitachi Data Systems replace […]

Find files newer than x days

# make a file dated Jan 25 – you change it to what you need touch -t 201101250000 dummy find /path/to/files -newer dummy -exec ls -l {} \; via Find files newer than x days – The UNIX and Linux Forums.

Solaris PATH

Check the following .profile /etc/profile /etc/default/login

Awk Tips Tricks

Awk to sort by line length: $ wc -l /usr/share/dict/words 483523 /usr/share/dict/words $ awk ‘{ print length(), $0 | “sort -n” }’ /usr/share/dict/words Remove blank lines and print the 7th field awk ‘NF > 1 {print $7}’ input Quick Combo Demonstration: # cat /tmp/freemem.drmets total used free shared buffers cached Mem: 125 9 115 0 […]

Find large files Solaris

find /tmp -type f -print | xargs ls -l | sort -r -n -k 5,5 | head -10 du -ko / |sort -r -n | head -10 du -sh *

Fsck

UX:vxfs fsck: WARNING: V-3-20836: file system had I/O error on meta-data. log replay in progress log replay failed to clean file system file system is not clean, full fsck required full file system check required, exiting .. # fsck -F vxfs -o full -o nolog -y /dev/dsk/rlvol6