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.

Automatically add 'Yes' answer at TSM server prompt

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

  1. BUR-admin

    BUR-admin New Member

    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 Senior Member

    Joined:
    Oct 2, 2002
    Messages:
    346
    Likes Received:
    12
    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 New Member

    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 Senior Member

    Joined:
    Nov 9, 2002
    Messages:
    518
    Likes Received:
    20
    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 New Member

    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 Senior Member

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

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

Share This Page