How to run scripts unix through rules?

Hi all

The scenario is there are rules and when the rule is executed because of a condition of a unix script file to run.

What is the right way to configure the rule for running a unix script file? We tried the "action command" option in the tab 'action' "conditions, alarms and action", but its does not work.

Any help would be appreciated.

Thanks in advance.

Hi basil,.

The correct way to set up a rule to run a script file must use the RemoteCommandAction.

Help:

Remote control actions. They cause an external action be executed on a monitored host. Different parameters can be set for this action, including the required parameter COMMAND_LINE.

Kind regards

Brian Wheeldon

Tags: Dell Tech

Similar Questions

  • How to run script on the web using HTTP web page?

    Hi guys

    Please let me know how to execute script on the web using HTTP web page?

    Concerning
    Frank

    Hi Jos,

    ODI provides web-based UI to run scenarios using metadata (read only your components ODI) Navigator and designer Lighweight (you can change the mapping here).

    If please review how to install the metadata browser in ODI and take a look at the document ODI Setup for more information.

    Thank you
    Guru

  • How to run a Unix script on a remote Unix server to Windows 7?

    Are what Windows has still provides remote shell tools to allow the launch of the scripts on remote Unix servers?

    I used to do this on Windows XP with the "rsh" command But this command does not exist on my Windows 7 Pro.

    I tried the new 'winrm' and 'winrs' orders, but I'm not able to connect to my Unix account. I wonder if the winrs command is designed only for Windows connections to Windows?

    Thank you.

    Hello

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Windows 7 networking forum.

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

  • How to run scripts powershell to Orchestrator

    Hello

    is it possible to run powershell Orchestrator-workflow scripts?

    I got it only work with a powershell ssh server on another system (http://www.powershellinside.com/powershell/ssh/)

    and Executive a ssh command inside the workflow.

    Kind regards

    Joerg

    This can be done in the 4.0 update release 2 (which was released on June 10, 2010).

    To do this, you will first need to modify the configuration of server vCO since issuing an operating system command is prohibited by default for security reasons.  Please keep in mind that everything you do here are run with the credentials of the user running the process of vCO (default localSystem).

    1. the file to edit is vmo.properties under the application-server/server/vmo/conf directory.

    Add a line to the bottom

    com VMware.js.allow - local-process = true

    and save the config file.

    The details of how to proceed is in the guide of the administrator under "Definition of system properties"-> "JavaScript access to the operating system commands Set.

    2. create a new workflow and paste the following line in a box "that contains a script task.

    command = new command ("cmd /c copy c:
    Orchestrator
    c: test.txt
    Orchestrator
    test1.txt');

    command = new command ("powershell.exe - order copy c:")
    Orchestrator
    c: test.txt
    Orchestrator
    test2.txt");

    Command.Execute (true);

    3. Optional: If you want to have access to another part of the file system, please take a look at the "Set Server file system Access to the Workflows and JavaScript" section in the Administrator's Guide. The configuration file referenced in the guide is not there by default, so you have to create it.

    Please keep in mind that which allows commands to be run on a server with a workflow has some security implications.  Running PowerShell this way also means that:

    -you are limited to running the PowerShell script without the ability to interact with your script to halfway through the script

    -You can build the string to start the PowerShell script (like providing a virtual machine with VM.name), but the output of the PowerShell script would have to write to a file that you can then open and read with another stream of work (or action).

    I hope this helps.

    SIA

  • How to run a file through the command prompt window

    I try to download a zip called Kindle Gen - file instructions say I should first extract it to c:\KindleGen and then run it through the command prompt window by typing c:\KindleGen\kindlegen (I ' v it not compressed)

    The showsc:\Users\Barry prompt window > then I'v typed into it after the > but its not to recognize the path to the file.

    Wonder if anyone can advise this as i ' v hurts?

    Thanks Barry

    I try to download a zip called Kindle Gen - file instructions say I should first extract it to c:\KindleGen and then run it through the command prompt window by typing c:\KindleGen\kindlegen (I ' v it not compressed)

    The showsc:\Users\Barry prompt window > then I'v typed into it after the > but its not to recognize the path to the file.

    Wonder if anyone can advise this as i ' v hurts?

    Thanks Barry

    If you have used Windows Explorer (computer) to create the directory in question (C:\KindleGen\) and extract the files in this directory...

    Open a command prompt.

    Type:

    CD \KindleGen

    Type:

    DIR

    Run everything you are supposed to run by typing the name.

  • How to run scripts to document in IR?

    I have to drop the ball. I created a dashboard in IR 9.2.0.2 and javascript works (entry in the section of the document script).

    However, I must save, exit and commissioning of the .bqy so that the changes take effect.

    Scripts are event trigger "OnStartup" - should I put the js in some way else?

    I just want to switch to 'Design' and see the changes without leave/marketing in each time.

    Thank you

    Place a button on the dashboard and have it call ActiveDocument.OnStartup (). When you have finished the hide test.

  • How to run [strike] line through works [/strike] while leaving visible

    in the body of the text sometimes useful to "hit" once outside, leaving visible to the recipient, while adding an alternative term after "/ strike.

    Have been unable to find a way to do this, or read any prior information.

    Please notify.

    In a new message of Scripture

    type the word
    then highlight the word
    'Format' > 'Text Style' > select 'bar '.

  • How to run the script to EEM/TCL file

    Hello world

    I need to run the EEM script found in this link

    https://supportforums.Cisco.com/document/75806/interface-input-queue-Mon...

    Can you please point me to a HOWTO to download the file and run it under an interface?

    Thank you

    Federico

    Here is the manual how to run scripts tcl file - http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ios_tcl/configuration/1...

    In short - you download the script to switch via tftp and the tcl implementation with command tclsh interpreter. Then run the command source source

  • How to run a script in environment unix and how to run this program into a toad

    Hello guys
    Please help me!
    How to run a script in the unix environment (Group of programs (cursor, programs...) stored in a file file.sql).

    file.sql luks like this


    WHENEVER OSERROR EXIT FAILURE
    WHENEVER SQLERROR EXIT SQL. SQLCODE
    SET the position
    SET serveroutput size 1000000
    coil ins2aais_jobs;
    SELECT "FILE IS: ins2aais_jobs' FROM dual;"
    SELECT "STARTED:' began, to_char (sysdate," YY/MM/DD HH24:MI:SS) TIME FROM dual; "
    DECLARE
    lv_upd_ct number: = 0;
    lv_ins_ct number: = 0;
    lv_exp_ct number: = 0;
    ---------------------

    date of lv_FROM_date;
    date of lv_to_date;
    lv_mon_or_week varchar2 (20);
    date of lv_week_end_date;
    lv_month_indicator varchar2 (8);
    -------------------------------------------------
    Aais CURSOR IS
    SELECT the ID substr (ID, 1, 7), SSN, FNAME, LNAME
    , SUCCESS, COMPENSATE, INSTALLATION
    , MODU, DRIVE, REVERSE, SUCC_RATE
    TRANS_TOTAL, FILE_NAME, WEEK_END_DATE
    RUN_DATE
    OF weekly_aais;

    -------------------------

    I aais % rowtype;


    -------------------------
    PROCEDURE p_ins (r1 aais % ROWTYPE) IS
    BEGIN
    BEGIN
    INSERT INTO AAIS_JOBS
    (ID, SSN, SUCCESS, COMPENSATE, INSTALL, MODU
    , DRIVE, REVERSE, SUCC_RATE, TRANS_TOTAL
    FILE_NAME, WEEK_END_DATE, RUN_DATE
    AAIS_FNAME, AAIS_LNAME
    )
    VALUES
    (r1.ID, r1. SSN, r1. SUCCESS, r1. COMPENSATE, r1. INSTALLATION, r1. MODU
    r1. DISK, r1. CONVERSELY, r1. SUCC_RATE, r1. TRANS_TOTAL
    r1. File_name, r1. WEEK_END_DATE, r1. RUN_DATE
    r1. FNAME, r1. LNAME
    );
    lv_ins_ct: = lv_ins_ct + 1;
    EXCEPTION
    WHILE OTHERS then
    DBMS_OUTPUT. PUT_LINE ('ERROR IN THE INSERT STATEMENT');
    DBMS_OUTPUT. Put_line (SQLERRM);
    lv_exp_ct: = lv_exp_ct + 1;
    END;

    END;

    ------------------------------

    PROCEDURE p_disp_msg IS
    BEGIN
    DBMS_OUTPUT. Put_line (' number of insertion: ' | to_char (lv_ins_ct));
    DBMS_OUTPUT. Put_line (' number of Exceptions: ' | to_char (lv_exp_ct));

    lv_ins_ct: = 0;
    lv_exp_ct: = 0;
    END;

    ---------------------------

    BEGIN

    lv_FROM_date: = to_date ('& 1', 'DD-MON-RR');
    lv_to_date: = to_date ('& 2', 'DD-MON-RR');
    lv_mon_or_week: = 'and 3';

    lv_month_indicator: = di.get_month_ind (lv_mon_or_week, lv_FROM_date, lv_to_date);

    ------------------------------------

    REMOVE FROM AAIS_JOBS
    WHERE WEEK_END_DATE = lv_to_date;

    -------------------------------------

    COMMIT;

    Aais OPEN;
    LOOP
    EXTRACT the aais IN i;
    OUTPUT WHEN aais % NOTFOUND;
    BEGIN
    p_ins (i);
    END;
    END LOOP;
    Aais CLOSE;

    commit;

    DBMS_OUTPUT. PUT_LINE ('INSERT INTO TABLE JOBS AAIS');
    p_disp_msg;


    -----------------------------------

    END;
    /
    SELECT "FINISHED: ' | '. TO_CHAR (sysdate, "MM/DD/YY HH24:MI:SS'") FROM dual
    /
    spool off
    "exit";


    and also how we organize this into a toad?


    Thank you.

    Hello

    You vous connecter connect to oracle through unix and SQL prompt, run these commands in a .sql file.

    Toad, you can run the instructions individually by selecting the sql statements or in a set with the F5 key.

    Kind regards
    AJR

  • How to run a test from Unix script

    Hello

    Can someone guide me how to run a test case of (created in SQL Developer) unit from unix.

    Thank you
    Lifexisxnotxsoxbeautiful

    You should be able to run your tests using the command line interface:

    http://docs.Oracle.com/CD/E25259_01/AppDev.31/e24285/unit_testing.htm#BCGFBIDD

  • How to create a server through WLST (Weblogic Scripting Tool)?

    How to create a server through WLST (Weblogic Scripting Tool)?

    Thanks in advance...

    Sanjay

    It can be done using createServer. WLST, run help ('createServer') for more information on the syntax.
    -Saly

  • DBMS_SCHEDULER - trying to create and run a UNIX shell script from Oracle

    How can I run Script Shell Unix from Oracle using DBMS_SCHEDULER?

    After reading many examples online, I finished the 3 steps below.
    Create program, create jobs, run task. On my 3rd stage, I get the following error.
    How can I make sure that the work was created?

    ORA-27475: "APPS. POSPAY_FILE_CHECK_JOB' must be work

    (1) create the program
    BEGIN
      dbms_scheduler.create_program(
         program_name => 'POSPAY_FILE_CHECK_PROG',
         program_type => 'EXECUTABLE',
         program_action => '/home/ldcgroup/ldccbc/POSPAY_USC2_CHECK.sh',
         number_of_arguments => 0,
         enabled => TRUE,
         comments => 'Test Program'
         );
    END;
    (2) create jobs
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
       job_name          =>  'POSPAY_CHECK_FILE_JOB',
       program_name      =>  'POSPAY_CHECK_FILE_PROG',
       enabled           =>   TRUE);
    END;
    /
    (3) the job (not calendar, I'll run this a concurrent request of EBS)
    BEGIN
       DBMS_SCHEDULER.run_job (
         job_name => 'POSPAY_FILE_CHECK_JOB');
    END;
    /

    Of [documentation | http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/scheduse002.htm#i1009668]

    The job is created disabled. You must enable it with DBMS_SCHEDULER.ENABLE before the Scheduler will automatically run it.
    
    Jobs are set to be automatically dropped by default after they complete. Setting the auto_drop attribute to FALSE causes the job to persist.
    
  • Error: BT Yahoo is not available due to a long-running script. How can I remove it?

    Original title: a long-running script

    Why constantly to make the message-' BT Yahoo is not available due to a long-running script.

    How can I remove it?

    Why constantly to make the message-' BT Yahoo is not available due to a long-running script.

    How can I remove it?

    a. on the Tools menu, click Internet Options.

    b. on the Advanced tab, click to select the checkbox disable the script debugger .

    c. click OK

    Error message: "a script on this page slows down Internet Explorer runs slowly.
    http://support.Microsoft.com/kb/175500/en-us

    How to resolve script errors in Internet Explorer on Windows computers

    http://support.Microsoft.com/kb/308260

  • How to run or pass local webworks app through ripple?

    How to run or pass local webworks app through ripple?

    Do not click on 'Enable' to ripple extention if my files in the local file system.

    You can use the local file system for waving as well, but you must do this:

    -Open Chrome settings

    -Click on Extensions

    -Select the ripple

    -Check 'allow access to the URL of the file.

  • How to run multiple parallel sql scripts?

    I try to execute multiple sql scripts parallel to the short run of the process via sqlplus. Are there opportunities to do? LINUX ORACLE 5. XX

    I do it too via Scheduler, but now I need to do this via sqlplus or shell + sqlplus?

    How do I start using shell script several xterminals and ech session begins all the sql scripts?

    nohup./SQL1.sh &

    nohup./sql2.sh &

    nohup./SQL3.sh &

    The '&' causes the script1.sh to run in the background so that the command prompt is returned immediately.  This means that sql2.sh can start immediately and at the same time as sql1.sh.  It doesn't have to wait for sql1.sh.   This assumes that there are no dependencies between scripts!  This meets your need to run scripts in parallel.

    The nohup untie your shell script.  So, even if you disconnect, the script continues to run.  Without the nohup, if you were to close your session before the end of the scripts running, they would get fired.

    Hemant K Collette

Maybe you are looking for

  • 10.1.2 iMovie will not share video

    I imported my MP4 videos in iMovie 10.1.2 (6, 15 minute segments), put them in a timeline. This is for me the beachball if I try to play the video captures. So I completed the timeline and tried to share the video. It gives me error 60, sharing on Vi

  • iTunes songs before the track Cup is over

    user of iTunes game. Behavior of the laptop (MacBook Pro (retina, 13 inches, end of 2012):) * Song playback stops and goes to the next song (from the album in mp3 I import into my library) anywhere between 20 and 120 seconds to play in the song. * iT

  • Player Windows media, windows XP, sound distortion

    I just started has a problem with sound is distorted when you play my downloaded music in WMP and audio from YouTube site. It just feels like a vinyl record jumping because of a scratch, etc.   The sound also sometimes speeds up. This started yesterd

  • I'm on vista Home premium sp2 and its impossible to install jre-6u24-windows - x 64.

    tried several times and there is no other jre in the system.  It popup dialog ' SE binary has stopped working "at the end of installation that says all succeeded.  Please help.

  • netsh int ipv4 set dynamicport tcp range

    Hello everyone accidentally one of my colleague, run the following command on my Server 2008 R2, Enterprise Edition. netsh int ipv4 set dynamicportrange tcp start = 32767 32768 = num After that, all my client windows 7 cannot connect to internet... s