TSM Shell Scripting Syntax

menonk

ADSM.ORG Member
Joined
Aug 1, 2006
Messages
40
Reaction score
0
Points
0
Website
Visit site
Hi,

I have to execute couple of TSM commands using Unix Shell Script. I know how to run a single TSM command in shell.

dsmadmc -id=<id> -password=<passwd> -outfile=<file name> < tsm command say show time>

Now if I have to provide more than one tsm command whats the syntax.
Eg. capture show time, show db, show log in a single line.
 
Elo, put the desired commands into a txt file - one line after another, ie:

tsmcmds.txt
---
show time
show db
show log

and run:

dsmadmc -id=admin -pass=pass -outfile=out.txt < tsmcmds.txt

Cheers,
M.
 
That's a good way to do it or you can use the tsm macro option and put the commands into a macro and execute the macro:

dsmadmc -id=admin -pass=pass -outfile=out.txt macro tsmcmds.mac

Again both will work without a problem.
 
dsmadmc -id=admin -pass=pass -outfile=out.txt macro tsmcmds.mac

This one is definately better and smoother :) And you can parameterize your macro. Good stuff, forgot it existed :)

Cheers,
Marcin.
 
Back
Top