Results 1 to 8 of 8
  1. #1
    Newcomer
    Join Date
    Jun 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up TSM Client Silent Install script

    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

  2. #2

    Default

    Do you still have to manually edit nodename in dsm.opt?

  3. #3
    Newcomer
    Join Date
    Jun 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  4. #4
    Senior Member
    Join Date
    Nov 2002
    Posts
    517
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Thumbs up TSM Client Silent Install

    Thanks keteran

    good job.

    /daniel

  5. #5
    Member chris_magic's Avatar
    Join Date
    May 2007
    Location
    Quebec, Qc, Canada
    Posts
    178
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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....
    Christophe Chirat - TSM Consultant for LGS Inc
    Tivoli Storage Manager 6.2 "Implementation" Certified
    ITIL Certified
    LinkedIn

  6. #6
    Senior Member Jeff_Jeske's Avatar
    Join Date
    Jul 2006
    Location
    Stevens Point, WI
    Posts
    485
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by keteran View Post
    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.
    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.

  7. #7

    Default

    Quote Originally Posted by chris_magic View Post
    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....
    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.

  8. #8
    Newcomer
    Join Date
    Jun 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Jeff_Jeske View Post
    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.

    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.

Similar Threads

  1. TSM client install script
    By nimrodman in forum Administrative Client
    Replies: 2
    Last Post: 08-21-2009, 05:50 AM
  2. Automate Silent Install
    By bheisser in forum TSM Server
    Replies: 2
    Last Post: 04-12-2004, 05:32 PM
  3. Replies: 0
    Last Post: 10-05-2003, 08:55 AM
  4. Silent install of Image Backup/Open File support.
    By rosmo01 in forum TSM Server
    Replies: 0
    Last Post: 09-29-2003, 11:29 PM
  5. How to install LVSA unattended/silent?
    By rosmo01 in forum TSM Server
    Replies: 0
    Last Post: 09-15-2003, 03:18 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •