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 <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 '<response.dat' method as follows:
dsmc schedule <D:tivolitsmclientbaresponse.dat
Contents of response.dat file...
[D:tivolitsmclientba]type response.dat
PCCLIENT
PASSWORD
====Attempted script====
(from [D:tivolitsmclientba])
dsmc schedule <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 <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 '<.dat' method?
Thanks!
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 <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 '<response.dat' method as follows:
dsmc schedule <D:tivolitsmclientbaresponse.dat
Contents of response.dat file...
[D:tivolitsmclientba]type response.dat
PCCLIENT
PASSWORD
====Attempted script====
(from [D:tivolitsmclientba])
dsmc schedule <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 <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 '<.dat' method?
Thanks!