Executing MaxL using startMaxL.cmd similar to ESSMSH in 11.1.1.x

Prior to 11.1.2.x, it was possible to read in values (for example server name, username and password) and then pipe dynamically-generated MaxL straight to ESSMSH and execute, all within a batch script. For example:
Batch Script (cut-down example):
FOR /F "eol=; tokens=1,2,3 delims=, " %%i in (\\<servername>\Folder1\Folder2\File.txt) do SET SERVER=%%~i & SET USER=%%~j & SET PASS=%%~k
( @echo login %USER% identified by %PASS% on %SERVER%; & @echo display variable all; & @echo exit; ) | essmsh
However, one now has to use "startMaxL.cmd", by calling it and passing the MaxL as a saved script as a paramter. This relies on the script being in a fixed state (i.e. not dynamically generated):
c:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient\bin\startMaxl.cmd c:\MaxLScript.mxl
It there a way to return to something more like the previous example? I would like to continue to read in values (for example server name, username and password) from a separate text file, and to dynamically-generate the MaxL before executing ESSMSH as before, but I haven't yet found a way to do this. Any suggestions would be greatly appreciated.

Hi James,
There are a number of different ways of doing this, if you want to stick to way you are going about then you can still call essmsh, all that startMaxl.bat is doing is setting environment variables before calling essmsh, just edit it and have a look.
So you could take the variables out of the startMaxl.bat and put them in your script or call a script with them in e.g.
set ESSBASEPATH=C:\Oracle\Middleware\EPMSystem11R1\common\EssbaseRTC-64\11.1.2.0
set ARBORPATH=%ESSBASEPATH%
set PATH=C:\Oracle\Middleware\EPMSystem11R1\bin;%ESSBASEPATH%;%ESSBASEPATH%\BIN;%PATH%
FOR /F "eol=; tokens=1,2,3 delims=, " %%i in (\\<servername>\Folder1\Folder2\File.txt) do SET SERVER=%%~i & SET USER=%%~j & SET PASS=%%~k
( @echo login %USER% identified by %PASS% on %SERVER%; & @echo display variable all; & @echo exit; ) | essmsh
I added %ESSBASEPATH%\bin to the set PATH instead of using %ESSBASEPATH%\bin\essmsh.exe like in startMaxl.bat but it doesn't have to be like that.
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • Execute Maxl script on Linux

    Hi,
    Can you tell me how can i execute the .mxl scrip on the Linux server?
    should i create the .sh file? for that which command i can use?r another way to call the .mxl file?
    Thanks,

    Hello everybody:
    I have got a similar problem under Solaris.
    I call my mxl file as:
    +./startMaxl.sh /<file path>/file.mxl 'Month 01' 'Year 2010'+
    but file is not being executed, MAXL console is showed instead.
    Why this does not work?. I use Essbase 11.1.1.2 and I have read related posts but I have not found any answer to my problem.
    My script code is:
    login admin password on localhost;
    alter database OLOGISMO.Mov set variable Month $1;
    alter database OLOGISMO.Mov set variable Year $2;
    logout;
    What is wrong with +./startMaxl.sh+?. I have tested the same code in Windows and works properly (using this as parameters '"\"Month 01\""' '"\"year 2010\""'. If I were using essmsh, could be environment variables, but I am using startMaxl.sh, right?
    Thank you.
    Regards
    Javier

  • Error while executing a scenario from CMD

    I am trying to execute a scenario from CMD using the starctscen command.
    when I use the below command
    E:\OraHome_ODI\oracledi\bin\startscen EXT_DATA 002 GLOBAL
    it is executing correctly
    but I tried to create a sceduler for the execution where i used the below command
    C:\Documents and Settings\Desktop>"E:\OraHome_ODI\oracledi\bin\startscen.bat" EXT_DATA 002 GLOBAL
    and it is giving me the following error
    The system cannot find the path specified.
    OracleDI: Starting scenario EXT_DATA 002 in context GLOBAL ...
    'oracle.odi.Agent' is not recognized as an internal or external command,
    operable program or batch file.
    can someone help me on this.
    Thanks,
    Sri

    In the batch File write this way
    cd E:\OraHome_ODI\oracledi\bin
    E:
    startscen EXT_DATA 002 GLOBAL In case you are providing the values (EXT_DATA 002 GLOBAL) as parameter
    then call the startscen this way
    cd E:\OraHome_ODI\oracledi\bin
    E:
    startscen %1 %2 %3

  • Execute " net use \\servername\..... "

    Hi.
    If i run this command from my Windows XP machine.
    net use \\timecare\winlas winlas /USER:winlasuser &&\\timecare\winlas\winlas.exe
    It works perfect ....
    But when I try it with Zenworks ..... it aint ... the cmd.exe just pops up and then
    dissaperes, and then no more.

    yes... but that didn´t help.
    Had to make two ZFD objects.
    The first one..
    net use \\timecare\winlas \\timecare\winlas> winlas /USER:winlasuser
    the second one..
    \\timecare\winlas\winlas.exe
    and the second one, has a dep. with the first one.
    // Patrik
    >>>
    Från:craig wilson<[email protected]>
    Till:novell.support.zenworks.desktop-management.7x.applications
    Datum:2010-04-12 14:46
    Ärende:Re: Execute " net use \\servername\..... "
    the path to file should be net.exe
    On 4/12/2010 6:58 AM, xilefp wrote:
    > Hi.
    > If i run this command from my Windows XP machine.
    > net use \\timecare\winlas <file://\\timecare\winlas> winlas
    > /USER:winlasuser &&\\timecare\winlas\winlas.exe
    > It works perfect ....
    > But when I try it with Zenworks ..... it aint ... the cmd.exe just pops
    > up and then
    > dissaperes, and then no more.

  • How can I use Anquet or similar mountain mapping software on my iMac?

    As a keen hillwalker I would like to be able to use Anquet or similar maps - at present I use well-worn OS 1:50,000 maps but would like to print out relevant maps for whatever hill I'm doing, and possibly also get into using a GPS.
    According to the Anquet website their software doesn't work on Macs. I don't want to switch to PC but might have to. Any way round the problem without costing too much?

    you could try looking at this-
    http://ipod.about.com/od/ipad/qt/sync-photos-to-ipad.htm
    Basically
    >open itunes
    >go to ipad device screen
    >photos tab
    >you should get the option to sync folders containing pictures from your mac
    >select the folders you wish to sync
    >hit sync button

  • Issue in Selection Screen of ABAP report after executing it using TCode

    Hi,
    I have one Z program having a selection screen for it. One selection variable is non editable for the users (has default value) whereas user can enter the value in other selection variable.
    To make the first variable non editable, I have used the following code.
    INITIALIZATION.
      LOOP AT SCREEN.
        IF screen-name = 'P_USER'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Now when I execute this program from SE38, it works fine. But when I execute it using a Tcode (assigned in SE93), the first variable also become editable for users.
    How can I keep the first variable non editable even after executing the program using a Tcode?
    Regards,
    Yogesh

    Hi,
    It seems you create a Transaction type: Dialog transaction.
    Delete current transaction and create one with Transaction type: Report transaction (radio button in row 2nd)
    regards,

  • Why do the rulers (cmd R) disappear after using Print (cmd P) ?

    Why do the rulers (cmd R) disappear after using Print (cmd P) ?

    If you are referring to Pages v5.2.2 on Mavericks, or v5.5.1 on Yosemite — the rulers do not disappear in the Pages document when using the Print (cmd+P) keyboard shortcut. The document horizontal rules are temporarily obscurred by the drop down print dialog sheet.
    I observe no evidence of disappearing rules unless they are forced via the cmd+R keyboard shortcut.

  • Open links by click withot using the cmd-button

    I am sad about it, that Apple has not yet implemented the feature to open new sites in a new tab just by ckicking the desired link -- you still have to use the cmd-button. that's not that intuitive.
    Ich finde es panne, daß es Apple noch immer nicht geschafft hat, daß man die Einstellungen dahingehend verändern kann, daß LInks per Klick gleich in einem neuen Tab im aktuellen Fenster geöffnet werden.
    Dazu muß man nach wie vor die Befehlstaste gedrückt halten.

    What I would try is accessing that mailbox through some other route and deleting the message from there. It sounds like that message is simply corrupted in some way.

  • Building executables when using LV and MATRIXx

    Hi!
    With respect to Building executables when using LV and MATRIXx, I need clarification on following:
    1) Pre-requisites to use MATRIXx? We have LV 7.1 FDS with application builder.
    2) Licensing scheme? We would like to have MATRIX on 3 development stations.
    3) Can we build stand alone executables when using MATRIXx with LV?
    4) Do we need to purchase any addon to achieve (3) ?
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Hello Gurdas,
    Before I answer your questions, I am curious to know what you have in mind for the stand alone executables you are interested in building. It may help me to know a little more detail about your plans. Depending on your application, some of these answers may or may not be applicable. In any case, here are answers to your questions:
    1) There are no prerequisites for using MATRIXx. LabVIEW is not required. However, with LabVIEW FDS, you do have an Xmath Script node located in the Functions > All Functions > Analyze > Mathematics > Formula palette. This node can be used to call Xmath scripts from LabVIEW.
    Note: To use the Xmath Script node successfully, you will want to install LabVIEW 7.1.1 Maintenance Release. Refer to KnowledgeBase 300A6NDT: How Can I Resolve MATLAB and Xmath Script Node Issues in LabVIEW?
    2) There are two licensing options for MATRIXx: node-locked and floating (concurrent). A node-locked license is restricted to a specific node and can be installed and used on that single computer. A floating (concurrent) license allows use of the product by a specified number of concurrent users on any computer on a local area network that includes a server running a single license manager. For more information, follow the link to the MATRIXx Price List from Products and Services: MATRIXx.
    3) There are two ways you might build executables when using MATRIXx and LabVIEW. One way uses a component of MATRIXx to automatically generate C code. AutoCode is a component of MATRIXx that allows the user to turn system models into C code. This C code can then be compiled into an EXE or DLL. If built into a DLL, LabVIEW can be used to call the DLL. A more thorough explanation of this is provided in Developer Zone Tutorial: Running MATRIXx SystemBuild Models in LabVIEW/LabVIEW Real-Time.
    Another way that may work is to build an executable from a LabVIEW VI that uses an Xmath Script Node. Any target machine running this executable would need to have Xmath and the LabVIEW Run-Time Engine installed.
    4) No other add-ons are needed for (3). Do be sure to refer to the note following the answer to (1).
    Regards,
    Eric M.

  • Unable to use endeca-cmd against the running Endeca Server

    Hello Endeca forum,
    I'm working in a client environment in which I can see that the Endeca Server is running:
    1. Going to a browser on the server itself, I can see a positive result page when I go to http://localhost:7770/admin/<datasource>?op=ping
    2. When I'm in the linux server and do a "ps -ef | grep "start", I see that there is a process running the server with "-Djetty.port=7770"
    3. Studio running on the same server has datasources pointing at localhost:7770 (and Studio is showing data)
    However, when I go to the endeca-cmd and try to create a new datasource ("./endeca-cmd create-ds <new_datasource_name>"), I see the following error:
    "*Error contacting the Endeca Server localhost:7770: com/endeca/opmodel/opSupport/MkMdexRunner*"
    I get the same error if I try to use a graph in Data Integrator with the "Create Data Store" component (taken from the quickstart InitDataStore.grf, but pointing to the client's Endeca Server).
    Running "./endeca-cmd version" gives me an equally cryptic error:
    "*Error contacting the Endeca Server localhost:7770: com/endeca/mdex/admin/_1/Admin*"
    Has anyone seen this before?
    I'm starting to think that this may be a strange environment issue, but I can't figure why I'd be able to see the server running through other means, but fail to interact with the server using endeca-cmd.
    Thanks,
    Jerome

    Hey Brett,
    Good points. Unfortunately, I can't install SoapUI on the client's server (where the Endeca Server is running), but I was able to run a graph that tries to create a dgraph on it (which is an HTTP call to the createDataStore operation). This call resulted in the same error that I saw when invoking "endeca-cmd create-ds". However, the failure of the graph gives me a little more in the form of a partial stack trace...
    org.apache.axis2.AxisFault: com/endeca/opmodel/opSupport/MkMdexRunner
    at org.apache.axis2.description.OutInAxisOperationClient$NonBlockingInvocationWorker.run(OutInAxisOperation.java:451)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    ... which doesn't really tell me anything.
    Is there a place where I can see logs for the Endeca Server? Might be able to get a little more from a full stack trace...
    I know that dgraph logs are at…
    <OEID_installation>/Server/2.3.0/endeca-server/logs
    But obviously these don’t hold anything about the dgraph that I’m trying to create.
    Thanks,
    Jerome

  • Exporting Planning forms security using exportsecurity.cmd

    Is there a way to export only the planning forms security info using exportsecurity.cmd ? I am using Planning 9.3.1.2.
    I can export dimension level security, group level and user level. I am not able to figure out a way to export only the form security.
    Any suggestions?

    If I remember correctly you can import security on forms but it doesn't seem to export it (my mind may be playing tricks and I could be wrong), from 11 I know you can definitely import and export permissions on forms.
    If it is not possible you can always run a query against the planning application relational repository for example
    select formname.object_name as "Formname", username.object_name as "Username/Group",
    case acc.access_mode
    when 1 then 'Read'
    when 3 then 'Write'
    when -1 then 'None'
    end as "Access"
    from
    hsp_access_control acc, hsp_form form, hsp_object formname, hsp_object username
    where acc.object_id = form.form_id
    and formname.object_id = form.form_id
    and acc.user_id = username.object_id
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to execute Transaction Using JCO

    Hello Developper;
      Is it possible to execute Transactions using JCO API's or not ?
    If yes, can you please provide me with a snippets, from conecting to executing the Transaction and then getting the result.
    Regards
    Anis

    Hi Anis,
    I really don't understand the use of JCO if you to use it in the same SAP Box. As JCO is basically to have some front end applications without SAP GUI Client,
    Could you please let me know if I am not on the same level.
    Thanks,
    Hamendra

  • Tips on transferring LV executable that uses Field Point Serial to another PC

    I have been trying to transfer an LabVIEW compiled executable  from one PC to another
    The executable references 2 field point serial banks.
    After hours of frustration I think I have it pinned it down to the fact that (at least for me) It is not possible unless LabVIEW is invoked on the target machine.
    Only if I start LV 2010 and configure a field point control on it then LabVIEW can refer to the Bank. After that I can have it refer to the correct IAK file and the executable will work. 
    However IF I try to transfer from another machine without starting LabVIEW on the target machine it simply will not work for me.
    It seems that I have to load a FIeld point control on a block diagram of a new machine then configure it to get dialogs to come up specifying
    how to select the proper configuration. I do not see any of this help in MAX
    Id much rather have a way of setting up in MAX than having my EXE work right away. Instead my workaround is to
    start LabVIEW and configure a field point control to get it set up proiperly.
    This means I may have to install yet another version of LabVIEw to get the exe to work again and its getting tiresome.
    I use INI files for the serial port settings. Its the field point software that has me going in circles.
    If anyone have any experience or tips for transferring an executable that uses fieldpoint serial (FP-1000) from one PC to another PC
    without having to invoke LabVIEW to configureit I would be interested in hearing from you. Thanks
    PS Target machine has LV2010   MAV ver 4.70f4
    Executable compiled in LV 2010
    Source Machine has LV 2010 SP1  MAX ver 4.7.6
    Executable compiled in LV 2010 SP1
    My next move is to upgrade the target to 2010 SP1 and try again but it has already taken me days to transfer this one program
    and I still cant figure out how to do it so I might just wait and see if there is any interest in helping me first.
    Thanks again!

    I have been to these KnowledgeBase links and what is so frustrating about it is that I have have not seen anything that was not already done
    automatically when I created the executable on the source machine and transferred the executable to the target machine.
    http://digital.ni.com/public.nsf/allkb/734179A2A6779C4286256C4C0069C5F4
    http://digital.ni.com/public.nsf/allkb/2DC46E07FAA0A5EF86256F35006E9AE5
    http://digital.ni.com/public.nsf/allkb/0E9001A8C84CD89486256DE80073F198
    MY FP version is 6.07 on both machines.
    The dll is where its supposed to be on the target machine in a Data subfolder under the main application (exe) folder
    The IAK file is created in MAX with the designations identical to what is the source machine.
    The EXE is now partially working (somehow) but I am trying to find out the exact procedure for next time so I can write it down for future reference..
    EVen though the target application now 'sees' the Field point banks the utility I added into the exe to allow user to configure a front panel Field Point control
    (should it be required) does not work. Instead when I try to browse configure the control in the executable I now get this error dialog.
    This must be the root of all my troubles.
    I am now attempting to resolve this by installing LV2010 SP1  and DCD_NOV10 on the target machine so that it matches the source machine.
    (If I am going to re-install Fieldpoint I might as well install the whole Device Driver CD)
    I hope this solves this issue once and for all.
    Your knowledge base insists that if the field point versions are the same on both machines and if the DLL is where it is supposed to be and if the IAK file is loaded and saved
    this should work. It did not and still does not fully work. If I can find the exact reason I will report it in this thread.
    Attachments:
    ni-FP-error.GIF ‏16 KB

  • Unable to do data form export using FormDEfUtil.cmd

    Hi all,
    I'm not able to do the data form export using FormDEfUtil.cmd.
    D:\hyperion\planning\bin\FormDEfUtil.cmd export <formname> localhost admin password <appname>
    I get this below message when tried the above script in cmd prompt.
    usage: HspFormDefUtil <import/export> <filename/formname/-all> <server> <username> <password> <application>.
    Any help is appreciable.
    Thanks!!
    Rev

    It works..but still i dint get the .xml file..when checked the log,it is updated as below,
    hbrserver.log:
    +2010-08-17 07:54:44,346 WARN main com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving user by identity+
    FormDefUtil.log:
    Single sign on validation failed.
    there could be any prob in authentication.??
    Thanks!!
    Rev

  • Error comparing to catalogs using runcat.cmd

    Hi,
    I am trying to compare to catalogs using runcat.cmd, it gives me the below error.
    Missing or bad option "-outputFile".
    The syntax I use :
    runcat.cmd -cmd diff -baseline c:\sample1 -latest c:\sample2 -outputfile c:\output1.txt -folder /shared -verbosity detail
    Example in help:
    runcat.cmd/runcat.sh -cmd diff -baseline c:\temp\eba795 -latest c:\temp\eba796 -outputFile c:\temp\diff.txt -folder /shared/Sales:/shared/Financials -verbosity detail
    Need help on this.

    Now I get a new error after chnaging -outputfile to -outputFile.
    no sawjniapi3r in java.library.path
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.siebel.analytics.web.catalogmanager.commands.Command.runCmd(Comma
    nd.java:469)
    at com.siebel.analytics.web.catalogmanager.commands.Command.processCmdLi
    ne(Command.java:700)
    at com.siebel.analytics.web.catalogmanager.CatalogManager.start(CatalogM
    anager.java:36)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl
    e.java:193)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
    cation(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec
    lipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
    va:386)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
    va:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
    Caused by: java.lang.UnsatisfiedLinkError: no sawjniapi3r in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at com.siebel.analytics.web.catalogmanager.JNIConnection.init(JNIConnect
    ion.java:84)
    at com.siebel.analytics.web.catalogmanager.JNIConnection.<init>(JNIConne
    ction.java:25)
    at com.siebel.analytics.web.catalogmanager.OfflineConnectionManager.<ini
    t>(OfflineConnectionManager.java:29)
    at com.siebel.analytics.web.catalogmanager.PluginManager.activate(Plugin
    Manager.java:62)
    at com.siebel.analytics.web.catalogmanager.PluginManager.connect(PluginM
    anager.java:77)
    at com.siebel.analytics.web.catalogmanager.commands.Command.login(Comman
    d.java:1605)
    at com.siebel.analytics.web.catalogmanager.commands.DiffCommand.run(Diff
    Command.java:185)

