dsmadmc auto setup

dwcasey

Active Newcomer
Joined
Feb 12, 2008
Messages
61
Reaction score
0
Points
0
I would like to be able to run a series of commands from a remote host to a few TSM servers using dsmadmc.

How can I setup and source dsm.sys locally to read this file so I can run scripts against these servers without having to specify user/pass?
 
dsmadmc -se=servername -id=admin-id -pa=admin-passwd TSM COMMAND

Populate the dsm.sys similar to that of a ba-client having a stanza for each TSM server.

Ex:

SErvername servername
COMMmethod tcpip
tcpserveraddress FQDN or IP of the server
TCPPORT portnumber
 
As an example, I have the following. Am I not getting the user/pass syntax correct?


SErvername tsm001
userid admin
password 12345
COMMmethod TCPip
TCPPort 1500
TCPServeraddress tsm001.domain.com
 
dsm.sys contains:
Code:
servername tsm1
commmethid tcpip
tcpserveraddress 10.1.1.10 (or host.domain)
tcpport 1500

servername tsm2
commmethod tcpip
tcpserveraddress 10.2.2.20 (or host2.domain)
tcpport 1500

Then you could use the following to talk to each server:

dsmadmc -server=tsm1 -id=admin -password={passwd} {command for first server}
dsmadmc -server=tsm2 -id=admin -password={passwd} {command for second server}

You can also do some of this from within TSM itself.

-Aaron
 
dsmadmc -server=tsm001 -id=admin =password=12345 'q devc dpool-dc f=d'

ANS8019E Id and password must be supplied in Batch mode.
ANS8009E Exiting due to command or option errors.

ANS8002I Highest return code was 11.
 
dsmadmc -server=tsm001 -id=admin =password=12345 'q devc dpool-dc f=d'

Correct it:

dsmadmc -server=tsm001 -id=admin -password=12345 'q devc dpool-dc f=d'
 
Correct it:

dsmadmc -server=tsm001 -id=admin -password=12345 'q devc dpool-dc f=d'

That's embarrassing :redface: Now I'm getting
ANS1217E Server name not found in System Options File
ANS8009E Exiting due to command or option errors.

ANS8002I Highest return code was 409.

Where is it looking for this? My home directory where I'm executing dsmadmc? I have matched SErvername in dsm.sys the name used in -server=
 
By default it looks in the client directory (/usr/tivoli/tsm/client/ba/bin) but you can set it to be anywhere with environment variables.

-Aaron
 
Back
Top