Run Maxl command in fdm

Hi,
Is it possible to execute any maxl commands in FDM. If so could you pls let me know how to do it.
Thanks,
Hima

Hi,
I tried executing a sample batch script and it working fine, but then I just added the essmsh E:\test.msh in the batch file and run FDM.
Its not working. The maxl file is not working. I used shell.run to execute the bat file.
The batch file is having the essmsh (calling a maxl )
Can you let me know where I am going wrong.
And pls help me to know the API functions to be used to execute the calc scripts.
Thanks,
Edited by: user10720012 on Mar 2, 2011 1:41 PM

Similar Messages

  • Error running Maxl and ESSMSH Commads

    Hello,
      I had recently installed  EAS Client while my system was getting changed from a previous one . Firstly , I was unable to enter the Maxl with essmsh command , so i had started going to the directory where startmaxl.cmd site and from there when I run it  i get into Maxl shell . i was curious on how to fix this. But the main concern now is , i am trying to encrypt few passwords and while i run essmsh -gk from Maxl shell , the key is not getting recognized . Previously , before re installing EAS i had no issues on this at all . Any comments or suggestion ?
    Thanks !!

    I am able to run maxl commands , not a problem with that . However my main issue now si teh decryption , we can try working the other way for now . Because the maxl issue is in my local machine , i went to essbase server directly and started this encryption process.
    This what it looks like :
    login $key AAAAAAAAA (ADMIN ID)  $key BBBBBBBBBB (PASSWORD) on Essbase Server ;
    import database 'App'.DB' dimensions
    connect as $key XXXXXXXXXXXXXXXXXXXX identified by $key YYYYYYYYYYY using server rules_file 'A',
    connect as $key XXXXXXXXXXXXXXXXXXXX identified by $key YYYYYYYYYYY using server rules_file 'B',
    connect as $key XXXXXXXXXXXXXXXXXXXX identified by $key YYYYYYYYYYY using server rules_file 'C'
    on error write to "A\\File.err";
    X is the database log in ID and Y is its password which was recently changed and this script was working till then .
    I followed the regular encryption process , I had to Just change the encryption keys of X and Y , the proxy ID and password are still the same . SO , i created a .simple text txt file ;
    login db ID  db Password,
    From cmd , ran  essmsh -E File name publick key
    I got encrypted ID and password .
    When i implemented them on the above script , the script failed to execute in the db login stage  as:
    ERROR - 1021001 - Failed to Establish Connection With SQL Database Server.  See log for more information.  (The log just gives the same info , SQL Login failed )
       ERROR - 1241101 - Unexpected Essbase error 1021001.

  • How to run a maxl command

    Sorry for the very basic question, but I don't know where to start with it...
    What do I have to do to run a maxl command?
    I suppose I have to do something from Essbase administartion services, right?
    Thanks

    What version of EPM are you on?
    If its 11.1.1.x, go to command prompt & type essmsh and enter. See if that opens maxl session.
    If its 11.1.2.x, type startmaxl.bat instead of essmsh in above step & see if maxl session opens.
    You can execute MaxL statements in Essbase Admin. Console too.
    Regards,
    Santy.

  • 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/

  • Refresh Security using MaxL command

    Hi All,
    When trying to refresh security from shared services using the below maxl command:
    alter user 'henkej03' sync security with all application;
    getting the below error:
    [Fri Mar  6 09:06:00 2009]Local/ESSBASE0///Info(1051590)
    Synchronization started for user/group [hypadmin]
    [Fri Mar  6 09:06:00 2009]Local/ESSBASE0///Error(1051514)
    Analytical Services failed to get roles for users and groups for applications during refresh/login sync/user sync from Shared Services Server with Error [CSS Error: Internal Error. Function getmultiUGmultipAppRoleList]
    [Fri Mar  6 09:06:00 2009]Local/ESSBASE0///Warning(1051003)
    Error 1051514 processing request [Set User/Group List] - disconnecting
    Can anyone help me on the above.
    Thanks in advance,
    Raja

    Thanks guys...
    but my HSS and LDAP was up and running, I think there was temporary problem in network ... today I got error...
    ERROR - 1051514 - Analytical Services failed to get roles for users and group
    s for applications during refresh/login sync/user sync from Shared Services Serv
    er with Error [Cannot find application with ID ESBAPP:bopelim1_AHQLUBNT118_2].
    tried to use "resync all.." but failed...
    Checked in HSS and app was not registerd..to HSS :) .. so regiseted with HSS and User was refreshed succesfully !
    In case you encounter the "ERROR - 1051514", check if the app is registered to HSS or not?
    have a nice time !!!
    SD

  • Restructure using maxl command

    hi ,how can we restructure database using maxl command.
    Actualy there is a planning application and i want to restructure database but i am planning on automating the process to run in the night but i am not able to make sure which command is the one for restructuring.

    If we are running this command data is gettiung cleared ?
    Edited by: NareshKumar on Mar 30, 2012 3:32 PM

  • MAXL COMMAND

    Hello,
    Can someone help me please! I am looking for a command that redirects Maxl the result to a file. txt
    example display user privilige all> c: \ 1.txt a command like this
    Thank you!

    You can't send only the output from a single command to a text file.
    You can use the 'SPOOL ON' / 'SPOOL OFF' commands (see the technical reference) and enable output before running the command you want to capture - but you will still see the command itself in the file, not just the output.
    You can also redirect the whole session with > when you invoke MaxL, but then you get everything in the file.

  • 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

  • Running MAXL on EAS changing permssion on a file that is in UNIX

    Hi,
    11.1.2 Essbase is running on UNIX.
    I was successfully to change the permission of a file that I extracted from a cube when I ran it on unix. Here is my code that I used to make this happen.
    shell chmod 766 '/hyperion/MetaData/Outbound/GL/data_extract.txt';
    My question is my client would like to run the maxl script on demand. They would run the maxl on EAS. I'm having a hard time to getting this work when I run it in EAS. When I run the maxl script i'm getting "Script: ignoring command:shell chmod 766 '/hyperion/MetaData/Outbound/GL/data_extract.txt';
    I'm running this shell script after that file has been dumped into that directory in unix. Is this not possible to do when running maxl on EAS? or is there something i'm doing syntax wise is incorrect?
    Matt
    Edited by: 803592 on Nov 3, 2010 10:10 AM
    Edited by: 803592 on Nov 3, 2010 10:15 AM

    I have just experiences the "beep, beep, beep" after a hard crash.
    The computer is overheating.  The RAM gets hot and everything crashes.
    The system will not restart, all I get is "beep, beep, beep.....beep, beep, beep.....beep, beep, beep.....beep, beep, beep.....beep, beep, beep.....beep, beep, beep.....beep, beep, beep.....beep, beep, beep"
    I pulled the ram, and switched the chips around.  The system is back up without a problem so far.

  • Urgent!! running system command in java

    i am trying to run system command(windows) in java. I am getting
    exception as java.io.IOException: CreateProcess: c:\dir
    Please Help.
    Here is the code
    import java.io.*;
    public class RunCommand {
    public static void main(String[] args) {
    try
    //run dir command
    Process p = Runtime.getRuntime().exec("c:\\dir");
    BufferedReader stdInput=new BufferedReader(new
    InputStreamReader(p.getInputStream()));
    BufferedReader stdError =new BufferedReader(new
    InputStreamReader(p.getErrorStream()));
    //read the output
    System.out.println("here is the output:\n");
    while((s=stdInput.readLine())!=null){
    System.out.println(s);
    System.out.println("here is the error if any");
    while((s=stdError.readLine())!=null){
    System.out.println(s);
    System.exit(0);
    }//end try
    catch (IOException e)
    System.out.println("exception Happened" );
    e.printStackTrace();
    System.exit(-1);

    It works fine if you replaceProcess p = Runtime.getRuntime().exec("c:\\dir");withProcess p = Runtime.getRuntime().exec("cmd /c dir");And don't forget to define your s variable.

  • Run shell commands using java program

    Hi guys,
    I am trying to run shell commands like cd /something and ./command with arguments as follows, but getting an exception that ./command not found.Instead of changing directory using "cd" command I am passing directory as an argument in rt,exec().
    String []cmd={"./command","arg1", "arg2", "arg3"};
    File file= new File("/path");
    try{
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec(cmd,null,file);
    proc.waitFor();
    System.out.println(proc.exitValue())
    BufferedReader buf = new BufferedReader(new InputStreamReader(proc.getInputStream()));
    catch(Exception e)
    {e.printStackTrace();
    So can anyone please tell me what is wrong with this approach? or is there any better way to do this?
    Thanks,
    Hardik

    warnerja wrote:
    What gives you the idea that the process to execute is called "./command"? If this is in Windows, it is "cmd.exe" for example.It does not have to be cmd.exe in Windows. Any executable or .bat file can be executed as long as one either specifies the full path or the executable is in a directory that is in the PATH.
    On *nix the file has to have the executable bit set and one either specifies the full path or the executable must be in a directory that is in the PATH . If the executable is a script then if there is a hash-bang (#!) at the start of the first line then the rest of the line is taken as the interpreter  to use. For example #!/bin/bash or #!/usr/bin/perl .
    One both window and *nix one can exec() an interpreter directly and then pass the commands into the process stdin. The advantage of doing this is that one can change the environment in one line and it  remains in effect for subsequent line. A simple example of this for bash on Linux is
    import java.io.OutputStreamWriter;
    import java.io.Writer;
    public class ExecInputThroughStdin
        public static void main(String args[]) throws Exception
            final Process process = Runtime.getRuntime().exec("bash");
            new Thread(new PipeInputStreamToOutputStreamRunnable(process.getErrorStream(), System.err)).start();
            new Thread(new PipeInputStreamToOutputStreamRunnable(process.getInputStream(), System.out)).start();
            final Writer stdin = new OutputStreamWriter(process.getOutputStream());
            stdin.write("xemacs&\n");
            stdin.write("cd ~/work\n");
            stdin.write("dir\n");
            stdin.write("ls\n");
            stdin.write("gobbldygook\n"); // Forces output to stderr
            stdin.write("echo $PATH\n");
            stdin.write("pwd\n");
            stdin.write("df -k\n");
            stdin.write("ifconfig\n");
            stdin.write("echo $CWD\n");
            stdin.write("dir\n");
            stdin.write("cd ~/work/jlib\n");
            stdin.write("dir\n");
            stdin.write("cat /etc/bash.bashrc\n");
            stdin.close();
            final int exitVal = process.waitFor();
            System.out.println("Exit value: " + exitVal);
    }One can use the same approach with Windows using cmd.exe but then one must be aware of the syntactic differences between commands running in .bat file and command run from the command line. Reading 'help cmd' s essential here.
    The class PipeInputStreamToOutputStreamRunnable in the above example just copies an InputStream to an OutputStream and I use
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    public class PipeInputStreamToOutputStreamRunnable implements Runnable
        public PipeInputStreamToOutputStreamRunnable(InputStream is, OutputStream os)
            is_ = is;
            os_ = os;
        public void run()
            try
                final byte[] buffer = new byte[1024];
                for (int count = 0; (count = is_.read(buffer)) >= 0;)
                    os_.write(buffer, 0, count);
            } catch (IOException e)
                e.printStackTrace();
        private final InputStream is_;
        private final OutputStream os_;
    }

  • Running Shell Commands (not Executable) in Unix from Java

    What are my options to run shell commands from Java?
    My goal is to change my existing shell environment variables to some new ones provided by .anotherProfile.
    Using an executable from Java is not an option because it does not work i.e. ( exec(". /home/.profile") ) brings up errors.
    Someone has suggested that I start a child shell with that profile and work from there, but I'm unfamiliar with that sort of syntax and programming in general.
    Any good help equals duke dollars :)

    Well there are some possibilities. In the original thread you mentioned that you wanted the shell script to be executed to change some enviroment parameters of the shell the JVM is executing in.
    If so, and you are able to rewrite the profile so you can parse it manually. Then you can change some environment setting by writing the JNI wrappers for the getenv and setenv system calls. (Check your man pages)
    That will change the environment. I am just wondering what good it will do for you? What's use of sourcing the profile in a JVM?

  • Applescript for running sudo commands in terminal

    I'm a newbie when it comes to Applescript and was wondering if someone could help with a basic request. I need to write a small script to do the following:
    1. Launch terminal
    2. Run the 'Sudo -s' command
    3. Enter the administrator password (in plain text)
    and then
    4. run some sudo commands like "sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add administrator"
    I actually WANT the administrator password to be in the script in plain text even though I understand the security risks (I will literally be the only person to ever see the script). I've trawled forums all over but can't seem to find what I am looking for and cannot get it working by patching together the various commands I have found. Thanks in advance for any help you can give!
    Sean

    I've included two examples.  The preferred way & the hacker way.
    with administrator
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "sudo ls -l  " & quotedUnixDesktopPath with administrator privileges
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run
    This version has an inline password.
    Notice the echo 'password' |
    The single quotes are no accident.
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "echo 'password' | sudo ls -l  " & quotedUnixDesktopPath
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

  • "Run As" Command Not Working

    I'm trying to install a HP Printer & when install program checks for system requirements I'm getting this message...This system cannot be installed using the "Run As" command. Does anyone know why this would be and how to fix it?

    Satellite A215-S7444
    Sounds like you may be installing old stuff from a CD.
    Uninstall the printer and then see this page..
    Downloading a Printer Driver Package and Installing the Drivers in Windows Vista for a Printer Conne...
    Download the new Vista software from Select software and drivers.
    -Jerry

  • Running a command in a command line tool in fastest way

    Before anything I want to clarify some terms : 
    apk
    file (android application package file) : equivalent to executable (exe) files on windows
    aapt.exe
    : A command line tool which comes with android sdk in order to fetch information of an apk file (It obviously has other usages)
    note : This question is not about an android feature. It's all about C# and functionality of .Net framework 
    An
    apk file has a name just same as any other file, but it has a internal name (which will be shown when you install apk file on android os as name of application) 
    with
    aapt.exe I can get internal name of an apk using following command :  
    aapt
    d badging "<apk path>"
    I
    have copied aapt.exe where executable file of my c# application is and I want  :
    Enter
    above command for each apk in selected directory (using GetAllFiles method)
    I want to get internal names of apk files and
    I've tried a lot of ways and I've searched a lot. finally this is what I've got : 
    Process proc = new Process();
    proc.StartInfo.FileName = "cmd.exe";
    proc.StartInfo.RedirectStandardInput = true;
    proc.StartInfo.RedirectStandardOutput = true;
    proc.StartInfo.UseShellExecute = false;
    proc.StartInfo.StandardOutputEncoding = System.Text.Encoding.UTF8;
    proc.Start();
    using (StreamWriter sw = proc.StandardInput)
    foreach (string path in Directories.GetAllFiles(@"E:\apk", "apk"))
    sw.WriteLine("aapt d badging " + "\"" + path + "\"");
    //following line doesn't work because sStandardInput is open
    Debug.WriteLine(proc.StandardOutput.ReadToEnd());
    // There will be a really huge amount of text (at least 20 line per sw.Writeline) and
    //it impacts performance so following line is not really what I'm looking for
    Debug.WriteLine(proc.StandardOutput.ReadToEnd());
    GetAllFiles is
    a function that I've created to fetch all apk file full path. It gets two argument. First argument is path and second one is extension of file you want its full path to be fetched.
    This is not final code.
    As I've commented it out first Debug.WriteLine doesn't
    work and second one is not a good idea. how should I get output from proc?
    I have tried running process by argument and its awful :)
    As another approach :
    Because apk files are basically zip files I can extract them get what I want from them.
    There is an xml file named Androidmanifest.xml in every apk file.
    Androidmanifest.xml is like an ID card for an apk file and apk internal name can be found in it but here are some problems with this approach : 
    1. Androidmanifest.xml is not a plain text file. It's coded and it requires a lot of complexity to decode it
    2. application name (or apk internal name) is an attribute in this file and it's value is not a string value. It's a reference to a file where strings are stored and worst thing is it's not an easy to find out reference. It's just a number

    And you don't get any output from it? Maybe you're passing the arguments incorrectly?
    No. I don't get any result and I have checked arguments and it's correct.
    But you are already running a separate process for every apk file. You start a single cmd.exe and then send it commands that will cause aapt to be run for every file. Unless aapt accepts multiple apk filenames on the command line there's no way
    around using separate processes.
    I didn't know that. anyway speed in this way is much more rather than creating a function. creating a Process object in it and calling function for each apk file.
    I read somewhere that it's possible to run multiple commands in cmd by & operator but as you said I think every command runs aapt. I have tested this approach too and it's very very slow
    fastest approach I have found is what I have wrote here and speed is about  0.6 per apk file which is still slow when there is thousands of apk files.
    I tried an application that does same thing (fetching apk information) and in it's installation directory I found aapt.exe which means it uses this tool to get information but speed is significantly faster rather than my application.   
    So what's your suggestion about this? 

Maybe you are looking for