Hi,
Here is an XML that is parsed to execute the commands (on the console) shown below.
My to-the-point question is: When password is passed as an argument to the command vmmanager, it is shown up in plain text format ( or as it is passed) in the deployment tool that uses the XML to execute the commands on the remote console. To suppress the password data, I am using
stty -echo just before it and then re-enabling it.
However, the reviewer is not looking happy with this approach to suppress the password. There is a point in his comment that disabling
echo also suppresses output from the command and if there is anything that needs attention for troubleshooting purpose, will be missed altogetherly.
I did check the vmmanager command which is a script and is calling a Java program. There is no help document to suggest if a file containing the password can be passed to it and the other parameters cane be passed at the command line as they are currently.
So, is there a way to suppress the vale of only one parameter while other parameters' values are okay to be shown up at the command-line?
Code:
stty -echo
/opt/vmmanager/bin/vmmanager --url "https://@{set_variable_vchost}/sdk" --username "@{set_variable_vcuser}" --password "@{set_variable_vcpass}" --operation "ovfImport" --hostIp "@{set_variable_vcblade}" --ovf "@{select_file_ovffile}" --vmName "@{set_variable_vmname}" --properties "@{select_file_deployfile}" --datastore "@{set_variable_vcdatastore}" --network "@{set_variable_vcpgmain}" --vmFolder "@{set_variable_vcpath}";
stty echo