1. Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING) Click the link to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This message will disappear after you have made at least 12 posts. Thank you for your cooperation.

Generating a client action to send an email in unix

Discussion in 'TSM Server' started by Nans, Nov 3, 2011.

  1. Nans

    Nans New Member

    Joined:
    Nov 3, 2011
    Messages:
    5
    Likes Received:
    0
    Hi,

    I'm a newbie to TSM. Can someone help me in generating a client action to email the DR report at a certain point in my server maintenance script? Currently this shell script is executed by a cronjob. I want to in-corporate it in tsm admin script.

    Can you tell me the best way to do this.

    Thanks,
    Nans.
     
  2.  
  3. chad_small

    chad_small Moderator

    Joined:
    Dec 17, 2002
    Messages:
    2,197
    Likes Received:
    43
    Occupation:
    AIX/SAN/TSM
    Location:
    Gilbert, AZ
    The best way to do this is to have the admin script run an update of a client schedule or define a clientact that runs a shell command to create the report and e-mail to the appropriate people.

    for example you could add the following line

    DEF CLIENTACT PRDTSM1 DO=* ACT=COMMAND OBJECT="/usr/local/scripts/tsm-daily-rpt.ksh"
     
    Nans likes this.
  4. Nans

    Nans New Member

    Joined:
    Nov 3, 2011
    Messages:
    5
    Likes Received:
    0
    Thanks Chad for that solution. I have defined this client action in our maintenance script just after the prepare command. Guess, we have to give "wait=yes" for prepare so that once it completes and places the DR report in the folder, we can execute the script to attach and send the report. Let me know if I am wrong.
     

Share This Page