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

Similar Messages

  • Using substitution variable with multiple values in Maxl Command

    Hi All,
    Is there any option to use multiple values in 1 substitution variable and use them in a Maxl command.
    alter database $app_name.$db_name clear data in region '{CrossJoin(CrossJoin(CrossJoin({StrTOMbr(&Months)},{XXX, YYY}),{StrTOMbr(&CURYR)}), {ZZZ})}'physical;
    In the above case
    Maxl is not working if I have multiple months in &Months Substitution variable.
    Let me know if there is an alternate option to implement this.
    Thanks
    Sathish

    What is the value of &Months?
    If you put that exact value into the code, does it work?
    Regards,
    Cameron Lackpour

  • LaunchExecutableEx() with editable bat commands

    Hi, CVI veterans,
    I succeed reading back firmware and EEPROM from a uc with a bat of below code.
    int status;
    char fw_pro_cmd[300]="D:\\data\\read_uc.bat"; 
    SetWaitCursor(1); 
    status=LaunchExecutableEx(fw_pro_cmd,LE_HIDE,&cmd_handle);   
    Delay(8); // 8 second is to make sure the cmd is executed surely.
    RetireExecutableHandle(cmd_handle);
    SetWaitCursor(0);
    The content of read_uc.bat is
    cd d:\Data\
    pk2cmd.exe /PPIC18F2320 /GFD:\1.hex >>d:\1.txt
    ===============================
    /GFD:\1.hex means to save the content to D:\1.hex.
    I’d like to the hex destination is changeable easier in my next version, instead of fixing it in the bat file. e.g., user can set hex name or full path from user interface.
    One approach is to modify the bat file with CVI before using LaunchExecutableEx() , but I don’t prefer it.
    Is there a beeter way? Please advise.
    Thanks.
    Solved!
    Go to Solution.

    Hi labc, a simple google search returned this page which I consider exhaustive on DOS batch files.
    There is nothing different on their usage in CVI: you must simply accomodate in a proper way the string to pass to LaunchExecutable.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

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

  • EPM 11.1.2.1 add a MSAD user to a HSS native group via MaxL command

    Hi there
    I want to take over MSAD user as EPM (Essbase) user in a HSS native group via MaxL command:
    This works fine as long as the user is already in at least one other group (with at least server access).
    If I want to do same for a "new" user it fails.
    Is there any trick to also make it work for this case?
    see here:
    alter user 'mynewuser' add to group 'ALL_SERVER_ACCESS_ ESS1';
    ERROR - 1051012 - User mynewuser does not exist.
    or even
    alter user 'mynewuser@domain' add to group 'ALL_SERVER_ACCESS_ ESS1';
    ERROR - 1051012 - User mynewuser@domain does not exist.
    Thanks in advance!
    Regards
    Andre

    You will probably need issue a create first for example
    create or replace user 'essuser' type external;
    alter user 'essuser' add to group essgroup;
    or
    create or replace user 'essuser@LDAPNAME' type external;
    alter user 'essuser@LDAPNAME' add to group essgroup;
    Cheers
    John
    http://john-goodwin.blogspot.com/

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

  • Maxl command for HBR

    Hi
    Is there any Maxl command which helps assigning access rights to Business Rule?
    Thanks
    Shyam

    Maxl does not interact with business rules,unfortunately there is no command line functionality for setting access permissions with classic business rules.
    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

  • 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

  • How to exec command with parameters through runtime.exec()

    im trying to run a command prompt passing in parameters. Right now im creating a .bat file like this
    c:
    cd C:\SOMEDIR
    ant deploy moreparameters
    and then passing in the file name into the exec command. It is running fine but im trying to use the runtime.destroy() command and it doesnt close the ant command, it only closes the bat file which was already closed. Is there a command I could pass into the exec() method to run the ant command with the parameters without using a bat file?

    im getting a CreateProcess: ant deploy -Dswasm=swasm error=2
    When i try to do
    cmds[0] = "ant";
    cmds[1] = "deploy";
    cmds[2] = "-Dswasm=all-bs";
    Process p = runTime.exec(cmds, null, new File("C:\\Program Files\\apache-ant-1.6.1\\bin"));
    its like it cant find ant. But it finds java command fine. What should i pass into the second parameter, it says "If envp is null, the subprocess inherits the environment settings of the current process. " Does that mean it will take the window system enviroment variables? if not what string would i pass in to set where ant is?

  • Execute MAXL file with Workspace

    Hi,
    I like to know if exists a method for start a MAXL file (write with Essbase Maxl Editor) with command like:
    alter system set variable ‘name_variable’ ‘new_value’;
    from workspace or without go into Essbase.
    Thanks a lot!

    Yeah, yeah, old thread. But just in case anyone runs across this, check out this related thread:
    maxl run from workspace
    Regards,
    Cameron Lackpour

  • Running Tasklist command with Administrator Priviledges

    Hi,
    I am trying to use tasklist command in my bat file to retrieve the list of users running some process say test.exe.
    I am using following command in my bat file.
    tasklist /v /fo table /nh /fi "IMAGENAME eq test.exe" > C:\temp\output.txt
    When I run this bat file as administrator, it works fine and gives the names of users. But, when I run it as some other user, it will give UNKNOWN values in the username coulmn. I have given Full Rights to tasklist.exe in C:\Windows\System32 but still the
    issue remains. How can I run the bat file with normal user privileges to get the Usernames?
    Please help. 
    P.S:- I don't want to add the bat file in my Scheduled Task and run the the Task as administrator. That works, but I have to do this without going into making the Scheduled Task.
    Bhushan Chanda

    Hi Mandy,
    Thanks for trying it out. Yes, I know I can use the Scheduled Tasks to run the bat file with Admin Privileges, but just thought, if there is a way round, that will make life of many easier.
    Bhushan Chanda
    Hi, 
    We could run TASKLIST /V to see details similar to what Task Manager shows. While Task Manager is limited to provide only local machine's information. So we could use a user of the local administrator group to list other user names.
    For more detailed information, please refer to the article below:
    Few must-know tools for basic system administration 
    http://sogeeky.blogspot.in/2006/06/few-must-know-tools-for-basic-system.html
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards, 
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Disk repair using the format - repair command with a mounted partition

    I was going to repair some bad blocks on a disk by using the format command with the repair option. When I entered the block number to be fixed it came back withthe question of:
    "Repair is in a mounted partition, continue?"
    Will I hurt anything on my system if I answer yes to continue or should the partition be unmounted before I do this?
    Thanks

    Did you have any answer?

  • Manual startup/shutdown of  windows services using command prompt or .bat

    Hi,
    I know that we could shutdown and start of SAP in windows using the following commands in a .bat file.
    SAP:
         stopsap name=<SID> nr=<SYSNR> SAPDIAHOST=<host>
         startsap name=<SID> nr=<SYSNR> SAPDIAHOST=<host>
    OS Collector:
         saposcol -k
    Oracle Listener:
         lsnrctl stop / start
    How about the following services: 
         SAPDEV_00
         OracleOraHome92Agent
         OracleServiceDEV
    How can I stop and start of these services in a batch file?
    thanks,
    kbas

    Try,
    net stop <service name>
    net start <service name>
    Message was edited by:
            Bidwan Baruah

  • Tcp/ip write help - need to send a motor command with parameters

    hello - i have one small, main labview 7.0 vi that i use to control a drill's two motors.
    right now i press a button on the front panel to move the motor, and when i do, a sub vi window pops up so the operator can set a couple of parameters and press an ok button.....the vi then sends the command with the parameters to the drill's motors.
    i am trying to change it so i can send the move command from another computer, in another room, while the main vi sits on the computer with the drill. i know i will use TCP listen, write, read, and close in both the main vi (the TCP server?) and the client which is on the remote computer.
    my problem is with setting the parameters for the subvi's that usually pops up. how do i set the parameters from the remote-client and have them be sent into the subvi on the main vi. if i can do this, i would have to also have a way to close the sub vi after it pops up in the main program too.
    OR should i use something else like and application reference or an invoke node function?????
    please help
    thanks!!!!
    sam

    Hi again,
    If the VI in the lab will be running continuously, then you will need
    to alter some things from the example I sent you or look at an
    alternate implementation. The example I sent you assumed that the VI in
    the lab was not running. This technique actually starts the VI and runs
    it somewhat like a subVI. It inputs values into the connector pane,
    runs it, and then returns values from the outputs on the connector pane
    after it finishes executing. It will not work to call a VI by reference
    if it is already continuously running.
    Instead I imagine you would want to have your VI in the lab have some
    sort of State Machine that polls a certain control value, such as an
    enum control, to determine which state to execute next. You could
    modify the technique I first sent to still open a reference to the VI
    in the lab, but it wouldn't try to run it. Instead you could use the VI
    method Set Control Value to set the value of a certain control or
    controls in the lab VI to certain values. The VI in the lab would then
    hopefully be in some Idle state where it polled one of those control
    values continuously to decide what to do next. That would allow the VI
    in the office to programmatically send commands to the other VI, as
    well as parameters for those commands. Simply set control values for
    the VI in the lab and let the VI in the lab go about its business. I've
    attached an example below.
    That's just one idea. Other options you have would be to use a
    DataSocket connection to send parameters and commands back and forth
    between computers. This is a pretty simple API to use. If you have
    LabVIEW 8, Shared Variables are an option. Or you might look into
    simply using Remote Front panels, which allows you to connect to a VIs
    Front Panel across the network. You could then have the whole VI in the
    Lab, but you could connect to it, view it, modify the controls and so
    on from your office. If you want to view and control a VI without
    having LabVIEW installed on the viewing computer, you can use the Web
    Publishing Tool to create a web interface for your front panel. Lots of
    options. Let me know what sounds interesting.
    Jarrod S.
    National Instruments
    Attachments:
    Lab_VI.vi ‏29 KB
    Office_VI.vi ‏51 KB

