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.

Script - Command Line

Discussion in 'Command Line Administrator Client' started by girreis, Feb 14, 2011.

  1. girreis

    girreis New Member

    Joined:
    Feb 11, 2011
    Messages:
    110
    Likes Received:
    1
    Hi,

    How to run a script with the TXT extension using the TSM command line, example: script.txt

    Thank you for your attention,
    Ramon
     
  2.  
  3. neerajkgupta

    neerajkgupta New Member

    Joined:
    Nov 3, 2005
    Messages:
    42
    Likes Received:
    2
    run script.txt
     
  4. girreis

    girreis New Member

    Joined:
    Feb 11, 2011
    Messages:
    110
    Likes Received:
    1
    neerajkgupta,

    Has failed, as follows:

    tsm: PRRJ>run script.txt
    ANR1455E RUN: Command script SCRIPT.TXT does not exist.
    ANS8001I Return code 11.

    Thanks,
    Ramon
     
  5. Raakin

    Raakin Senior Member

    Joined:
    Aug 12, 2008
    Messages:
    373
    Likes Received:
    6
    As far as I know, TSM does not or can not run scripts outside of TSM defined scripts.

    If the contents are TSM commands, then you could define a new TSM script and basically copy and paste the contents of that *.txt script. Then if you happen to name the script script.txt, then run the script as neers mentioned.
     
  6. neerajkgupta

    neerajkgupta New Member

    Joined:
    Nov 3, 2005
    Messages:
    42
    Likes Received:
    2
    you need a complete path for the script.txt.
     
  7. Raakin

    Raakin Senior Member

    Joined:
    Aug 12, 2008
    Messages:
    373
    Likes Received:
    6
    Using the complete path did not work for me.
    I still think TSM does not run scripts that are not defined by TSM.
     
  8. erwanns

    erwanns New Member

    Joined:
    Mar 29, 2006
    Messages:
    113
    Likes Received:
    4
    Location:
    France
    Hi all,

    You have to make the difference between scripts that must be defined and are in the database and macros that are command files that must reside locally on filesystem where dsmadmc is run (and can use a full path name).
    See HELP DEFINE SCRIPT, HELP RUN & HELP MACRO
     
  9. sandeepkontham

    sandeepkontham New Member

    Joined:
    Mar 14, 2009
    Messages:
    284
    Likes Received:
    3
    Occupation:
    Storage admin
    Location:
    Hyderabad,India
    Macro file_name */ file of the local system/*
    run script_name */script defined in TSM DB/*
     
  10. Raakin

    Raakin Senior Member

    Joined:
    Aug 12, 2008
    Messages:
    373
    Likes Received:
    6
    And this is why I love adsm.org... thanks for the 'new to me' command. Using 'macro' <full path & file name> worked in my test.
     

Share This Page