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.

Odd situation

Discussion in 'Scripting' started by november, Jul 6, 2009.

  1. november

    november New Member

    Joined:
    Sep 30, 2008
    Messages:
    23
    Likes Received:
    0
    Hi all,

    I have a strange situation. I used my old scripts from version 5.5 in version 6.1. Until now nothing much, all of them are administrative commands and they run smoothly, thou when i use a script that call other scripts in administrative scripts they fail. Really odd.

    I have a script that stops diskpool migration, backup TSM DB, copy stgp, create a DB Snapshot, copy device conf and volhist and last of them, delete volhist. They all run ok separated, but calling them in a administrative scripts they dont run... i have a felling thats a bug when calling a script in a script.

    Cheers
     
  2.  
  3. DanGiles

    DanGiles Senior Member

    Joined:
    Oct 25, 2002
    Messages:
    570
    Likes Received:
    10
    Occupation:
    Sr. Storage Admin
    Location:
    Toronto, Ont. Canada
    I couldn't find any APARs on this. How do you kick off the individual scripts from the master script? Perhaps you can paste a snippit of your master script here so we can take a look at it.
     
  4. november

    november New Member

    Joined:
    Sep 30, 2008
    Messages:
    23
    Likes Received:
    0
    Hi again,

    So my administrative task calls this scripts:

    RUN MIGRATION_STOP
    RUN BACK_TSMDB
    RUN BACK_DISKPOOL
    RUN BACK_ON_SITE_POOL
    RUN SNAPSHOT_TSMDB
    RUN BACK_VOL_HISTORY
    RUN BACK_DEVCONFIG
    RUN DEL_VOL_HISTORY

    And this is what they do:

    MIGRATION_STOP
    UPDATE STGPOOL #DISKPOOL#L HIGHMIG=90 LOWMIG=10

    BACK_TSMDB
    BACKUP DB DEVCLASS=#TAPECLASS# TYPE=FULL SCRATCH=YES WAIT=YES

    BACK_DISKPOOL
    BACKUP STGPOOL #DISKPOOL# OFF_SITE_POOL MAXPROCESS=1 PREVIEW=NO WAIT=YES

    BACK_ON_SITE_POOL
    BACKUP STGPOOL #ONSITEPOOL# #OFFSITEPOOL# MAXPROCESS=1 PREVIEW=NO WAIT=YES

    SNAPSHOT_TSMDB
    BACKUP DB DEVCLASS=#TAPECLASS# TYPE=DBS SCRATCH=YES WAIT=YES

    BACK_VOL_HISTORY
    BACKUP VOLHISTORY FILENAMES="#VOLHISTPATH#"

    BACK_DEVCONFIG
    BACKUP DEVCONFIG FILENAMES="#DEVCONFIGPATH#"

    DEL_VOL_HISTORY
    DELETE VOLHISTORY TODATE=today-1 TYPE=DBBACKUP
    DELETE VOLHISTORY TODATE=today-1 TYPE=DBS

    Thanks in advance!
     
  5. BBB

    BBB Moderator

    Joined:
    Feb 13, 2007
    Messages:
    2,076
    Likes Received:
    19
    Location:
    Brisbane, Australia
    Whats in your activity log when you run your admin script?
     
  6. nezih

    nezih Senior Member

    Joined:
    Oct 1, 2002
    Messages:
    765
    Likes Received:
    9
    Location:
    istanbul
    keeping only last copy of your tsm dbb and dbs's it's a courage!
     
  7. MatthewWarren

    MatthewWarren New Member

    Joined:
    Dec 11, 2003
    Messages:
    11
    Likes Received:
    0
    Do none of the run commands get executed? some? does it stop at a particular script each time?
     

Share This Page