Maybe you are looking for

  • "null" does not have metadata

    I have an abstract base class named "Activity" and a derived class named "Transfer". When trying to retrieve an instance of "Transfer" using Transfer t = (Transfer)pm.getObjectById( new Transfer.OID( 100 ),true ); it throws Nested exception is: Type

  • Do you know what means "RR amount"  ?

    Hi, I am a beginner in Sap HCM and I don't understand what the following means : "The monthly RR max amount in the remaining cycle is at 40% of MRS" MRS = Monthly Reference Salary and I know I can get it via PA20 IT0008 but what means "RR max amount

  • C8180 won't align with white paper

    Hi just bought a used C8180.  The print test shows blank for light cyan and cyan and white stripes forj light magenta and magenta. I replaced all cartriges with new ones. I've run numerouse printhead cleaning and self test reports. Black print is fin

  • Corrupt text from iPad export

    So, I've emailed myself the PDF of the Keynote presentation I created on my iPad. I also used iWork.com. I also transferred it via iTunes. The problem: All of them have several pages of corrupt text whether opening in Acrobat or Preview. All I get ar

  • Won't accept serial number after migrations

    I just bought a new imac and after migration, I can't launch Aperture 3. Says my serial number is not valid. I typed in my Aperture 2 and Aperture 3 upgrade serial numbers from the boxes. Still says not valid. Any tips on what to do? Thanks!