Different DSMADMC options in IBM Tivoli Storage Manager TSM

Use the below parameters with DSMADMC to log into the TSM server in different ways for efficient monitoring.

Using DSMADMC on UNIX Server Command Line
To start a TSM server command line in AIX, you use the dsmadmc command with an optional servername. The command line is useful if you want to do bulk upgrades, as you can then do them with a script. For example, if you want to register 10 new nodes, rather than go through the tedium of adding 10 nodes through a panel, it is much easier to set this up as 10 commands within a UNIX script, then just execute the script. A typical script could look like

 dsmadmc -se=servername -id=youruserid -pa=yourpassword 
 register node nodename nodepassword passe=9999 con=\"This server contact details\" 
 do=policy-set clo=cloptset userid=none comp=no archdel=no backdel=no

you obviously need to substitute your own values for the parameters, and note how special characters like quotes are escaped out with a forward slash. The command is also split over 3 lines to make it readable, but it is actually all one line.

Other dsmadmc options

The command can also be very useful if you want to start a TSM server up in different modes. for example, if you want to run some queries that you want to feed into an excel spreadsheet or maybe programs, and you do not want the screen titles displayed you would use the following. -commad means comma delimited output, the dataonly switch suppresses the headers.
 dsmadmc -se=servername -dataonly=yes -comma



An alternate option is -tab for tab delimited. These commands can be usefully argumented with the -out parameter, which writes the console output into an external file. For example if you start a server session as below, then the output of any commands you issue will be placed in sqlout.txt

 dsmadmc -se=servername -dataonly=yes -comma 
 -out="c:\program files\tivoli\tsm\sqlout.txt"

Two other useful options are

 dsmadmc -con
 dsmadmc -mount

The first one starts a server session in console mode, so all the console messages automatically scroll past your terminal. This is useful if you are waiting for a process to complete, as it saves you from keep typing q actlog or q pr commands.

The second option is similar, but instead of displaying all the console messages, it just displays tape mount messages. This one was intended for a media librarian that had to mount tapes manually dsmadmc with Storage Agents

If you are logged into a client that is running a Storage Agent called ClientA_Sta you would log into it the command
dsmadmc -se=ClientA_Sta

and then you can run a limited commandset from the Agent's command line.



To get out of the Storage Agent type 'quit'. If you type 'halt', you will stop the storage agent then exit.

Use dsmadmc with tcps option to Log into a remote TSM server

With Windows servers, you can log into any remote TSM server, provided you have the dsmadmc command code loaded with your TSM client, and provided your firewall rules permit remote access. If you have a remote server on a Windows box with IP address 99.245.24.123 and with a DNS name of WSTSM01, you can start a session by navigating to \program files\tivoli\tsm\baclient and running either

 dsmadmc -tcps=99.245.24.123
   or
 dsmadmc -tcps=WSTSM01

If you get a message like "dsmadmc not found" then you've got a basic client install and you need to install the server management component. This works on the IP address of the Windows box that is hosting TSM. What if you are running more than one TSM server on that box? By default you will get TSM Server1. To reach the other servers you need to add a -tcpp switch that specifies the port of the other server
 dsmadmc -tcps=WSTSM01 -tcpp=1502

1 Response to "Different DSMADMC options in IBM Tivoli Storage Manager TSM"