7 Replies Latest reply on May 20, 2014 7:34 AM by Chinh Do

    NSH Script shows "successful" status but has errors in log

      Hi:

       

      I am new to BladeLogic. I created and ran an NSH Script job. The run status shows "success" (with green check mark icon), but if I go into Show Log, I can see that the script didn't actually work (I replaced some sensitive data with ...) because it could not find MSBUILD.exe

       

      Info    May 15, 2014 5:37:46 PM    Starting script.

      Info    May 15, 2014 5:37:46 PM    VIEWNAME=...

      Info    May 15, 2014 5:37:46 PM    ComputerName: ...

      Info    May 15, 2014 5:37:46 PM    MsBuild=/C/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe

      Info    May 15, 2014 5:37:46 PM    SrcRoot=/E/...

      Info    May 15, 2014 5:37:46 PM    PackageProj=/...

      Info    May 15, 2014 5:37:46 PM    Track=Track2

      Info    May 15, 2014 5:37:46 PM    ProdScriptHash=031420141200

      Info    May 15, 2014 5:37:46 PM    COMMAND: /C/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe /tcp_src/Configuration/build/msbuild/scripts/package.proj /p:SourceControl=/E/... /p:App=M... /p:Configuration=Release /p:Track=Track2 /p:ProdScriptHash=031420141200  /m /fl /fl1 /flp1:logfile=msbuild_cp_errors.log;errorsonly /t:Main-BDS

      Info    May 15, 2014 5:37:46 PM    The system cannot find the path specified.

      Info    May 15, 2014 5:37:47 PM    Done.

      Info    May 15, 2014 5:37:47 PM    Exit Code 0

       

      Another example, the job shows "Success" but the log actually has "Error" entries in it

       

      Error    May 15, 2014 5:34:01 PM    //@/D/Program Files/BMC Software/BladeLogic/8.1/NSH/tmp/18_jobserver2/scripts/job__ce26ab49-471c-452e-912b-f357c9956443/script_DBKey-SJobKeyImpl-10773-2__598ce2e9-b044-49a5-8148-a83b18ba795d.6893.1_BLTest1.nsh:cd:15: no such file or directory: E/...

       

      How do I make the NSH Script report a status of "Error" when these problems occur in it?

       

      Thanks

       

      Chinh

       

       

      :