dsmc schedule <

jhomyak

ADSM.ORG Member
Joined
May 9, 2003
Messages
2
Reaction score
0
Points
0
It's got to be something so simple....



I want to start tsm client from a command script lauched after the workstation is started. For the initial dsmc operation to begin, the client must get registered. In the example below, I am able to manually answer the prompts for the Node user id and password. Then we get a password created, as normally expected. All is well. The session starts without error.



===Good example===

[D:tivolitsmclientba]dsmc schedule

Tivoli Storage Manager

Command Line Backup Client Interface - Version 3, Release 7, Level 2.27

(C) Copyright IBM Corporation, 1990, 2000, All Rights Reserved.



Querying server for next scheduled event.

Node Name: PCCLIENT

Please enter your user id &lt;PCCLIENT>:

Please enter password for user id "PCCLIENT": ********



Session established with server TOMCAT: AIX-RS/6000

Server Version 5, Release 1, Level 5.0

Server date/time: 2003-05-09 09:38:02 Last access: 2003-05-09 09:38:02



No schedule returned from server.

Waiting to be contacted by the server.

====end good example====



However, we want to automate this initial routine by supplying user id and password to the prompts - by injecting those values with the '&lt;response.dat' method as follows:



dsmc schedule &lt;D:tivolitsmclientbaresponse.dat



Contents of response.dat file...

[D:tivolitsmclientba]type response.dat

PCCLIENT

PASSWORD



====Attempted script====

(from [D:tivolitsmclientba])



dsmc schedule &lt;D:tivolitsmclientbaresponse.dat



Tivoli Storage Manager

Command Line Backup Client Interface - Version 3, Release 7, Level 2.27

(C) Copyright IBM Corporation, 1990, 2000, All Rights Reserved.



Querying server for next scheduled event.

Node Name: PCCLIENT

Please enter your user id &lt;PCCLIENT>:

Please enter password for user id "PCCLIENT":



It hangs here waiting for entry. It read line one on response.dat but did not read line two, the password. If I supply a password manually, we are okay, but if I press enter without a password I get:





ANS1029E Communications have been dropped.

Scheduler has been stopped.





So in the end, does someone think it's possible to pass these two items, userid and password into the dsmc.exe for the first time creating a .pwd file using the '&lt;.dat' method?



Thanks!





:rolleyes:
 
I'm very sure you have a reason to use a dat file.

In the response.dat, you have the following.

PCCLIENT

PASSWORD



Possibly the system is reading the second line before the password prompt.

Not sure if you can do this:

PCCLIENT

Wait=1 or Pause=1 or Sleep=1

PASSWORD



Or



Could use the following syntax: dsmc sched -id=&lt;PCCLIENT> -pass=&lt;PASSWORD>





Just a curiosity.



In the dsm.sys file why not set the paramater "passwordaccess generate" this way you only enter the id and password just once. Then the TSM client issue the id and the password when ever the server request for the id and password.

Or are you using the dat file to enter the id and passwrod for the first time?





Sias
 
Yes, we are trying to initalize the password creattion process. The DSM.OPT file has the setting of PASSWORDACCESS GENERATE.

Once we run the intial login process, the schedule start proces is automatic.

We are just trying to create the password during the CID installtion process. This is the only failure.



<TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Quote:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><BLOCKQUOTE>I'm very sure you have a reason to use a dat file.

In the response.dat, you have the following.

PCCLIENT

PASSWORD



Possibly the system is reading the second line before the password prompt.

Not sure if you can do this:

PCCLIENT

Wait=1 or Pause=1 or Sleep=1

PASSWORD



Or



Could use the following syntax: dsmc sched -id=&lt;PCCLIENT> -pass=&lt;PASSWORD>





Just a curiosity.



In the dsm.sys file why not set the paramater "passwordaccess generate" this way you only enter the id and password just once. Then the TSM client issue the id and the password when ever the server request for the id and password.

Or are you using the dat file to enter the id and passwrod for the first time?





Sias </BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE>
 
Back
Top