How to call a cross platform OS command in Scenario?

Dear all,
I have two servers, server W & server L, which is in Windows & Linux platform respectively. I installed ODI agents in both servers. Then I created a scenario which contains a procedure with a Windows OS command. I run it successfully if I kick start the scenario (using startscen.bat) from the Windows server (server W). However, I must kick start it from the Linux server (server L). But then the scenario failed with error message "java.io.IOException: java.io.IOException: cmd: not found". I tried to put parameter "-NAME=WINDOWS_AGENT" to specific the windows agent to run the scenario but got the same error.
Anyone knows if my requirement is feasible? If yes, how to do it? Or I must run it in the same platform? Millions Thanks.
Regards,
Ricardo

When you execute a scenario with a startscen command, it runs the scenario in that process, the NAME= parameter is just reflected in the execution log as the name of the agent which runs the scenario.
If you run a scenario from a OdiStartScen tool in a package, then you can specifiy the AGENT_CODE which delegates the execution to that specific agent. (if you don't specify an AGENT_CODE it defaults to the same agent running the parent)
Hence, if you want to run a command from the OS which initiates the execution on a remote agent, you will need to do one of the following:
- create a scenario which uses an OdiStartScen command to start the scenario (held in a variable) with the parameters (held in a variable) on the agent (from a variable)
- create a java program which utilizes the OdiInvocation API to initiate the excecution of your scenario on remote agents
- If you have the ODI Public Web services deployed, you could even use some tool to use the web service to invoke the execution.
For completeness, you should also refer to the documentation of the odioscommand tool, which will invoke an os command (in the appropriate way on a variety of operating systems.

Similar Messages

  • How to call a ODI Job using Command line?

    Hello All,
    Please help me on this..
    How to call an ODI Job using Command line?
    Thanks
    Ravikiran

    Generate a scenario of your package. Then go to <ODI_HOME>/oracledi/agent/bin in command prompt and invoke startscen command .
    startcmd.sh OdiStartScen -SCEN_NAME=scn_load_data -SCEN_VERSION=001 -CONTEXT=GLOBAL -AGENT_CODE=odiSchedAgent001
    Bhabani
    http://dwteam.in

  • [Forum FAQ]How to use Azure Cross-Platform Command-Line interface in Mac OS

    1. Download the installer on Microsoft Azure website.
    Figure 1.
    2. Open the DMG file and install the following package.
    Figure 2.
    3. Open Terminal (Mac OS build-in), type “azure login” and enter your azure account to login.
    (Note: you can login only via a Microsoft organizational account or service principal.) We used a Microsoft account to connect. (Figure 3)
    Figure 3.
    After that, we can use the commands to manager Azure instances and services. You can type “azure help” to list all the available commands.
    Figure 4.
    If you want to view the detailed information for a specific command, you can type “azure help xxx”. For example, we can run “azure
    help vm” to list all the commands for managing Azure Virtual Machines.
    Figure 5.
    In the figure below, we used the “vm create” command to create a new virtual Machine (testmachine002) in a new cloud service (testmachine003)
    and virtual network (vnet1).
    Figure 6.
    To obtain the image name, you can type “azure vm image list”:
    Figure 7.
    After the “vm create” command executed, we can find that the Virtual Machine(testmachine002) is created in Azure management portal.
    Figure 8.
    More information:
    http://azure.microsoft.com/en-us/documentation/articles/xplat-cli/
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Here on Apple Discussions, you will find many command line enthusiasts hanging out in the UNIX forum. Good luck.

  • How to use the cross-platform jmf?

    I have download a file named jmf-2_1_1a-alljava.zip,when unzip, a bin directory in it,but how to run the jmstudio,jmfregistory?

    You need to get jmf.jar in your CLASSPATH, either on the command line, in an environment variable, by putting a symlink in $JAVA_HOME/lib/ext, whatever works for you. Have you done that? Once it's in the classpath, you can run jmstudio from any directory with the command "java JMStudio".
    Items in the bin directory are just shell scripts, run with "sh jmstudio" or whatever suits your shell (on Mac OS X, copy one of these guys and append ".command" to the filename to make him double-clickable in the Finder).
    --invalidname

  • How to Call variable value in OLEDB Command SSIS

    Hi ,
    I am facing one issue in SSIS OLEDB Command.under OLEDB Command there is sql update query
        UPDATE dbo.ArchiveBBxFbapp
        SET LatestVersion = 0
        WHERE BBxKey = ?
    dbo.ArchiveBBxFbapp is the name of the table, which I want to change by dynamically on fly.
    table name I am getting from variable .
    I want to take same variable value instead of hard coded table name in update statement.
    suggest me the correct command
    thanks and regards,
    Vipin jha
    Thankx & regards, Vipin jha MCP

    For that you've to first store the query itself inside a variable after setting EvaluateAsExpression as true.
    Then use expression as below
    "UPDATE dbo." + @[User::TableName] +
    "SET LatestVersion = 0
    WHERE BBxKey = " + @[User::ColumnValue]
    Use option as SQL command from variable for data access mode property
    Then map the variable containing query above inside this OLEDB command.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to Call Image Viewer from Form application

    Hi,
    how to call Image viewer using host command on oracle form 6i.
    i trying using host command on local/client application .. and it is working ...
    but when i try on server application (EBS - UNIX) it does not working ...
    thanks ..
    regards,
    safar

    Are you using Forms 6i in client/server mode or web deployed? I'm not sure what you mean by 'try on server application"
    Remember that when using a web deployed architecture, a host command will execute the command on the Forms application server, NOT on the client.
    To execute host commands on the client you would have to use WebUtil, but that's not available for Forms 6i. Perhaps there are PJC's out there that can do it for you, but I don't want to get in all those details without me knowing if it is relevant for you.

  • Hi There, Any one Know How To Call Workflow Process From Special Menu.

    Hi There,
    Any one Know How To Call Oracle Workflow Process From Special Menu.
    I mean Tool -> Special Menu 1-45
    Or How to call Oracle Workflow Process From Command Button.
    Thanks
    Bachan.

    Can u give me some examples.
    Second thing we can add special action (special Menus) from Form Personaliztion.
    But how to add launch wft through Personalization
    Please Give me a breaf detail.
    Thanks
    Bachan

  • How to call operating system(windows) functions like sutdown,refresh,et

    Hello,
    I am new in Oracle D2k.I want to know that how to call windows XP/7 shell commands(operating system functions) or windows function key(like F5 for system refresh in windows xp/7) in an Oracle Form.
    Actually I have to make a trigger which can fire at pressing a particular key and execute appropriate action of Windows7 like shutdown,F5(function key of windows to system refresh).
    thank you
    regards
    aaditya.

    Just for future reference, regardless if you are posting in the Forms area of the forum or any other, terms like Forms 11g, Oracle 11g, etc are parts of product names. They are not version numbers although they do offer a slight hint. It is very important that when posting you include the complete version number of any products related to the problem or question you have. For example, you said you are using Oracle Forms 11g. Look at how many possible versions "Forms 11g" could possibly be:
    11.1.1.1
    11.1.1.2
    11.1.1.3
    11.1.1.4
    11.1.1.6
    11.1.2.0
    11.1.2.1
    With each new patch release and major release, a large number of bug fixes are included. In the case of new major releases, in addition to bug fixes, many new features are added. So knowing the version number is important.
    Beyond that, it would appear that you have many questions:
    1. How to copy and paste
    2. How to execute a system shutdown
    3. How to force the browser into full screen mode
    4. Refresh - this one is unclear. What do you mean by "refresh"?
    Let me answer those that I can:
    <blockquote>o Functions like cut/copy/paste are available directly from your Forms code. For these I would recommend referring to the Builder's Online Help. Look for CUT_REGION, COPY_REGION, PASTE_REGION. It might also be helpful to understand SELECT_ALL. For example you may want to code a Copy button like this:
    GO_ITEM('some_text_field);
    SELECT_ALL;
    COPY_REGION;o To execute a system shutdown on the client machine, you would first need to WebUtil enable your form. Refer to the Forms Builder Online Help for information about how to use WebUtil. You can also find lots of information in this forum about WebUtil. Once enabled, you can execute a Windows shutdown in various ways. Here one option:
    Declare
         my_cmd varchar2(255);
    Begin
         my_cmd := 'cmd /c start "" "' || '"shutdown -s -f -t 1"' || '"';
         WEBUTIL_HOST.HOST (my_cmd);
    End;Refer to the Microsoft documentation for more information: http://technet.microsoft.com/en-us/library/bb491003.aspx
    o I'm not sure what you are attempting to do with the F11. I understand that this function key sets the browser to full screen, but the form will not exactly adjust for this change in browser size. You can adjust the applet size dynamically, but not the form. For that you would need to code the behavior yourself. So, before I can offer something specific, it would be helpful to understand what you expectation is and if what you want is to set the browser to full screen, why not just allow the end user to do it? You could easily have a java script popup displayed before the form starts which might say something like "To maximize your browser, press F11"
    o Finally, "refresh". I don't know what you mean here. Refresh what? The Windows desktop, browser, Oracle Forms.....
    </blockquote>

  • Cross-platform compatibility?

    Not addressed in product specs:
    How does Muse handle cross-platform compatibility?
    Does it use HTML5 features?
    How does it handle audio and video?
    Can it generate a 'functioning' contact form?

    Muse handles output for most desktop browsers well.
    Muse only produces HTML5.
    Muse does not import audio or video files unless you paste code into this 'codeless' design tool.
    Muse only produces client side javascript. It offers no server side scripting (contact forms, comment areas, user account registration, password protection, e-commerce). If you want that, you'll need to paste code into this "codeless" design tool.
    It is possible to find more mature web design programs.

  • How to call  file .hlp file with oracle

    i work with devloper 6
    my question is how to call file .hlp by pressing command buttoon ?
    thanks

    What's your module written in?
    Cheers, APC

  • How to call a HP-UX command or shell script from Forms 4.5

    Does anybody know how to call a unix command or shell script to get a files list of HP-UX server from Oracle Forms 4.5 on client side? I tried to use DBMS_PIPE package to get it done but I failed. Please let me have the solution if anybody knows how. Very urgent!

    I tried the host command before and it just let me shell to the DOS environment but not HP-UX environment as Forms was running on Windows platform. So, I could not run a unix command or a shell script. Is DBMS_PIPE the only way to get it done?

  • How to call Operating System commands / external programs from within APEX

    Hi,
    Can someone please suggest how to call Operating Systems commands / external programs from within APEX?
    E.g. say I need to run a SQL script on a particular database. SQL script, database name, userid & password everything is available in a table in Oracle. I want to build a utility in APEX where by when I click a button APEX should run the following
    c:\oracle\bin\sqlplusw.exe userud/password@database @script_name.sql
    Any pointers will be greatly appreciated.
    Thanks & Regards,

    Hi Guys,
    I have reviewed the option of using scheduler and javascript and they do satisfy my requirements PARTIALLY. Any calls to operating system commands through these features will be made on the server where APEX is installed.
    However, here what I am looking at is to call operating systems programs on client machine. For example in my APEX application I have constructed the following strings of commands that needs to be run to execute a change request.
    sqlplusw.exe user/password@database @script1.sql
    sqlplusw.exe user/password@database @script2.sql
    sqlplusw.exe user/password@database @script3.sql
    sqlplusw.exe user/password@database @script4.sql
    What I want is to have a button/link on the APEX screen along with these lines so that when I click that link/button this entire line of command gets executed in the same way it would get executed if I copy and paste this command in the command window of windows.
    Believe me, if I am able to achieve what I intend to do, it is going to save a lot of our DBAs time and effort.
    Any help will be greatly appreciated.
    Thanks & Regards,

  • How to call linux command ?

    hi all,
    I wanna make java application which display the ouput of linux command (eg. ps -ax output in JTextArea).
    The problem is how to call "ps,kill,etc" ?

    JTextArea txtOutput = new JTextArea();
    String cmd = "ps -a";
    Process proc = Runtime.getRuntime().exec(cmd);
    BufferedReader buf = new BufferedReader(new InputStreamReader(proc.getInputStream()));
    String out;
    while ((out = buf.readLine()) != null){
    System.out.println("Output: "+out);
    txtOutput.append(out+"\n");
    }

  • How to call unix script/command in ODI

    Hello Gurus,
    Please let me know how to call unix script/command in ODI?
    Thanks
    Shridhar

    you can call shell script using the OS command found in Package.
    Step 1. Drag the OS Command in the Packgae
    Step 2. In the Text mentiond call the script say for ex sh /opt/path/script.sh
    Step 3. Execute.
    Note : Make sure the User through which ODI is triggering does have the required permission to execute shellscript , also always provide the full path , since scripts are execute from the oracldi/bin folder so its necessary to provide the complete path of the script location.
    Hope this helps.

  • How to call gnuplot command from java

    Hi there,
    In our course, we are required to develop an GUI for gnuplot. In case you don't know about gnuplot, it's a plotting program and has lots of command. We want to use java and swing, but now we don't know how to call gnuplot command from java, or how to execute a shell command(script) from java.
    By the way, since we need read in files with several columns of data and allow user to select a column, we want to use JTable. Is that reasonable?
    Thanks a lot for any suggestions!
    Jack

    Hi, there:
    Will using JTable add much overhead? I may have to use several JTables and switch among them. I can add scroll bar to or edit JTables, right?
    BTW, do you have experience about gnuplot? Can I find the command tree of gnuplot somewhere? Or do you know a better place to post question about gnuplot? unix/linux group, maybe.
    Thanks,
    Jack
    P.S. Would you guys answer my question after I use up my duke dollars? :- )

Maybe you are looking for

  • Can't startup the database through "isqlplusdba"

    I have connectd as sysdba to the oracle 9i database through iSQLPLUSDBA. My database was initially in started mode. Then I did a normal shutdown(successfully). But When I try to startup it gives me following error. LRM-00101: unknown parameter name '

  • Rstudio crashes loading ORE 1.3 packages

    Hi, Happy New Year, All There!! Recently I am testing a newly released ORE 1.3 packages on Exadata X3-2 QR machine. Under Linux shell there's no problem to run it. Looks very good.. But, when I try loading ORE packages under RStudio, the session cras

  • How to find which query ORA-1652: unable to extend temp segment by 128 in

    How can i find which query caused the below error,the query is not running currently ORACLE ERRORS IN ALERTS LOG dnb2stg3 - lnx300 on Thu Jun 17 12:10:01 EDT 2010 1 ORA-1652: unable to extend temp segment by 128 in tablespace TEMP_SCHED SQL> select i

  • Pre-install advise

    I upgraded to SL and got all sorts of unexpected crashing of my apps when trying to attach files (ie. mail or entourage attaching files, safari or firefox when uploading files etc..) tried all sorts of things with tech support, the only way it worked

  • How can I donwload photographs from my SONY Cyber-shot to my MacBook Pro? I have the connection cord

    I have filled the Memory Stick PRO on my SONY Cyber-Shot. The Memory Stick doesn't fit my MacBook Pro so I bought the cable to connect the camera and my machine. However, I can't find how to make the download work. [I am a novice at this.]