• VCS, Vertias 01-28-2011 Comments Off
    hares -display  -attribute Address -group GROUP_NAME | tail -1| awk '{print $4}'
    
  • VCS, Vertias 01-27-2011 Comments Off
    hastatus -sum | grep FAULT| awk '{print "hagrp -clear", $2, " -sys ", $3}'| sh
    
  • VCS, Vertias 01-21-2011 Comments Off
    hastatus -sum | grep ^B|grep OFFLINE|awk '{print $2, $6}'|sort | uniq -c|sort -n
  • Spiritual 01-17-2011 Comments Off

    I could not do without thee
    O Savior of the lost,
    whose precious blood redeemed me
    at such tremendous cost.
    thy righteousness, thy pardon
    thy precious blood, must be
    my only hope and comfort,
    my glory and my plea.

    I could not do without thee,
    I cannot stand alone,
    I have no strength or goodness,
    no wisdom of my own;
    but thou, beloved Savior,
    art all in all to me,
    and weakness will be power
    if leaning hard on thee.

    I could not do without thee,
    for O the way is long,
    and I am often weary,
    and sigh replaces song:
    how could I do without thee?
    I do not know the way;
    thou knowest, and thou leadest,
    and wilt not let me stray.

    I could not do without thee,
    O Jesus, Savior dear;
    e’en when my eyes are holden,
    I know that thou art near.
    How dreary and how lonely
    this changeful life would be,
    without the sweet communion,
    the secret rest with thee!

    I could not do without thee;
    no other friend can read
    the spirit’s strange deep longings,
    interpreting its need;
    no human heart could enter
    each dim recess of mine,
    and soothe, and hush, and calm it,
    O blessèd Lord, but thine.

    I could not do without thee,
    for years are fleeting fast,
    and soon in solemn oneness
    the river must be passed;
    but thou wilt never leave me,
    and though the waves roll high,
    I know thou wilt be near me,
    and whisper, “It is I.”

  • Scripts 01-14-2011 Comments Off
    #!/bin/sh
    
    echo > done.out
    for line in `cat data.txt`; do
    
            echo
            echo "#++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
            user=`echo $line | awk -F':' '{print $1}'`
            dir='/ftp/ccsftp/'`echo $line | awk -F':' '{print $2}'`
            passwd=`mkpasswd -l 8 -d 2 -C 2 -s 0`
            echo $user : $dir : $passwd >> done.out
            echo useradd -g ccsftp -d $dir -s /usr/bin/rssh $user
            echo "echo $passwd | passwd --stdin $user"
            echo "pure-pw useradd $user -u 518 -g 519 -d ${dir} -N 4000"
            echo "pure-pw usermod $user -d ${dir}"
            echo "chown 518:519 ${dir}"
            echo pure-pw mkdb
            echo "#++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
            echo
    
    done
    
  • VCS, Vertias 01-13-2011 Comments Off


    hagrp -flush GROUP -sys SYS
    hares -probe RESOURCE -sys SYS

  • VCS, Vertias 01-13-2011 Comments Off
    export GROUP=SERVICE_GROUP
    
    for RESOURCE in `hares -display -attribute MountOpt -group ${GROUP} | awk '{print $1}' | grep -v ^\#`; do
    	echo "hares -modify ${RESOURCE} MountOpt 'mincache=direct,convosync=direct'"
    done | sh
    
    haconf -dump
    
  • VMWare 01-12-2011 Comments Off

    DATASTORES: vmtemplates/iso/RedHat/rhel-5.1-server-i386-dvd.iso

  • cat /dev/raw/raw46 | od -a -N128

  • Monitoring, Scripts 12-29-2010 Comments Off

    http://oracle.3dub.com/scripts/tcpdump.sh.txt