Execute MaxL command througth ODI and encrypt password

Hi
I am looking for a solution to not use plain text password for my Maxl command in ODI.
Anyone know how should I do that?
Up to now, I found nothing.
Thanks
Alain

Hi,
Here is a example of encrypting the login credentials in a maxl scipt.
First run something like this from a command prompt
essmsh -gk >> c:\temp\encryptKeys.txt
This will create a text file with the public and private keys e.g.
e.g.
Public Key for Encryption: 5407,1453704157
Private Key for Decryption: 406488703,1453704157
Now say you have a maxl file called login.mxl like
login admin password on localhost;
logout;
You can encrypt it by calling
essmsh -E c:\temp\login.mxl PUBLIC KEY
So for this example it would be
essmsh -E c:\temp\login.mxl 5407,1453704157
This will create an file called login.mxls with encrypted login details e.g.
login $key 6343689380045143584028576355606972733930 $key 1468602100275634090163724540502857635560 on localhost;
logout;
Now to execute the file you need to use the command
essmsh -D c:\temp\login.mxls PRIVATE KEY
so in this example
essmsh -D c:\temp\login.mxls 406488703,1453704157
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • How to execute unix command through odi and store the result in table

    I have to reconcile  if data is loaded in table from csv file or not . I have to create a oracle data integrator package/interface/procedure to execute unix command to count number of rows in the csv files and store the count result in a table then i have to query the loaded table and count number of rows there and store in the table and have to compare is counts are same or not,  Please assist me how to make package/interface/procedure to  execute unix command and store result in oracle table.
    Thanks in Advance

    Use ODI OS command tool in the ODI package.
    create an interface in ODI using LKM File to Sql and the output file generated with the csv file's row count as a source and the db table(where the count needs to be stored) as a target

  • How to execute unix command from ODI Procedure

    Hi,
    I am trying to execute below unix command from ODI Procedure (Command on Target tab) but I am getting the error "java.io.IOException: Cannot run program "cd": error=2, No such file or directory" but when I try to execute the same command using OdiOSCommand, it is executing successfully. I don't want to use shell script to execute this command. Is there any specific syntax am I missing to execute this command from ODI procedure?
    cd /project3/tmt/;ls *.dmp > dmplist.lst
    Please help me on this...
    Thanks
    MT

    Hi nahlikh,
    Thank you for the reply.
    I used below command in Procedure but still getting the same error as "java.io.IOException: Cannot run program "OdiOSCommand": error=2, No such file or directory".
    OdiOSCommand "-COMMAND=cd /project3/tmt/;ls *.dmp > dmplist.lst"
    as I mentioned earlier if I use the command cd /project3/tmt/;ls *.dmp > dmplist.lst in OdiOSCommand tool it is executing successfully without any issues.
    any thoughts appreciated to get a solution for this issue.
    Thanks
    MT

  • How can i execute OS command in ODI?

    hi all,
    i have an exe file
    and
    i want to execute this file in ODI with scheduling?
    how can i do this?
    thanks.
    Eser

    Take a look in the documentation for the ODIOSCommand tool - which you use in a package.

  • Execute the command "arp -a" and save the list of ip & MAC adresses

    Hey all ,
    I was looking for a code where i can execute the command "arp -a" in CMD to get a list of all MAC and ip adresses
    connected on the network and save them for further use is this possible or not .. please if possible if any 1 can supply me with the code i would be grateful ... thnks for ur time
    Best Regards,
    MIG()ZZZZ

    the list of ip and mac of connected computers to the networkThere really isn't a way of doing this because in TCP/IP 'connected' doesn't have a well-defined meaning, so there is no such thing as 'the list' either. If it's a Windows LAN you might find something in Samba that will do it, I don't know.
    What's it all for? There are also IP broadcast and multicast facilities, could be what you're really looking for.

  • Execute UNIX Command in ODI

    Hi I have the fiollowing command which i am running in a procedure which is a DOS command.
    cmd /c dir c:\XYZ\testfile_ML_fusion_*.txt /b /a:-d > c:\ABC\ML_Files_Names.txt.
    The equivalent command in UNIX is
    ls filetest*.txt > All_File_Names.txt
    Please let me know whether we can use this command in Procedure.. I have used this but it is throwing an error with Wrong Process Return Code.
    Let me know as soon as possible.
    Thanks,
    Mansur

    Use ODI OS command tool in the ODI package.
    create an interface in ODI using LKM File to Sql and the output file generated with the csv file's row count as a source and the db table(where the count needs to be stored) as a target

  • MaxL Commands with a .BAT

    Is there anyway to execute MaxL commands inside Essbase using a ".BAT" file?
    Like write "Create application Test;" on a TXT then use a ".BAT" to read this TXT as a parameter file in order to create an application inside Essbase.
    I think the ".BAT" must be like any other else but my doubt is if must have some kind of logging commands at the TXT or any other commands.

    here's a sample:
    in the MaxL file you write this:
    spool on to 'c:\Logs\login.out';
    login $1 $2 on $3;
    spool off;
    In the Batch file you write this:
    set uid=userid
    set pwd=password
    set svr=localhost
    essmsh "c:\scripts\login.msh" %uid% %pwd% %svr%
    Note: Make sure there is no space between the "=" sign and your variables.
    or you can skip the variables and just pass the parameters directly to the msh file, something like this:
    essmsh "c:\scripts\login.msh" userid password localhost
    Message was edited by:
    didopiff

  • Execute a command without thread

    Hi....i have to execute a command in DOS and i'm using runtime java class with its method exec(). The process works perfectly but in my code i have to execute that command without a thread because the successive operations will work only if the command terminated correctly. What can i do to resolve it?

    String cmd = input.getTxtDb2Cmd();
    Process p = Runtime.getRuntime().exec(cmd);
    int r = p.waitFor();
    if (r != 0)
    throw new RuntimeException("db2 command failed");
    i've to invoke a db2 command that import a txt file in a db table. After this code i've some operations that works with this table so i've to terminate this import before execute other functions.

  • Encrypting password in ODI

    Hi
    During Scheduling of scenario , in order to modify the password parameters in the ODIPARAMS file we need to encrypt the password by executing the command "agent encode password" from the dos prompt , from the /bin directory so that it gives a string .the problem is whenever i try to execute the same command again it is giving a different string.Does this make any difference.Is this the way to encrypt the password and moreover scenario is not getting executed at scheduled time.

    Hi,
    I think it's ok that the "agent encode" command gives a different password everytime you execute the command. I noticed the same and it works ok.
    Maybe the encoding is based on a timestamp or something ...
    I haven't tried to schedule scenarios yet; hopefully you'll get a reply from someone else.

  • ODI Commands, emailing, moving and checking files

    Hi Everyone,
    This time I am posting here because what I would like to do is the following:
    *1. Make ODI search a folder and see if there is any data available*
    So I assume that I will have to use something like:
    a) cmd /c dir C:\<Folders Path…>\<File_Name>*.<extension>
    b) cmd /c dir C:\<Folders Path…>\<File_Name>*.<extension> /b /a:-d > C:\< Folders Path…>\<File_Name>.lst
    Would it be better to use a) rather than b) I do not see any sense in using a *.lst.?
    *2. Load the file, and not use reverse engineering:*
    How can I do this?
    I had already posted this in the forum, but I think I was getting a wrong idea over it.
    Default data types when an Excel reverse engineering
    *3. To load my data into a Temporal Table and transform the data*
    I have already done it. :-)
    *4. Insert it into the table that’s is going to be used*
    I have already done it. :-)
    *5. Once successful move the uploaded file, move it to another folder and modify the name of it adding the system date.*
    OdiFileMove "-FILE=C:\<Folders Path…>\<File_Name>.<extension>" "-TOFILE=C:\<Folders Path…>\<File_Name>.<extension>" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
    But how do I add the name to the file? Any suggestions, ideas???
    I do have to move this to three different folders, so I will just have to use this ODI command three times and that will be it, no?
    *6. Send an email informing if the uploading has been successful or not in:*
    Step 1, Informing rather the file has been found or not
    Step 2, Informing if the file has a mistake or anything –data format-
    Step 5, Informing if the file has been moved to any of the three folders –ToLoad, Loaded, Erros- and attaching the file, and message saying how many lines were imported etc, etc….
    Would it be something like this????
    OdiSendMail "-MAILHOST=<my.host.whatever>" "-FROM=<sender_email>" "-SUBJECT=<My beautiful project>" "-TO=<receiver_emailn>" "-CC=<xperson_email>" "-ATTACH=C:\<Folders Path…>\<File_Name>.<extension>"
    Email content, email content, email content, email content…..
    Well so far this is what I will have to do, and I would really like to count with your help, ideas and guidance.
    P.D.: I have been trying to get some further reading about ODI “Oracle Data Integrator 11g: Getting Started”, but the book I am looking forward to get is not yet published, and every month they delay it one more month.

    Suthirta really Thank you so much!!!
    Before I wrote you, I have already created and implemented what I described you, so:
    + I created a new procedure.
    + On the definition tab as you suggested me, I changed the “Source Technology” to Oracle and the “Target Technology” to Sunopsis API
    + On the Detail Tab, I have created my new command
    - On the “Command on Source” tab
    I have placed the SELECT '<whatever_name>' || replace(sysdate,' ', '_') AS FILENAME FROM DUAL;
    And first left of the values by default or should I change them to the following:
    Tecnology: Oracle
    Context: The one that I am using
    Transaction: Autocommit
    Transaction Isolation: <Unidentified>
    Schema: The one that I am using
    Commit: <Unidentified>
    - On the “Command on Target” tab
    I have placed the #FILENAME
    And first left of the values by default or should I change them to the following:
    Tecnology: Sunopsis API
    Context: The one that I am using
    Transaction: Autocommit (appears as default)
    Transaction Isolation: <Unidentified> (appears as default)
    Schema: <Unidentified> (appears as default)
    Commit: <Unidentified> (appears as default)
    And so far, It should be working no? I am getting an error :-(
    On the OdiFileMove I have done the following:
    OdiFileMove "-FILE=C:\ <path1…>\<Original_File_Name>.xls" "-TOFILE=C:\ <path2…>\#FILENAME.xls" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
    Error message:
    java.lang.Exception: Oracle Data Integrator Function does not exist
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.j(e.java)
         at com.sunopsis.dwg.cmd.h.z(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:595)

  • Maxl command that differentiates ASO and BSO?

    I want to differentiate between the ASO and BSO db in Essbase(9.3.1) using some MAXL command.
    Do we have some MAXL command that shows the property of Databases?
    I was hoping to use the command
    execute aggregate selection on database ASOSamp.Sample
    This command gives an error when run on a BSO.
    Ex:
    *[admin/localhost]execute aggregate selection on database Sample.Basic
    Execution Message:
    MaxL requires an aggregate storage application for this operation.*
    I was wondering if Maxl generates a return code for this. If it does, how can I capture this return code?

    To give a vague answer, you could run the command in your maxl script and use an iferror statement. It will not tell to the error number but that the command failed.
    Edited by: [email protected] on Oct 13, 2008 1:10 PM
    If I could only spell

  • ITunes will not let me backup and sync to new phone encrypted password??

    iTunes will not let me backup and sync to new phone encrypted password?? I've never set a password for my old iPhone 3gs but tried my old Apple ID sign-in passwords to no avail. I've simply sat here so frustrated....my husband sync'd his new iPhone 4 no problem, somehow the checkbox shows Encrypted password and I'm at a loss on how to change this/find the password and transfer my old backup onto my new phone so I can use it. Can anyone help? Tnx

    John,
    buy an iTunes Music Card and redeem it to your account - the "none" option should be available then.

  • Reading Encrypted Password from Configuration File and Decrypt it at login

    Hi All,
    My application reads a configuration file to connect to the ORACLE database. The values defined for password are clear text as given below:
    user: 'mh'
    password='abcd1234'
    Is there is any way I can give an encrypted password in the configuration file instead of a clear text file and at the time of login ORACLE decrypts it. I am using ORACLE 11g Database.
    My company have a requirement that passwords are not stored in the clear in properties files. the reason being I suppose that if the password is stored in plaintext someone could hit the property file directly, get the password and then connect to the database with it.
    For a regular user connecting through an Oracle client or SQL Developer they would need to have the plaintext password in order to connect.
    its based on the requirements of
    International Standards Organization Guidance
    ISO 17799 � 9.5.4 requires password management systems to:
    � enforce the use of individual passwords
    � allow users to select and change their own passwords if appropriate
    � enforce a choice of quality passwords
    � force regular changes of passwords
    � maintain a record of previous user passwords to prevent re-use
    � not display passwords when they are being entered
    � store password files separately from application system data
    � store passwords in encrypted form using a one way encryption algorithm
    � alter default vendor passwords following installation of software
    So if I can store the password encrypted using a one way algorithm then hacker/user couldn't decrypt it and then access the database.
    I have feeling there is a way of configuring this in Oracle advanced Security, but just can't quite get it to work.
    Edited by: user5568473 on 20-May-2013 00:05

    So if I can store the password encrypted using a one way algorithm then hacker/user couldn't decrypt it and then access the database.... and neither can your application. Encryption is needed in this case. The decryption must be written into your application. I've written my own in some cases, but finding a library for your development language is a smarter solution.
    One alternative is using an Oracle wallet. It doesn't fit every circumstance and does have some maintenance headaches.
    You can set up a basic secure password store to encrypt and store the password for a given user@instance combination, and then connect to the database without passing a password. SQL*Net adds in the appropriate password from the wallet for when you connect.
    http://www.oracle.com/technetwork/database/security/twp-db-security-secure-ext-pwd-stor-133399.pdf
    Advanced Security Option also allows you to set up a Public Key Infrastructure connections (SSL encryption and/or authentication). It also uses a wallet to store the SSL certificates and credentials. I don't have personal experience on this approach.
    SSL and the wallet allow you to connect to the database similar to CONNECT/@net_service_name or sqlplus /@net_service_namehttp://docs.oracle.com/cd/B28359_01/network.111/b28530/asossl.htm#CIHCBIEG

  • I updated iTunes to 10.5 and now my encryption passwords for my iPhone and iPad don't work.

    I updated iTunes to 10.5 and now my encryption passwords for my iPhone and iPad don't work. I know Apple says if you forget them then it's your problem. However, this was a direct result of my iTunes upgrade. I spent hours trying to fix this. HELP!

    Definitely seems to be a cross-platform bug in iTunes 10.5 concerning all NAS disks. Shared libraries on network drives worked fine under 10.4.1, but now there is just an endless loading cycle with no error message or time-out. There is a bit more about it in this thread.
    Martin

  • How to invoke BASH shell and execute a command in that shell in Windows 98

    Hello, I have a problem and if somebody will help me, I will be very glad. Thank you.
    I am using BASH shell on Windows 98 OS by means of CYGWIN. And I want to invoke this BASH shell and execute a preprogrammed command in the shell (./scan fileName.txt) from a JAVA program. But so far, I am not sucessful. I can not read or write anything from / to BASH shell. It either blocks and freezes (When I use waitFor( ) ) or appears and disappears without executing scan command (When I do not use waitFor( ) ). My code is like this:
    // This method is used for compiling a file.
    // It invokes BASH shell and executes "./scan fileName.txt" command
    public void compileFileMethod () {
    try {
    Process proc = ( Runtime.getRuntime() ).exec ("C:\\MyDocuments\\CYGWIN.BAT); //I also tried to add -c ./scan fileName.txt after .BAT );
    // I also tried to write "C:\\MyDocuments\\BASH.EXE" but it did not help
    OutputStream ostr = proc.getOutputStream();
    BufferedWriter bw = new BufferedWriter ( new OutputStreamWriter (ostr) );
    InputStream istr = proc.getInputStream();
    BufferedReader br = new BufferedReader ( new InputStreamReader (istr) );
    InputStream errorStr = proc.getErrorStream();
    BufferedReader errorBr = new BufferedReader ( new InputStreamReader (errorStr) );
    bw.write("scan case40.10.txt"); /* I am trying to input the scan command to the shell,but it is not working*/
    bw.flush();
    Vector list = new Vector (1) ;
    String str;
    while ( (str = br.readLine() ) != null) {
    list.addElement(str);
    } // End of while
    Enumeration enumForList = list.elements();
    while ( enumForList.hasMoreElements() ) {
    String tempString;
    tempString = ( String ) enumForList.nextElement();
    System.out.println(tempString); // I am trying to read the outputs of the scan command but it is not reading (I can not see any output)
    I tried with and without waitFor( ), it did not work
    // wait for command to terminate
    proc.waitFor();
    // close streams
    br.close();
    bw.close();
    errorBr.close();
    } // End of try
    catch ( IOException ioe ) {
    JOptionPane.showMessageDialog (null, "Input / output error occured while compiling file ", "Error", JOptionPane.ERROR_MESSAGE);
    } // End of catch
    catch ( SecurityException se ) {
    JOptionPane.showMessageDialog (null, "Security error occured while compiling file ", "Error", JOptionPane.ERROR_MESSAGE);
    catch ( InterruptedException ie ) {
    JOptionPane.showMessageDialog (null, "Interruption error occured while compiling file ", "Error", JOptionPane.ERROR_MESSAGE);
    } // End of method compileFileMethod
    // Thank you for your helps and time.

    You cannot invoke BAT files directly, you have to invoke the program that run those files which is your Windows 98 shell. For example (under windows 2000), i would invoke "cmd.exe sricpt.bat some args", rather than "script.bar some args".
    Hope this will help you out.

Maybe you are looking for

  • Photosmart C4780 install fails at "system cannot find specified file"

    My problem started simply with the printer, an HP Photosmart C4780 which has always had a wireless connection and would not print.  At first, the network connection checked out fine from the printer control panel.  I ran a Microsoft printer troublesh

  • Web Service posting via SOAP.request - Security settings prevent access...

    I'm trying to call a web service via the SOAP.request object in javascript embedded into my Interactive Form.  I've successfully done this with SAP NetWeaver 7.0 trial version however now I'm having this issue on a production setup.  The PDF generate

  • Audigy 2, DTS and AC3 passthrough in Windows 7

    I have this problem, see in my windows xp partition my dts and ac3 passthrough works flawlessly, but in windows 7 i can't get any kind of recognizable signal from my soundcard to my reciever. So my short question is, is this something that is an know

  • Defining dynamic XML

    Hi, i have created an application in which a the user is given an option of selecting a map and its relevant data. now depending on the values of data, the map is to be filled with colors with each color representing a specific range of data. now the

  • Export web HTML4 to a new web HTML5

    Hi, i have a site. This is a old site. The site is in HTML4 OLD. I use the Dreamweaver CC 2014. How can i export the site to HTML5 format? responsive? Thanks.