Maybe you are looking for

  • Passing a QueryString in Struts-Config.xml

    Hi, How to pass a queryString in Struts-Config.xml?? For eg, <forward name="Success"                    path="/TestAction.do?method=nextPage&Id=100">                </forward> Not working in struts 1.1. Where it is taking only one parameter where it

  • Issue Related to GL mapping

    Hi, Pls let me know where I can assign the GL against any wage type??Pls elaborate all the steps. Also let me know From where I can get the Balance sheet & Profit & Loss Account GL mapping against any wage type.as their will be two GL assigned agains

  • SPhone keeps turning on and off after restore???

    HI, I recently got a refurbished iphone 3gs.  I have tried to restore the last backup from my old iphone but once the restore is complete the phono continually turns itself off and on.  Does anyone know what I have done wrong?  Thanks

  • Q sample file error in hello ejb test......

    hi, some errors!!! when i run "runit.bat", i met error... like this, "Exception in thread "main" javax.naming.NameNotFoundException:Nothing bound for specified name...... exception is .......... at org.omg.CosNaming.NamingContestPackage.NotFoundHelpe

  • Skype ALWAYS showing as Online, even when i'm not ...

    It tells ppl im online even though i am not i have the time and date on both pictures to show it. Attachments: 11430302_10153068640945819_676409802_o.jpg ‏138 KB skype.png ‏1922 KB