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.

TSM Client Silent Install script

Discussion in 'TSM Client' started by keteran, Sep 22, 2009.

  1. keteran

    keteran New Member

    Joined:
    Jun 17, 2008
    Messages:
    5
    Likes Received:
    1
    Someone may have already posted something like this but I couldn't find it with a quick search, so here's mine.

    This script stops running schedulers, installs tsm and auto registers with the server. It then associates the client node with a random schedule. It has been tested to work with the 5.5 client.

    Code:
    net stop "TSM Client Acceptor"
    net stop "TSM Client Daemon"
    net stop "TSM Client Acceptor Daemon"
    net stop "TSM Client Scheduler"
    net stop "TSM Scheduler"
    net use x: /delete
    net use x: "\\xxxx.com\systemdata\Server Setup\TSM Client - X32"
    Start /wait msiexec /i "x:\IBM Tivoli Storage Manager Client.msi" RebootYesNo="No" REBOOT="Suppress" ALLUSERS=1 INSTALLDIR="c:\program files\tivoli\tsm" ADDLOCAL="BackupArchiveGUI,BackupArchiveWeb,ApiRuntime,AdministrativeCmd" TRANSFORMS=1033.mst /qn /l*v "c:\client_log.txt"
    Copy x:\dsm.opt "c:\program files\tivoli\tsm\baclient\" /y
    c:
    cd "\program files\tivoli\tsm\baclient"
    dsmcutil remove /name:"TSM Client Acceptor"
    dsmcutil remove /name:"TSM Client Daemon"
    dsmcutil remove /name:"TSM Client Acceptor Daemon"
    dsmcutil remove /name:"TSM Client Scheduler"
    dsmcutil remove /name:"TSM Scheduler"
    dsmadmc -id=xxxxxxx -password=xxxxxxx register node %computername% %computername%
    dsmcutil inst scheduler /name:"TSM Client Scheduler" /node:%computername% /clientdir:"c:\Program Files\Tivoli\TSM\baclient" /optfile:"c:\program files\tivoli\tsm\baclient\dsm.opt" /password:%computername% /validate:yes /autostart:yes /startnow:yes
    set /a schednum=%random%
    set /a schednum=schednum * 6/32768
    IF %schednum%==0 dsmadmc -id=xxxxxxxx -password=xxxxxxxx define assoc STANDARD WIN_EARLY_AFTERNOON %computername% & goto :endif
    
    IF %schednum%==1 dsmadmc -id=xxxxxxxx -password=xxxxxxxx define assoc STANDARD WIN_EARLY_EVENING %computername% & goto :endif
    
    IF %schednum%==2 dsmadmc -id=xxxxxxxx -password=xxxxxxxx define assoc STANDARD WIN_LATE_AFTERNOON %computername% & goto :endif
    
    IF %schednum%==3 dsmadmc -id=xxxxxxxx -password=xxxxxxxx define assoc STANDARD WIN_LATE_EVENING %computername% & goto :endif
    
    IF %schednum%==4 dsmadmc -id=xxxxxxxx -password=xxxxxxxx define assoc STANDARD WIN_LATE_NIGHT %computername% & goto :endif
    
    IF %schednum%==5 dsmadmc -id=xxxxxxxx -password=xxxxxxxx define assoc STANDARD WIN_NIGHT %computername% & goto :endif
    
    goto :endif
    
    :endif
    
     
    Raakin likes this.
  2.  
  3. tmcquaig

    tmcquaig New Member

    Joined:
    Apr 13, 2006
    Messages:
    69
    Likes Received:
    0
    Do you still have to manually edit nodename in dsm.opt?
     
  4. keteran

    keteran New Member

    Joined:
    Jun 17, 2008
    Messages:
    5
    Likes Received:
    1
    The client uses the local hostname as the node name and that works for me so I don't set that anywhere, except when I'm dealing with TDP's.
     
  5. hogmaster

    hogmaster Senior Member

    Joined:
    Nov 9, 2002
    Messages:
    518
    Likes Received:
    20
    Occupation:
    Storage engineer
    TSM Client Silent Install

    Thanks keteran

    good job.

    /daniel
     
  6. chris_magic

    chris_magic New Member

    Joined:
    May 17, 2007
    Messages:
    178
    Likes Received:
    0
    Occupation:
    TSM Consultant
    Location:
    Quebec, Qc, Canada
    First, Keteran I thank you for this very useful script!

    Secondly, I would like you explain to me this part:

    set /a schednum=%random%
    set /a schednum=schednum * 6/32768
    IF %schednum%==0 dsmadmc -id=xxxxxxxx -password=xxxxxxxx define assoc STANDARD WIN_EARLY_AFTERNOON %computername% & goto :endif

    IF %schednum%==1 dsmadmc -id=xxxxxxxx -password=xxxxxxxx define assoc STANDARD WIN_EARLY_EVENING %computername% & goto :endif

    IF %schednum%==2 dsmadmc -id=xxxxxxxx -password=xxxxxxxx define assoc STANDARD WIN_LATE_AFTERNOON %computername% & goto :endif

    IF %schednum%==3 dsmadmc -id=xxxxxxxx -password=xxxxxxxx define assoc STANDARD WIN_LATE_EVENING %computername% & goto :endif

    IF %schednum%==4 dsmadmc -id=xxxxxxxx -password=xxxxxxxx define assoc STANDARD WIN_LATE_NIGHT %computername% & goto :endif

    IF %schednum%==5 dsmadmc -id=xxxxxxxx -password=xxxxxxxx define assoc STANDARD WIN_NIGHT %computername% & goto :endif

    goto :endif

    :endif

    I understand this is to associate TSM Client with a schedule but I don't understand how it works : %schednum% etc....
     
  7. Jeff_Jeske

    Jeff_Jeske Senior Member

    Joined:
    Jul 17, 2006
    Messages:
    485
    Likes Received:
    7
    Occupation:
    Storage Engineer - DR Coordinator
    Location:
    Stevens Point, WI
    How does this eliminate editing the dsm.opt file?

    I too am using the computername for the registration process but the client configuration still requires dsm.opt configuration.
     
  8. tmcquaig

    tmcquaig New Member

    Joined:
    Apr 13, 2006
    Messages:
    69
    Likes Received:
    0
    He is setting a variable to a random number then trying to get it to be between 0 and 5. Then assigning that as the schedule number.
     
  9. keteran

    keteran New Member

    Joined:
    Jun 17, 2008
    Messages:
    5
    Likes Received:
    1

    I copy a dsm.opt file that I use across most of my windows servers during the install process

    Copy x:\dsm.opt "c:\program files\tivoli\tsm\baclient\" /y



    Since the client by default uses the computername as the nodename, you dont actually have to add the NODENAME value to the dsm.opt file.
     

Share This Page