Showing posts with label Scripting. Show all posts
Showing posts with label Scripting. Show all posts

Saturday, June 16, 2012

Viewing file systems that 90% and more using awk & sed

This works with AIX
df -g | egrep -v "Filesystem|proc|tmp" | sed 's/\%//' | awk '$4 >= 90 {print $4 "%\t" $7}'
df -k | sed 1d | awk '$4>90 {print}'
This works with Solaris and Linux
df -k | egrep -v "proc|fd|cdrom|mnttab|run|tmp|Filesystem" | sed 's/\%//' | awk '$5 >= 90 {print $5 "%\t" $6}'

Wednesday, April 6, 2011

Bash Scripting

1- http://bashshell.net/

Monday, March 28, 2011

Links

1- http://aixwithdipakwarade.blogspot.com/
2- http://www.sys-admin.net/
3- http://unixarticles.com/
4- http://www.rootvg.net/
5- http://www.torontoaix.com/

Saturday, March 26, 2011

Trouble TSM connections

Link : http://publib.boulder.ibm.com/tividd/td/TSMM/SC32-9103-01/en_US/HTML/comm_err_adm_ctr.html

Verify the TSM port is correct

Check to see what port the TSM server is using. You can issue the QUERY OPT TCPPORT command on the server to determine the server port.

Make sure the port used in the Administration Center is the same port the server is running on. Go to the directory where the administrative client is installed. Then issue dsmadmc with parameters matching those in the connection settings for the Administration Center. This command can also be issued from the server console.

dsmadmc -id= -pass= -tcpport= -tcps=


tsm: SERVER1>QUERY OPT TCPPORT

Server Option Option Setting
----------------- --------------------
TCPPort 1500

tsm: SERVER1>

Monday, March 7, 2011

Get number of by state tape in TSM

SELECT COUNT(*) FROM libvolumes WHERE status='Scratch'

SELECT COUNT(*) FROM libvolumes WHERE status='Private'

Monday, June 21, 2010

Color your bash prompt and set title for your xterm


you can color your bash prompt
add the following line to your
PS1='\[\e[0;32m\]\u@\h\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]'

~/.bash_profile

or
~/.bashrc


to set title for your xterm
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'