Auto-Reaction Method - External Operating System Command

Hello ,
I am trying to run a script (test.cmd) on a monitored java system out of solution manager via ccms auto-reaction method, but without success.
I have created a RFC Connection to the java system in transaction sm59, defined an external operation command in transaction sm69 (/usr/sap/test.cmd) and an auto-reaction method using that command. But when I test the command in transaction sm49 with the RFC connection as target destination, the command is executed on the local CEN system (SolutionManager system) instead of the monitored java system. I have no clue where's the problem???
Thanks for any help (points, points, points)
Mirko

Hi Anand,
can you please send me that doc too pleae.
[email protected]
I really appreciate your help.
Thanks,

Similar Messages

  • External Operating system Commands -GPG

    Hi Experts,
    Im quite new in SAP and we have a task to encrypt a file generated from SAP for upload to bank. We use  the external operating system commands to call the gpg commands for file encryption. But we encounter an error when we execute the command
    below is the error we encounter
    gpg: [Recptient's ID]: skip : public key not found
    gpg: [Filename] : encryption failed : public key not found
    but when I run the command on OS level it execute properly without any problem.
    hope you guys could me an idea on how to fix the issue i encounter
    Thanks in advance!!

    Louie,
    What is the command that you used? which OS?
    Thank you
    Regards

  • Re: Error while Execute External Operating System Command using T.code SM49

    Dear Experts,
    I Have uploaded one .exe file in the application server (eg: sum.exe) and created the OS command in SM69 transaction .
    And maintained the application server path in the 'operating system command' field in SM69 t.code.
    Our SAP system, oprating system is UNIX.
    After I have executed the external command using transaction SM49 , but I got the below error.
    Can not execute external program (permission denied) , External program terminated with exit code 1
    Immediately I run the SU53 transaction code to check the authorization, but Authorization was successful.
    Could any one please help on this error.
    Thanks in advance.

    >>Can not execute external program (permission denied) , External program terminated with exit code 1
    You need to give the permission as 755 to your file.
    >>I Have uploaded one .exe file in the application server (eg: sum.exe)
    You are on UNIX and do not expect to any result of .exe file as UNIX doesn't know about this.

  • Execute external operating system command

    Hi Friends,
    I have a requirement to run a script file with extention '.PL' on the application server using ABAP.
    i have sample how to run it in XI.
    XI3.0 provides a very simple way of handling this using the "Operating System Command" in the File Adapter.
    I post my output file in the following folder,
    /usr/sap/sapout/test/
    The shell script is available in the following path,
    /usr/sap/bin/convert.pl
    The figure below explains as to how we call the shell script using "Operating System Command".
    File Acess parameters
          Target Directory      = /usr/sap/sapout/test/
          File Name Scheme = TestOutput.txt
    Processing Parameters
         File Construction Mode          = Add Time Stamp
         File Type                              = Binary
         Operating System Command = /usr/sap/bin/convert.pl %F
    I have to do the same thing in ABAP as it has been done for XI as mentioned in the above example.
    My operating system is UNIX.
    If any one can give me a sample it would be really helpful to me.
    Thanks in advance,
    Arundhathi.

    Hi Arundhati,
    You can run operating system commands from ABAP.
    e.g. If you want to change UNIX right for any file, you can use following code.
    lv_ucomm  = 'chmod a+rwx 123.txt'.
    CALL 'SYSTEM' ID 'COMMAND' FIELD lv_ucomm.
    whatever command you provide in Field parameter ( lv_ucomm in the above case ), ABAP run that command at operating system level.
    In your case, you can provide command in lv_ucomm to run script at operating system level.
    Hope it will help you.
    Regards,
    Naren

  • Integrating External Operating System Commands into ABAP program.

    Hi folks,
    using the transaction code sm69 it is possible to create an SAP command that's executing an operating system command.
    Is it possible to integrate such an SAP command into our ABAP programs ?
    How would we do so ?
    Regards
    Thomas

    Hello Thomas,
    We have an easier way of achieving this without declaring a command in SM69.
    Try the below piece of code:
    DATA: command LIKE rs37a-line.
    DATA: BEGIN OF tabl OCCURS 0,
              line(2000),
          END OF tabl.
    command = 'ls -l'.
    CALL 'SYSTEM' ID 'COMMAND' FIELD command
                  ID 'TAB'     FIELD tabl-*sys*.
    Replace the string in the variable 'comand' with any UNIX command.
    Regards
    Sabu

  • Wild Cards in External Operating System Commands for HP-UX

    Hello,
    Is it possible to use wildcards for HP-UX commands in SM69?
    For example, I would think the following would work in HP-UX:
        mv /directory/file_name.* /directory2
    But whenever I execute a command with the * wildcard in SM69 I get the message 'No such file or directory'
    Thanks,
    Joel

    This is wierd, I can't even do 'ls *.TRC'
    Here's another example, using absolute path names that didn't work:
    mv /usr/afisinw_cpafiscd/WHSE/ready/portalActivity_311688752_1243622628104.* /usr/afisinw_cpafiscd/WHSE/ready/portalActivityOld
         error: cannot access: No such file or directory External program terminated with exit code 1
    But when I replace the * with txt it works. Unfortuneately I need to move multiple portalActivity files each time, and the beauty of using an external command is that my ABAP program is only a few lines long.
    Could there be some sort of a safety feature in SAP to prevent the use of * in external commands?

  • SM69 (external operating system commands)

    how can i use the MKDIR dos command in SAP using SM69

    Here i am using LS command in SAP :
    data: begin of t_tabl occurs 0,
    line(132),
    end of t_tabl.
    data: lc_command(100) type c.
    start-of-selection.
    Get all the file name falling under specified directory...
    lc_command(3) = 'ls '.
    lc_command+3(45) = p_dir. " Directory of file path
    call 'SYSTEM' id 'COMMAND' field lc_command
    id 'TAB' field t_tabl-sys.
    Check any files exits in the directory.......................
    if t_tabl[] is initial.
    message e006 with 'No files exist in the specified directory ' p_dir.
    endif.
    You can use MKDIR instaed of LS
    Thanks
    Seshu

  • How to change Auto-reaction method automatically?

    Hi all,
    I want change the Auto-reaction method for few   systems in the landscape,How  to change the method  automatically for all the system with out doing Manually in eash of the system.
    Regards,
    Neni

    Hello
    The below URL might be useful to you.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/201c3148-faef-2d10-ac80-e0a8bc7503a1?quicklink=index&overridelayout=true
    Thanks & regards
    bala

  • CCMS Auto-React: Operating System Commands

    Hi Gurus,
    I want to run an operating system command in the event that an alert is raised in my CEN CCMS system.
    I have set up the operating system command in SCEN (using SM69) and tested it -- no problems. I have used the example given on help.sap.com. It works great from SM69 or SM49.
    I have created a custom MTE Auto-Reaction Method that is a copy of the SAP standard and it points to the logical name of the op system command I created in SM69.
    But, when I assign the Auto-Reaction method to an MTE and kick off the auto-reaction, nothing happens. I have tried assigning it auto-reaction method as a method for a local MTE and also as a central auto-reaction, but I get nothing.
    Please help me see what I am missing.
    Many thanks in advance,
    Nic Doodson

    Hi Michael,
    Thanks for the response, I hope you can help.
    Logical command is called: Z_NI_ALERT_OVO
    It calls the operating system command: /usr/sap/tmp/test.sh
    It allows additional parameters.
    test.sh is :
    #!/usr/bin/sh
    echo $2 alert from $1 Message $5 $4 > /usr/sap/tmp/alert_$3.txt
    I can run this from SM49/SM69 and it works fine.
    Method is: Z_SEND_ALERT_TO_OVO
    Calls function module: SALO_EXECUTE_SYSTEM_COMMAND_V2
    Can be executed on: Any Server
    Execution Method: Periodically in Dialog Process
    Parameters:
    COMMAND : Z_NI_ALERT_OVO
    PARAMATERS : <blank>
    REACT_ON_ALERTS : red
    MTENAME : SID/SEGMENT/CONTEXT/OBJECT/ATTRIBUTE
    PARAMLIST_1: COLOR DATE_TIME MSG
    PARAMLIST_2: ID
    Help!
    I can only think there is something about it being a local/centrally distrubuted auto-reaction method...I'm assigning it as a cenrally distributed auto-reaction method.
    Any input would be great.
    Cheers,
    Nic

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

  • Auto-reaction method not sending e-mail

    Hi everyone,
    We are trying to set-up email notificacions for cancelled jobs. So far I've configured SCOT and RZ20 succesfully. The alerts are triggered and the auto-reaction method is active and ready but it's not sending automatics e-mails. If I click on the auto-reaction method status and manually start auto-reaction method it sends the e-mails, but I haven't been able to make it work automatically.
    So far I've read every possible thread in SAP forums about the issue and I also have checked the following notes:
    Note 671780 - Only trigger auto-reaction method with certain alerts
    Note 502959 - RZ20: External e-mail as auto-reaction
    Note 939616 - CCMS auto-reactions: Help with troubleshooting
    Note 760821 - Auto-reactions no longer work with email
    Note 939616 - CCMS auto-reactions: Help with troubleshooting
    Note 176492 - Automatic email when an alert occurs (RZ20)
    I have tried all the possible control options for method CCMS_OnAlert_Email (currently is executed as a periodically job). I have checked all the jobs generated in RZ21 and still can't get it to work.
    This e-mails alerts are to be triggered locally by each SAP productive system. I've already tried to configure this monitoring alert in two of our developing system with similar behaviour: no automatic e-mail is getting send.
    Please, advice me on what I should do. I know I'm missing some
    configuration but I can't figure out which one.
    Best regards

    Is the job SAP_CCMS_MONI_BATCH_DP running?
    Please note the run time status: "Run required" means,
    the alert was triggered, but the auto-reaction method does not start until the next time the CCMS method dispatcher (SAPMSSY8) runs. This can last up to 5 minutes if alerts are generated asynchronously (for example, by an active data collector).
    However, the next time the CCMS method dispatcher runs, the auto-reaction method should be executed and the status of the node should be READY.
    If the RUN_REQUIRED status does not disappear, it could be for a number of reasons:
    - If MTE is present on the local system:
    The auto-reaction method must not be defined as the central auto-reaction method.
    - If MTE is present on another monitored system and a central auto-reaction method was defined:
    Is one of the above true in your case?
    An agent from the monitored system must be logged on to the central system, and this agent must be active. Please check whether these agents are active or not in Rz21 and try Re-Registering it.
    You can also refer to SNOTE: 939616, 1265906
    In the below link search for "RUN required"
    http://help.sap.com/saphelp_nwpi71/helpdata/en/49/945f2b9ee72222e10000000a42189d/content.htm
    Regards,
    Arjun

  • Auto-reaction methods for CCMSPING disappear

    Hello,
    I have a problem - I am using CCMSPING to monitor systems availability from one system and I have also assigned the auto-reaction methods to selected MTE attributes (system availability, system instance availability, ccmsping availability). The methods are local auto-reaction ones (executed in background). The problem is that after weekend, the assigned methods always disappear - they cannot be found in attribute properties dialog in RZ20. However, when checking in RZ21 for the where-used list for the methods previously assigned, I still get the list of attributes where they should be assigned.
    Did anybody experience similar problem?
    system info: sap_basis 7.0, sp11.
    Thanks,
    Tomas

    Hi Tomas,
    Is the same monitoring properties variant active when you assign the AR method before the weekend as when you come in on Monday? RZ21 >> Properties group box >> Properties variants.
    When you assign the AR method in RZ20, take note of the active variant in the Additional info tab.
    Is the monitoring properties variant assigned to an operation mode by any chance? This could switch it out if the op-mode is in the timetable or someone manually does a switch.

  • Local auto reaction method no longer linked to MTE

    Strange one.... all my local autoreaction methods have disappeared from from my MTE properties in RZ20. The methods still exist in RZ21 and the 'where used' reports that it is still inked to that MTE. Have checked that the mehtod is released for variant * (which is the acitve variant).
    Any ideas would be helpful as the only option is to link the methods again manually.....which is mind numbing task. Anyone got a way of linking an autoreaction method (local) to multiple MTE's?
    Thanks in advance,
    Marcus

    Dear Team,
    As I have understood, you want to be informed each time a satellite system is not up and running ?
    Option 01
    ========
    1. Install the CCSMPING agent in SOLMAN
    2. Create your satellites systems through RZ21 - Technical Infrastructure - Availability Monitoring - Configure CCMSPING ...
        Create all satelittes systems ...
    3. Then, from SOLMAN_WORCENTER, in SYSTEM Monitoring, you have the status of each satellites systems created
        in RZ21 (point 2).
    This option will not advised when a satellite system is down. But from one WEB page, you will have the status of all satellites systems.
    Option 02
    ========
    1.Install the CCSMPING agent in SOLMAN
    2. Create your satellites systems through RZ21 - Technical Infrastructure - Availability Monitoring - Configure CCMSPING ...
        Create all satellites systems.
    3. RZ20 - SAP CCMS Monitor Templates - Double-click on "Availability and Performance Overview"
        Open "Availability" - Then, all satellites systems which have been added under point 2 will appear.
    4. Select one satelitte system
    5. Open "Availability"
    6. Select "ABAP: Checked by CCMSPING.<solman-hostname>.00"
    7. When selected, click on "Properties" button.
    8. Then, you assign here an auto-reaction method - for example :
        "ccms_send_alert_to_alm_ccms_containerv4".
    9. Copy this method to Zccms_send_alert_to_alm_ccms_containerv4.
    10. In this method, add you email address.
    11. Then, check that job "SAP_CCMS_MONI_BATCH_DP is running. This job collects data in the CCCMS (RZ20).
    12. Then, the alert will be automatically sends to your email adress.
    Hope it helps ?
    Best regards
    SAPNetWeaverAdmin

  • Auto reaction method for transaction SMQ1

    Hello
    I'm monitoring queues RFC through RZ20, and I'd like to know wich auto-reaction method can I use to unblock the qRFC in transaction SMQ1 or this auto-reaction method don't exist?
    Regards

    Hi,
    Error resolved.
    I created a variant for program "RSQOWKEX" with the following attributes.
    Queue Name - R3A*
    Queue Destination - xxxCLNTxxx
    No records later than - 00:05:00
    No Running Queues box unchecked.
    It has worked for me. Surprisingly, this issue only came up in DEV system. In Quality system, no such issue was there.
    Thanks a Regards
    Varun Taneja
    You can use the above code and see if it helps.
    Thanks
    SM

  • CCMS Auto Reaction Methods in XI AlertFrameWork

    Team,
    I have setup my XI box to report all CCMS errors to the ALM framework. The scot tcode has been also setup to receive email.
    With MBA (Message Base Alert), such as mapping error, receiver not found, etc, I have access to a list of "containers variable" to report detail about the error.
    How can I do the same with all errors I get in CCMS ? The errors get replicated to my ALM framework (and thus can be seen in the AlertInbox), but I have no handle on variables container ...
    Thank in advance !
    A+

    Hi Jose,
    yes i have tried to changed to P and to whatever you can imagine but no success, could it be because im trying to do this on IDES?
    a bit summarizing of what have I done till now.
    I have created in client 000 a shared folder called CCMS_ALERTS, I have configured in RZ20 in menu SAP CCMS Monitor Templates --> Syslog --> Security in this way
    Everything has been done in client 000
    In General Tab i have:
    Message Class: RT
    Message Number: 079
    Severity of alerts to be triggered: 255
    Maximum numbers of alerts kept: 10
    Which alerts should be kept: ALL
    In Log Attribute Tab i have:
    Maximum alerts
    Always
    As many as possible
    In Filter Tab I have:
    System log message is selected (ticked)
    the i have filter
    from ID - US1 to ID US1 at Red (ticked) with severity 255
    In the method tab i have:
    My Own method that i have created and here it is:
    Method (rz21)
    Execution Tab:
    as Functional module - SALO_EMAIL_IN_CASE_OF_ALERT
    on any server
    Table fo several MTEs
    Control Tab:
    Periodically in dialog process (short running program)
    Parameter Tab:
    SENDER: my user (existing in any of the clients with administrator rights)
    RECIPIENT: CCMS_ALERTS
    RECIPIENT-TYPEID
    Release Tab:
    Auto-Reaction Method
    Please advice what have I done wrongly
    Vladi,

Maybe you are looking for

  • Can't connect my camera to mac

    Hi, I have a Nikon D40x and I can't connect it to my mac. I plug it in, but absolutely nothing happens. The camera says "connecting to PC." but no reaction even after 2 hours. Does anyone have an idea of what to do?

  • JComboBox color problem

    Problem: Setting the button background color via UIManager.put(....) actually changes part of the background of my comboboxes. I also set the combobox background with UIManager, but it only applys this color where the data is within the combobox. The

  • Photostream question (Mavericks, ML, MBP, Mac Pro and iPhone)

    hi all, i am posting the dialogs from Aperture enabling various aspects of Photostream/iCloud (mac pro and ML at the top and MBP and Mavericks at the bottom) and i am having a devil of a time figuring out how to manage all of this. i take a /ton/ of

  • Passing Value from PDK Java to Webdynpro Java in SAP EP SP18

    Dear Experts Please tell me how to call a webdynpro java ivew form a PDK java application and I need to pass a value to webdynpro form my PDK application. I am using SP18 Please help me in this issue Regards Noel

  • Lync 2013 aborts (crashes) after call is terminated

    Computer is on a network. Desktop is running Win 7 64 bit with lync 2013. When the user terminates a call lync aborts and asks if user wants to restart Lync. I believe this is profile related as I logged on as myself with my credentials and could not