Highlighted
Absent Member.. Oscar_Pereira Absent Member..
Absent Member..
99 views

PPM Support Tip: When using ksc_simple_respond, the command needs a prompt and answer pair

Error Message
 
When using ksc_simple_respond command to execute SQL scripts or with su (UNIX) command to run shell scripts, it hangs and finally times out.
 
 
Error from the Execution log:
 
.
Preparing for further command execution
Issuing test commands to test the readiness of the remote host to receive commands.
Sending command: echo KSC_EXIT_STATUS $? 1
waiting for something to read...
echo KSC_EXIT_STATUS $? 1
Sending command: echo KSC_EXIT_STATUS $? 2
waiting for something to read...
echo KSC_EXIT_STATUS $? 2
Sending command: echo KSC_EXIT_STATUS $? 3
waiting for something to read...
echo KSC_EXIT_STATUS $? 3
Sending command: echo KSC_EXIT_STATUS $? 4
waiting for something to read...
echo KSC_EXIT_STATUS $? 4
Sending command: echo KSC_EXIT_STATUS $? 5
waiting for something to read...
echo KSC_EXIT_STATUS $? 5

Proceeding with command execution.
KSC Simple Respond Command Failed [Sat Feb 25 03:05:05 EST 2014]

 

Cause
 
The ksc_simple_respond command needs a prompt and answer pair.
 

 

Workaround / Fix
 
Make sure to set all the prompts to be "$" in both source and destination environments .profile and add "$" "echo $" at the end of ksc_simple_respond command line.
 
Syntax when using su command in unix shell:
 
ksc_simple_response "su -l itg" "$" "echo $"
 
 
Where "itg" is the username to connect to the server and "$" is the prompt.
 
 
Syntax when running a SQL script in a destination database: 
 
 
ksc_simple_respond "sqlplus [DEST_ENV.ENV.DB_USERNAME]@[DEST_ENV.ENV.DB_CONNEC​T_STRING] @$driver" -hide "Enter password:" "[DEST_ENV.ENV.DB_PASSWORD]" "$" "echo $"

 

 

You can refer to KB:    http://support.openview.hp.com/selfsolve/document/KM1450070

Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.