04-26-2008 01:20 PM
we have a script to extract data from UT. the -u& -p which is on clear text. I read able to hide.I'm not script person. is there any body to guide me how to create a file and create variable for cmexportfile and on which directory(path) should I placed it.our CW on solaris.
thank you in advance for your great help.
Solved! Go to Solution.
04-26-2008 04:28 PM
The file can be called anything you like, and it can be placed into any directory. It must be readable by the user running cmexport. The contents should be the username separated by the password. For example:
% cat cmexport_creds.txt
admin admin
% pwd
/export/home/marcus
% env CMEXPORTFILE=/export/home/marcus/cmexport_creds.txt cmexport ut -u admin -host -query all
04-26-2008 09:08 PM
Correct. The -u argument tells cmexport which username to use in the file to find the corresponding password.
04-26-2008 04:28 PM
The file can be called anything you like, and it can be placed into any directory. It must be readable by the user running cmexport. The contents should be the username separated by the password. For example:
% cat cmexport_creds.txt
admin admin
% pwd
/export/home/marcus
% env CMEXPORTFILE=/export/home/marcus/cmexport_creds.txt cmexport ut -u admin -host -query all
04-26-2008 05:25 PM
Thanks J. so
1st- I use this example
"% cat cmexport_creds.txt admin admin
create a file with TXT extension place on server run the script.
then 2nd-
add a line on my script using this example?
% env CMEXPORTFILE=/export/home/marcus/cmexport_creds.txt cmexport ut -u admin -host -query all
instead of the current -u and -p ? just to make sure. thank you so much again!!
04-26-2008 09:08 PM
Correct. The -u argument tells cmexport which username to use in the file to find the corresponding password.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide