1. Community Tip: Please Give Thanks to Those Sharing Their Knowledge.
    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.
  2. Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)
    Click the link above 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 notice will disappear after you have made at least 3 posts.

Automatically add 'Yes' answer at TSM server prompt

Discussion in 'Scripting' started by BUR-admin, Jul 6, 2012.

  1. BUR-admin

    BUR-admin Active Newcomer

    Joined:
    Jul 6, 2012
    Messages:
    5
    Likes Received:
    0
    Occupation:
    Backup Administrator
    Location:
    Hungary
    Hi,

    Our task to delete schedules in case of many TSM nodes.

    I created a VBA script to build TSM command lines in MS Excel. I copy the commands from EÍxcel and paste to TSM CL in batch.

    The collocation group delete is OK, because it isn't ask for approval.

    In case of schedule delete ask for 'y' to delete.

    I tried add to 'y' in excel but the TSM command line dislike it.

    Anybody an idea how to add this 'y?

    Thank you,
    Zsolt
     
  2.  
  3. Jeroen

    Jeroen ADSM.ORG Senior Member

    Joined:
    Oct 2, 2002
    Messages:
    363
    Likes Received:
    14
    Occupation:
    AIX + storage administrator
    Location:
    netherlands
    if you could get the the commands in flat file on the TSM server host, you could run
    macro /local_path/file
     
    BUR-admin likes this.
  4. BUR-admin

    BUR-admin Active Newcomer

    Joined:
    Jul 6, 2012
    Messages:
    5
    Likes Received:
    0
    Occupation:
    Backup Administrator
    Location:
    Hungary
    I tried and working!

    From a simple .mac file accepted the command without y/n confirmation!

    Thanks a lot!
     
  5. hogmaster

    hogmaster ADSM.ORG Senior Member

    Joined:
    Nov 9, 2002
    Messages:
    530
    Likes Received:
    22
    Occupation:
    Storage engineer
    Another quick fix when working with textfiles like this is to add a line wity just the letter y after your command

    DEL SCHED DOM SCHED1
    y
    DEL SCHED DOM SCHED2
    y
    ....
     
  6. BUR-admin

    BUR-admin Active Newcomer

    Joined:
    Jul 6, 2012
    Messages:
    5
    Likes Received:
    0
    Occupation:
    Backup Administrator
    Location:
    Hungary
    Thanks for other idea.

    I really surprised that in case of the first hint the TSM has eaten the command line without confirmation. It is a positive impression about TSM in my case.

    Just theoritically, what if somebody dismiss 100 nodes by a mistake...?

    thanks again.
     
  7. smajl

    smajl ADSM.ORG Senior Member

    Joined:
    Dec 10, 2009
    Messages:
    169
    Likes Received:
    20
    Location:
    Brno
    add option -nocommit (or nocomit ?) to dsmadmc

    dsmadmc -id=ADMIN -pa=ADMIN -noc halt
     

Share This Page