• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • 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.

  • 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.

Need to create bat script to register clients on multiple servers

beezer1979

Active Newcomer
#1
I need to create a windows bat script that will register node on a server. The idea is that the script will get the server name by %COMPUTERNAME% . Depending on the server name it would then be registered on 1 out of 4 servers (Prod, dev, test, & test 2). Any suggestions out there? :)
 

Efim

ADSM.ORG Senior Member
#2
Hi,
you can use TSM routing commands. It allows you to route commands to one or more TSM servers.
Before use it you have to setup server-to-server communication.
Ex:
tsmserver1: register node ...
tsmserver2: register node ...
tsmserver1,tsmserver2: register node or (tsmserver1,tsmserver2) register node ...
e.t.s
Efim
 
#3
Hi,
if it is AIX, you can do:
1. Create tsm_nodes.txt file and put there tsm nodes and domain, separated by tab, as follow:
node1 domain1
node2 domain1
node3 domain2
.
.
.
nodeN domainN

2. Creates .ksh script as:
#!/bin/ksh

[HASHTAG]#Script[/HASHTAG] create TSM nodes per server TSM
while read line
do

NODE=`echo $line | awk '{print $1}'`
DOM=`echo $line | awk '{print $2}'`

dsmadmc -id=<TSM_admin>-pass=<****>-noconfirm << EOT
register node $NODE tivoli domain=$DOM
EOT

done < tsm_node.txt


And run on every tsm server...

HTH
Chavdar
 

moon-buddy

ADSM.ORG Moderator
#4
The suggestions above are all good but I think the requirement was not answered correctly.

The requirement is for a node to be registered on 1 of 4 TSM servers depending on the type of server (node) it is. The type is determined by the server (node) name. In this scenario, either open or close registration will work depending on what account is used to register the node. More so, if registration is coming from the node, a full BA client installation is required - meaning dsmadmc.exe must be installed.

beezer1979:

What is the server name pattern? How to tell if PROD, DEV, TEST and TEST2? This has to be known before a script can be developed.
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 8 21.6%
  • Keep using TSM for Spectrum Protect.

    Votes: 19 51.4%
  • Let's be formal and just say Spectrum Protect

    Votes: 6 16.2%
  • Other (please comement)

    Votes: 4 10.8%

Forum statistics

Threads
30,967
Messages
131,778
Members
21,224
Latest member
alexp36
Top