Run OS Command job return code

I have a 'Run OS Command' job that shows the correct output and performs the OS functions (trimming logfiles), but EM always says the job 'failed'.
I have tried forcing the script return code to 0 and non-0 values, but that does not make any difference.
How can I get EM to show a "success" status and what determines success/failed OS jobs?
James

Don,
There is a semantic difference when you stop a job or when you stop a specific execution of the job. User can stop a job from job activity page stop button or using "Stop Job" button on job results page. User can stop a execution by using "stop" button after selecting a job execution in specific job results page.
In former case job engine would stop the whole job and job will not be scheduled in future. However when you stop a specific execution of job, then job engine consider it as user is intending to stop only the current execution of the job so future run of job will continue to work as is.
I agree from end user perspective - the message on the confirmation screen is not very clear and we will file a bug and fix in next scheduled version of Enterprise manager.
-- Ashutosh

Similar Messages

  • Running msiexec failed with return code 1619: While running SOFTWARE PROVISIONING MGR 1.0

    Hello All SAP Basis Guys,
    Running msiexec failed with return code 1619: getting this error
    While running SOFTWARE PROVISIONING MGR 1.0 (for Windows Server on IA32 32bit ) for renaming (Domain name change) the SAP ECC 6.0 server on top of Windows Server 2003 x86 which is a 32 bit OS.
    I am using the SAPCAR (for Windows Server on IA32 32bit ) to extract .SAR
    can anyone please help me with this ?
    List of attached for your reference.
    1. Available versions of SPWM for windows in marketplace.
    2. Window version details of KC1GSCSAP6 server (GS1 system).
    3. Error screen while running SWPM
    Thanks,
    John

    Issue has been resolved, its a bug in SWPM tool.
    Problem:
    SAPCAR is extrating the "sapmmcx86u.msi" under the folder DBINDEP.
    But while running the tool, system is trying to open "sapmmcx86u.msi" from the path "common\install" folder.
    Solution:
    After you received the error, copy path "sapmmcx86u.msi" to "common\install" folder and you will be good.

  • Cannot Active Job (Return Code 4)

    Hi All,
    I am trying to start a process chain to create a DSO. Anytime I try and start the process chain, I get the following error:
    Cannot Active Job (Return Code 4)
    Return Code 4 seems to be tied to JOB_CLOSED_FAILED but I am not sure how to resolve this. Does anyone know how to resolve this issue?
    Thanks

    Process chains are used to load data to DSO/Cube/info objects.
    Can you check your process chain start variant job was in release state? or schedule state?
    if its in schedule then make it release or start immediate.
    Go to start variant of your chain-->double click on it-->select change selection-->start immediate and see.

  • Running a command from java code

    hi all,
    There is a command
    "java -jar selenium-server.jar -interactive"
    which i am running through command prompt after going to D:\MyFolder\Examples .
    i want to execute this command using java code .please help

    subratjyetki wrote:
    please answer in detail or if posible can u give the code for thisOnce more -
    The detail is given in the reference. Why don't you read it?
    I could give you the code but it will cost you �100 per hour.

  • To run a command using java code

    hi all,
    There is a command
    "java -jar selenium-server.jar -interactive"
    which i am running through command prompt after going to D:\MyFolder\Examples .
    i want to execute this command using java code .please help

    subratjyetki wrote:
    please answer in detail or if posible can u give the code for thisThe detail is given in the reference. Why don't you read it?
    I could give you the code but it will cost you ?100 per hour.

  • SCCM 2012 application run Powershell script and return codes

    Hi,
    I created an new application (imported as MSI) in SCCM 2012R2. After import I changed the deployment type installation program to run a Powershell script: powershell.exe -ExecutionPolicy Unrestricted -File "Install FactSet 2013 5I.ps1
    My goal is to close some processes before installing the MSI. This works. But on a failure the application program also return code 0 (AppEnforce.log). Is it possible to pass the MSI return codes to SCCM.
    Maybe anyone had the same or idea's to solve this? Thanks in advance.
    Regards,
    Peter
    Powershell script code:
    $ExitCode=0
    Function
    Stop-RunningApplication{
    Param(
    [parameter(Mandatory
    =$true)]
    [string]$ProcessName#
    Specify process names separated by commas
    # Split multiple processes on a comma and join with the regex operator '|' to perform "or" match against
    multiple applications
    $processName=$processName-split(",")
    -join("|")
    $process=Get-Process|Where{
    $_.ProcessName
    -match$processName}
    |Stop-Process-Force
    #Stop running processes
    Stop-RunningApplication
    -ProcessName"excel,outlook,fdsw32,marquee,POWERPNT,WINWORD"
    #Install FactSet 2013 5I
    $ExitCode
    =(Start-Process".\FactSet_Setup_2013_5I_x644.msi"'/qn
    FACTSET_CLOSE_PROCESSES=1 /l*v C:\Temp\InstFac20135I.log'-Wait-Passthru).ExitCode
    Environment]::Exit($ExitCode)
    Peter vd Bosch

    It's really hard to tell from the code above because of the way it's listed, but are sure that even executes? I see at least one stray curly brace and a stray square bracket.
    For the Start-Process cmdlet, have you tried without the -passthru parameter?
    Also, using the actual parameters will make the code much more readable instead of relying on position.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • How to run solaris commands through java code ....

    Hi,
    actually i want to run some solaris commands for zipping some files on Solaris OS...
    any idea how can i do that ?
    thanks

    public class TABLES
    public static void main( String[] args )
                      //database is connected
            try
                   Connection con = null;
                   Statement stmt = null;
                   String strShowTables = "";
                ResultSet resultSet = null;
                   // CBA Statistics period is m_lStatisticsPeriod minutes
                   con = DriverManager.getConnection( g_strRWURI, g_strRWUsername, g_strRWPassword );
                   stmt = con.createStatement();
               ResultSet rs = stmt.executeQuery("use db");
             resultSet = stmt.executeQuery(strShowTables);
        String tableName = "";
             while(resultSet.next()){
    tableName = resultSet.getString(1);
              System.out.println(tableName);
            break;
    String strCmd = "tar cvzf file.tar.gz var/lib/mysql/db/GROUPS.*";
    Process p= Runtime.getRuntime().exec(strCmd);
    System.out.println(strCmd);
        stmt.close();
                rs.close();
                resultSet.close();
                   con.close();
              catch ( Exception e )
                   System.out.println( ": Failed to create database connection (" + e.getMessage() + ")" );
                   e.printStackTrace();
              catch ( Throwable t )
                   System.out.println( " Throwable: " + t.getMessage() );
                   t.printStackTrace();
        }//end of main mehtod
    }//END OF CLASSi hava tried the above code... what the problem is
    when is run that command on shell >    tar cvzf file.tar.gz var/lib/mysql/db/GROUPS.*i works fine but in code even though it didn't give any error but the created "file.tar.gz" is empty...
    Edited by: aftab_ali on Apr 7, 2009 7:15 AM
    Edited by: aftab_ali on Apr 7, 2009 7:17 AM

  • Running windows command through java code

    Hello
    i want to execute jar.exe through java code , i have written following piece of code , but it isn't working
    ProcessBuilder processBuilder = new ProcessBuilder(new String[]{"cmd.exe","/c","%java_home%\\bin\\jar.exe"});
              Process process = processBuilder.start();
              BufferedReader inputReader = new BufferedReader(new InputStreamReader(process.getErrorStream()));
              String line = inputReader.readLine();
              while(line != null){
                   System.out.println(line);
                   line = inputReader.readLine();
    does anybody knows why
    Regards
    Edited by: Mayur Mitkari on Mar 5, 2013 10:19 PM
    Edited by: Mayur Mitkari on Mar 5, 2013 10:20 PM
    Edited by: Mayur Mitkari on Mar 5, 2013 10:20 PM

    sorry for that , but the
    Runtime runtime = Runtime.getRuntime();
              Process proc = runtime.exec(new String[]{"cmd.exe","/c","jar"});
              proc.waitFor();
    int i = proc.exitValue();
    this code was different from first one
    and in case of Process if runtime .exec is succesful it is wainting for long time , in this case i want if the runtime.exec is succesful something should be returned
    Regards

  • Failed (why else would I post). Error creating an image of Drive D:, rc = 2. Return Code -2147467259 0x80004005. "Not enough storage is available to process this command".

    Seems a common set of Return Codes to post so apologies that's not specific.
    To me appears the issue is related to the "Not enough storage is available to process this command" log entry. Looked into it and some SCCM 2007 issues that were related to too many sessions to the site server, but even after rebooting my MDT server
    I get the same issue.
    The server I am attempting to capture has a 60gb VHD with around 30gb actually used. The MDT Server has over 100GB free space.
    Here is from BDD.log:
      Console > Turning on VERIFY option for network share
    ZTIBackup 10/10/2014 12:56:30 PM
    0 (0x0000)
      Console > Scanning files and directories...
    ZTIBackup 10/10/2014 12:56:30 PM
    0 (0x0000)
      Console > Error imaging drive [D:\]
    ZTIBackup 10/10/2014 12:56:30 PM
    0 (0x0000)
      Console > Not enough storage is available to process this command.
    ZTIBackup 10/10/2014 12:56:31 PM
    0 (0x0000)
    Return code from command = 2 ZTIBackup
    10/10/2014 12:56:31 PM 0 (0x0000)
    Error creating an image of drive D:, rc = 2
    ZTIBackup 10/10/2014 12:56:31 PM
    0 (0x0000)
    Event 41036 sent: Error creating an image of drive D:, rc = 2
    ZTIBackup 10/10/2014 12:56:31 PM
    0 (0x0000)
    ZTIBackup COMPLETED.  Return Value = 2
    ZTIBackup 10/10/2014 12:56:32 PM
    0 (0x0000)
    ZTI ERROR - Non-zero return code by ZTIBackup, rc = 2
    ZTIBackup 10/10/2014 12:56:32 PM
    0 (0x0000)
    Event 41002 sent: ZTI ERROR - Non-zero return code by ZTIBackup, rc = 2
    ZTIBackup 10/10/2014 12:56:32 PM
    0 (0x0000)
    Command completed, return code = -2147467259
    LiteTouch 10/10/2014 12:56:33 PM
    0 (0x0000)
    Litetouch deployment failed, Return Code = -2147467259  0x80004005
    LiteTouch 10/10/2014 12:56:33 PM
    0 (0x0000)
    Event 41014 sent: Litetouch deployment failed, Return Code = -2147467259  0x80004005
    LiteTouch 10/10/2014 12:56:33 PM
    0 (0x0000)
    I'll post below full logs.

    imagex reported:
      Console > Error imaging drive [D:\]
      Console > Not enough storage is available to process this command.
    obvious question is: do you have enough free space on
    "\\arcadmin3\deploymentshare$\Captures\SIMSERVER.wim"
    Keith Garner - Principal Consultant [owner] -
    http://DeploymentLive.com

  • TP  MAXIMUM RETURN CODE:8888, tp running

    Hi,
    We were performing client export/ import from PRD to QA.
    Export is successful(21/2 hours for 150 GB size of DB).
    The tp request successfully added to buffer after the import is running for longer period.
    The size of datafile is 12GB around.
    In stms import status is showing as import running(truck).
    tp and r3trans for running at OS level.
    Import monitor log
    traget client=410
    maximum return code: 8888 - tp running
    (pr1kt00055,   )  running main report.
    tp SLOG:
    START TRANSMIT BUFFER ENTR QA1 g      20110917070813
    STOP  TRANSMIT BUFFER ENTR QA1 g 0000 20110917070813
    START TRANSMIT BUFFER ENTR QA1 g      20110917071331
    STOP  TRANSMIT BUFFER ENTR QA1 g 0000 20110917071331
    START TRANSMIT BUFFER ENTR QA1 g      20110917071433
    STOP  TRANSMIT BUFFER ENTR QA1 g 0000 20110917071433
    START TRANSMIT BUFFER ENTR QA1 g      20110917071434
    STOP  TRANSMIT BUFFER ENTR QA1 g 0000 20110917071434
    Please let us know whether the tp import is running or not.
    Please suggest the time taken to import in STMS.
    Thanks and Regards
    KARTHIK

    We used to use SCC9 for remote client copy, not SCC8 export and then import for that much big content.
    scc8 import and then import I see it for the first time for this much big datafile.
    maximum return code: 8888 - tp running
    (pr1kt00055, ) running main report
    tp return code seems the point of concern here, however if the import logs are getting updated 'regularly' at OS level then import is still running.
    Can't estimate the time duration, but import of datafile of 12gb is quite heavy. Let's see what other techies suggest here.
    Thanks

  • Error while executing a uinx script in BODS job - exit code 127

    I am executing a UNIX script using BODS job and it is giving an error message saying 'Program terminated because of exit code 127'. The same script i am able to execute in UNIX. I am not able to find the solution for this.

    Using a print command with return code 8 should give more insight to the error.
    print(exec('sh \bin','<your command>',8));

  • DBM_CONNECT error, return code -11, tp error

    Hello
    I have an SCM 5.0 ABAP-only system (sid=APC) not correctly communicating with a 7.6.0.3 liveCache.  In transaction LC10, clicking the monitoring button for any DB connection results in:
    Name and Server     : LPC - dngdbs07                         
    DBMRFC Function     : DBM_CONNECT                            
    Error               : DBM Error
    Return Code         :        -11
    Error Message       : tp error: sapparam: SAPSYSTEMNAME neithe
    Notice how error message is cut off ...
    1.  LCA, LDA, and LEA connection tests in DB59 all fail with the same error.
    2.  From transaction SM49, dbmcli -d LPC -n dngdbs07 -tpp no_longer_used -tpi APC -tpc LCA <any command> fails with the same error.
    3.  From the command-line, dbmcli -d LPC -n dngdbs07 -tpp no_longer_used -tpi APC -tpc LCA <any command> succeeds for both apcadm and SAPserviceAPC users.  (ABAP system is Windows, liveCache system is HP-UX.)
    4.  RFC destinations SAPDB_DBM, SAPDB_DBM_DAEMON, and SAPXPG_DBDEST_<HOSTNAME> are all successful.
    5.  I un-checked the Central Authorization checkbox in LC10 --> Integration and the error goes away, so I can then see the liveCache system status.
    I tried debugging the ABAP and it appears sapxpg is having trouble calling the external command when Central Authorization is enabled.  Does anyone have any ideas about what's wrong with this? 
    SAP_BASIS SP 14
    NW 700 kernel patch 159
    non-unicode
    Thanks

    > Name and Server     : LPC - dngdbs07                         
    > DBMRFC Function     : DBM_CONNECT                            
    > Error               : DBM Error
    > Return Code         :        -11
    > Error Message       : tp error: sapparam: SAPSYSTEMNAME neithe
    >
    > Notice how error message is cut off ...
    Ok, the cutoff is just due to the error handling routine - I believe the full error message would be "SAPSYSTMNAME neiter in environment or parameterfile specified" or something like this.
    > 1.  LCA, LDA, and LEA connection tests in DB59 all fail with the same error.
    Of course they do - they are all the same connection setup, just for different purposes.
    > 2.  From transaction SM49, dbmcli -d LPC -n dngdbs07 -tpp no_longer_used -tpi APC -tpc LCA <any command> fails with the same error.
    Of course it does. The TP is used to get logon data from the SCM database (central authorization) for the logon to the liveCache. with the -tpp -tpi -tpc arguments you tell dbmcli to use TP.
    > 3.  From the command-line, dbmcli -d LPC -n dngdbs07 -tpp no_longer_used -tpi APC -tpc LCA <any command> succeeds for both apcadm and SAPserviceAPC users.  (ABAP system is Windows, liveCache system is HP-UX.)
    Well, perhaps you've  a different environment setup here? On Windows it's a quite common issue that everything works fine as <SID>adm but the SAP workprocesses run as SAPSERVICE<SID> ... so checking the environment variables for both might be a good idea.
    > 4.  RFC destinations SAPDB_DBM, SAPDB_DBM_DAEMON, and SAPXPG_DBDEST_<HOSTNAME> are all successful.
    Sure - they've nothing to do with TP. Instead these are just calls to the dbmcli command. SAPDB_DBM is just running one command and returning the result, where SAPDB_DBM_DEAMON is used for multiple commands in one DBM session.
    > 5.  I un-checked the Central Authorization checkbox in LC10 --> Integration and the error goes away, so I can then see the liveCache system status.
    Also quite clear - TP is only used with dbmcli when central authorization is used. If it's not used, then XUSER data is used to connect to the liveCache.
    > I tried debugging the ABAP and it appears sapxpg is having trouble calling the external command when Central Authorization is enabled.  Does anyone have any ideas about what's wrong with this? 
    As already said: check the environment variables. Also check the Transportprofile (TMS).
    If you don't succeed: open a support message.
    regards,
    Lars

  • Litetouch deployment failed, Return Code = -2147023504

    I suddenly started getting this error on all my task sequences. I created a new vanilla sequence and got the error on it as well. It doesn't matter if I select a x86 image task or x64. This is across multiple pieces of hardware as well. Please Help!
    <![LOG[LTI beginning deployment]LOG]!><time="11:01:31.000+000" date="05-22-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Event 41016 sent: LTI beginning deployment]LOG]!><time="11:01:32.000+000" date="05-22-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[About to run command: "X:\Deploy\Tools\X86\TsmBootstrap.exe" /env:SAStart]LOG]!><time="11:01:32.000+000" date="05-22-2013" component="LiteTouch" context="" type="1" thread=""
    file="LiteTouch">
    <![LOG[Property LTIDirty is now = TRUE]LOG]!><time="11:01:32.000+000" date="05-22-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Command completed, return code = -2147023504]LOG]!><time="11:01:32.000+000" date="05-22-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Litetouch deployment failed, Return Code = -2147023504  0x80070570]LOG]!><time="11:01:32.000+000" date="05-22-2013" component="LiteTouch" context="" type="3" thread="" file="LiteTouch">
    <![LOG[Event 41014 sent: Litetouch deployment failed, Return Code = -2147023504  0x80070570]LOG]!><time="11:01:32.000+000" date="05-22-2013" component="LiteTouch" context="" type="1" thread=""
    file="LiteTouch">
    <![LOG[For more information, consult the task sequencer log ...\SMSTS.LOG.]LOG]!><time="11:01:32.000+000" date="05-22-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">

    I found the issue with this. Apparently the computers I was running these sequences on had previous deployments run and interrupted on them. Even though the deployment wizard wasn't flagging them as "dirty" clearly there was something hanging around
    on the HD that was causing issues. I used diskpart to run a quick format on the OS volume and all is good. 
    Maybe this will help someone googleing in the future.
     

  • Msiexec failed with return code 1603 / installing SAP MMC Snap-In and creat

    I am installing SAP ABAP trial on windows 7 and I have encountered some problems.
    Please help me solve this problem.
    Phase 2 : install common system files
    Error happened during this step: installing SAP MMC Snap-In and creating shortcuts
    Error message:
    Running msiexec failed with return code 1603: Schwerwiegender Fehler bei der Installation.
    Commandline was msiexec.exe /norestart /L sapmmcX86u.log /i sapmmcX86u.msi /qn
    If you want the installer to retry, choose Yes. If you want the installer to abort the installation, choose No.
    I have alreday given the permission/rights that are necessary for the user who is installing the system.

    Hello All,
    We also faced the same error, I would like to share the solution steps which we have applied.
    Solution :
    Refer Note 1236002 - Error during the SAP MMC MSI installation or uninstallation
    As per the note :
    Download utility “Microsoft Fix It” from http://support.microsoft.com/mats/Program_Install_and_Uninstall
    You have the option to run this utility online or you can download the folder structure following the instructions on this page
    Then copy the Fix it Portable folder to the computer with the problem and run the Launch Fix it application
    What Microsoft Fix It fixes...
    Removes bad registry key on 64 bit operating systems.
    Windows registry keys that control the upgrade (patching) data that become corrupted.
    Resolves problems that prevent new programs from being installed.
    Resolves problems that prevent programs from being completely uninstalled and blocking new installations and updates.
    Use this troubleshooter for an uninstall only if the program fails to uninstall using the windows add/remove programs feature.
    Best Regards..

  • I want run some command using java

    hi all,
    i want run command using java code.
    from cell prompt when i run this command 'mysqldump test > /home/DBNAME.sql'
    it will create DBNAME.sql file.
    but i want to run this command using java code
    i tried the following code but it did not work.
    is any other way is their?
    try {
                   Runtime.getRuntime().exec("setxkbmap nudi");
              } catch(IOException ioe) {
                   ioe.printStackTrace();
    thanks in advance
    daya

    hello,
    thanks for replay
    i am sorry the above code should be like this.(the above code is working fine)
    public class ExportTest{
         public ExportTest(){
              try {
                   Runtime.getRuntime().exec("mysqldump test > '/root/DBNAME.sql'");
              } catch(IOException ioe) {
                   ioe.printStackTrace();
              }catch(Exception e){
                   e.printStackTrace();
         public static void main(String args[]){
              new ExportTest();
    }when run above class, it not creating DBNAME.sql file.
    when run in command prompt it creating DBNAME.sql
    ($ mysqldump test > /root/DBNAME.sql)
    but i want to run this command from java code, that's way tried to do using above
    code, but it won't create DBNAME.sql
    is it wrong what i am doing? or any other way?
    thanks inadvace
    daya

Maybe you are looking for

  • How to turn off syncing for 2 devices that share the same Apple ID?

    Hello, I really need help, my dad and I share the same apple ID and when he updated his phone to iOS 7, my messages autimatically syncs to his phone. So now he can read my imessages, is there a way for me to turn this off? Note that my dad does not l

  • How to go from Developer Preview to Official Lion OS X Release?

    Hello, Since its release, i've been playing with several Developer Previews of OS X Lion on my Macbook Pro. Then, Lion got out, in its official release. Unfortunately, I didn't have time to upgrade to it right at that time. I had a lot of work to do,

  • I don't know how to "un-install" my epson R300 printer?  Help?

    Hello, I know this isn't an actual iMovie question, but the only reason I bought this printer was to print on the DVDs that I make with iMovie, and iDVD. Anyway, I am having a litttle glitch right now, and I have been told that I should "un-install"

  • Determining image types used in pdf

    Hi, I was sent a pdf by a client and was wondering if there was a way to determine what types of images he used in the file. For example, did he use .jpg, .tif,, .eps etc. Thanks, Andrew Hutton [signature deleted by host]

  • Firefox crashes upon opening, and randomly - Windows XP.

    What I'm experiencing is that FireFox crashes upon most start-ups. it also crashes randomly. Be it known, it has been doing this in safemode, too. It has been doing this before any plugins were installed, and it has been doing it since FireFox 12 or