CA Client Automation

Expand all | Collapse all

Software Deployment

  • 1.  Software Deployment

    Posted May 24, 2018 02:13 AM

    Hi All,

     

    We are trying to deploy software package to end points it is failing with below error code. In the SD logs it states exit code 1 but in the ITCA console job output it returned 0

     

    I have passed $#ec:01 while creating the job.

     

    Error message:-

     

     

    Logs :

    240518-15:54:04.7085676L|007352|000012b0|SDAgent |SDAgent |sdjobclientif.cpp |001234|NOTIFY | Set job status for 85A3DB76-4F64-4CDC-BDDF-6613062DD1A3
    240518-15:54:04.7277536L|007352|000012b0|SDAgent | |sdjesdprocedureexecu|000520|NOTIFY | GetBinaryType() failed
    240518-15:54:04.7374464L|007352|000012b0|SDAgent | |sdjejobexecutorhelpe|000061|NOTIFY | Creating a WIN NT Job executor helper
    240518-15:54:05.0243571L|007352|000012b0|SDAgent | |sdjesdprocedureexecu|000533|NOTIFY | SDJESDProcedureExecutorIf::Execute executing CiscoTetration_Agent_2.3.1.41.win64_Install.bat /s REBOOT=ReallySuppress
    240518-15:54:05.0248323L|007352|000012b0|SDAgent | |sdjejobexecutorhelpe|000061|NOTIFY | Creating a WIN NT Job executor helper
    240518-15:54:05.2836419L|007352|000012b0|SDAgent | |sdjejobexecutorhelpe|000061|NOTIFY | Creating a WIN NT Job executor helper
    240518-15:54:05.3424272L|013468|000035e0|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | SMEVENT : New Endpoint. Handle 0x009283a8 Name CAI013468-00002
    240518-15:54:05.3425940L|013468|000035e0|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | SMEVENT : New Session. Target = (localhost) 127.0.0.1\CAI007352-00000. LID = 349c0004. SH = 009294c8
    240518-15:54:05.3466908L|007352|000036b0|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | SMEVENT : New Session. Target = (10.170.35.222) 10.170.35.222\CAI013468-00002. LID = 1cb80006. SH = 00b57ed8
    240518-15:54:05.4089280L|013468|00003490|SDAgent | |sdjeipcslaveprogress|000329|NOTIFY | SDJEIPCSlaveProgressIf::SMdispatch() - replying to message
    240518-15:54:05.4002551L|007352|000012b0|SDAgent | |sdjecontainerif.cpp |001401|NOTIFY | SDjob 1 returns: 1 ExitCode: 0
    240518-15:54:05.4002951L|007352|000012b0|SDAgent | |sdjecontainerif.cpp |002708|NOTIFY | Execution not OK
    240518-15:54:05.4791551L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000087|NOTIFY | New CCcnfAgentApi 0xb5dd38, instcount 3, sesscount 1
    240518-15:54:05.4791953L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000206|NOTIFY | CCcnfAgentApi::Init() 0xb5dd38, instcount 3, sesscount 1
    240518-15:54:05.4843572L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xb5dd38, instcount 3, sesscount 1
    240518-15:54:05.4848022L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xb5dd38 done, instcount 2, sesscount 1
    240518-15:54:05.7012031L|007352|000012b0|SDAgent |SDAgent |sdjobclientif.cpp |001234|NOTIFY | Set job status for 85A3DB76-4F64-4CDC-BDDF-6613062DD1A3
    240518-15:54:05.7611778L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000087|NOTIFY | New CCcnfAgentApi 0xb5dd38, instcount 3, sesscount 1
    240518-15:54:05.7612192L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000206|NOTIFY | CCcnfAgentApi::Init() 0xb5dd38, instcount 3, sesscount 1
    240518-15:54:05.7663628L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xb5dd38, instcount 3, sesscount 1
    240518-15:54:05.7666003L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xb5dd38 done, instcount 2, sesscount 1
    240518-15:54:05.7667011L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000087|NOTIFY | New CCcnfAgentApi 0xb5dd38, instcount 3, sesscount 1
    240518-15:54:05.7667306L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000206|NOTIFY | CCcnfAgentApi::Init() 0xb5dd38, instcount 3, sesscount 1
    240518-15:54:05.7707337L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xb5dd38, instcount 3, sesscount 1
    240518-15:54:05.7709325L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xb5dd38 done, instcount 2, sesscount 1
    240518-15:54:05.7815696L|007352|000012b0|SDAgent | |sdjecontainerif.cpp |004498|NOTIFY | Never Shutdown this computer
    240518-15:54:05.7818312L|007352|000012b0|SDAgent | |sdjecontainerif.cpp |003327|NOTIFY | Container done, clean up...
    240518-15:54:05.8368822L|007352|000012b0|SDAgent |SDAgent |sdjobclientif.cpp |000397|NOTIFY | Disconnect request
    240518-15:54:08.8603837L|013468|00001aa8|SDAgent | |main.cpp |000147|NOTIFY | WndProc() - ShutdownBlockReasonDestroy() succeeded
    240518-15:54:08.8634484L|013468|00001c9c|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | updateSession : Peer has changed address. Old 127.0.0.1 New 10.170.35.222
    240518-15:54:08.8642295L|013468|0000329c|SDAgent |SDAgent |sdsmmsg.cpp |000715|NOTIFY | SmMessageQueue shut down request.
    240518-15:54:08.8642613L|013468|0000329c|SDAgent |SDAgent |sdsmmsg.cpp |000718|NOTIFY | SmMessageQueue shutting down.
    240518-15:54:08.8723360L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xb41928, instcount 2, sesscount 1
    240518-15:54:08.8725413L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xb41928 done, instcount 1, sesscount 1
    240518-15:54:08.8727313L|007352|000012b0|SDAgent |SDAgent |sdsmmsg.cpp |000715|NOTIFY | SmMessageQueue shut down request.
    240518-15:54:08.8727633L|007352|000012b0|SDAgent |SDAgent |sdsmmsg.cpp |000718|NOTIFY | SmMessageQueue shutting down.
    240518-15:54:08.8730129L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xb10b78, instcount 1, sesscount 1
    240518-15:54:08.8772658L|007352|000012b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xb10b78 done, instcount 0, sesscount 0

     

    Any leads will be appreciated.

     

    Thanks and Regards

    Varun kumar



  • 2.  Re: Software Deployment
    Best Answer

    Broadcom Employee
    Posted May 24, 2018 03:26 AM

    Hi Varun,

     

    $#ec macro overrides the usual exit code interpretation (where exit code=0 means OK, otherwise error).

     

    See How to use Macros in Installation Procedures withi - CA Knowledge 

     

    With $#ec:1, exit code 1 means OK and other exit code (like 0) means ERROR.

     

    So you should pass the following parameters :

     

    $#ec:0 $#ec:1

     

    or

     

    $#ec:0-1

     

    Thanks.

    Regards,

    Jean-Yves



  • 3.  Re: Software Deployment

    Posted May 24, 2018 08:01 PM

    Hi Jean-Yves,

     

    I have used the given parameter. This time the job status is Ok and green. 

    However, When i logged in to target machine to check the status of software, it was showing not installed.

    Below are the USD logs from agent machine.

     

    Any leads on this.

     

    Logs:

    ======

    250518-09:49:17.9206447L|006124|00001638|SDAgent |SDAgent |sdjobclientif.cpp |000967|NOTIFY | SetCompInfo target name: ., agent type:0
    250518-09:49:17.9208303L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000087|NOTIFY | New CCcnfAgentApi 0x6a24d0, instcount 2, sesscount 1
    250518-09:49:17.9208634L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000206|NOTIFY | CCcnfAgentApi::Init() 0x6a24d0, instcount 2, sesscount 1
    250518-09:49:18.1751099L|006124|00001638|SDAgent |SDAgent |sdjobclientif.cpp |002457|NOTIFY | Get container F8B02BD2-6E2A-4033-9913-6684CD619D8C
    250518-09:49:18.2037393L|006124|00000c44|SDAgent | |main.cpp |000101|NOTIFY | WndProc() - Shutdown prevention window:5400BE
    250518-09:49:18.2233876L|006124|00000c44|SDAgent | |main.cpp |000103|NOTIFY | WndProc() - ShutdownBlockReasonCreate() succeeded
    250518-09:49:18.2254271L|006124|00001638|SDAgent | |sdjecontainerif.cpp |000501|NOTIFY | Container Text is
    250518-09:49:18.2256388L|006124|00001638|SDAgent | |sdjecontainerif.cpp |000554|NOTIFY | Peer FIPS Mode is 1
    250518-09:49:18.2258825L|006124|00001638|SDAgent | |sdjecontainerif.cpp |000654|NOTIFY | Instantiating Library_1 as an internal nosless library (type=4)
    250518-09:49:18.2268653L|006124|00001638|SDAgent | |sdjejob.cpp |000229|NOTIFY | Job Text is
    250518-09:49:18.2320405L|003212|00001614|SDAgent | |main.cpp |000101|NOTIFY | WndProc() - Shutdown prevention window:1F05A2
    250518-09:49:18.2321776L|003212|00001614|SDAgent | |main.cpp |000103|NOTIFY | WndProc() - ShutdownBlockReasonCreate() succeeded
    250518-09:49:18.2322968L|003212|00001a80|SDAgent | |sdjeipcslaveprogress|000399|NOTIFY | SDJEIPCSlaveProgressIf::SMdispatch() - Disabling Logoffs/Reboots
    250518-09:49:18.2462284L|003212|000015e8|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | SMEVENT : New Endpoint. Handle 0x006b5cf0 Name CAI003212-00001
    250518-09:49:18.2465975L|003212|000015e8|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | SMEVENT : New Session. Target = (localhost) 127.0.0.1\CAI006124-00000. LID = 0c8c0003. SH = 006be0e8
    250518-09:49:18.2672680L|006124|00001b9c|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | SMEVENT : New Session. Target = (10.170.35.228) 10.170.35.228\CAI003212-00001. LID = 17ec0005. SH = 006c5ef8
    250518-09:49:18.3245657L|006124|00001638|SDAgent | |sdjecontainerif.cpp |002263|NOTIFY | Enable user interaction is set to TRUE
    250518-09:49:18.4832719L|006124|00001638|SDAgent | |sdjecontainerif.cpp |001029|NOTIFY | RequestAccess succeeded for library 1
    250518-09:49:20.1510036L|006124|00001638|SDAgent | |sdjecontainerif.cpp |004243|NOTIFY | Library type=4
    250518-09:49:20.1510675L|006124|00001638|SDAgent | |sdjecontainerif.cpp |004136|NOTIFY | CheckCRCForLocalSoftware: Status: AID:D942AA3A-1B7D-40AC-B93D-4D9B618170BA JID:D61AF8B8-B438-4823-A8E3-51BC571F00B5
    250518-09:49:20.1550718L|006124|00001638|SDAgent | |sdjecontainerif.cpp |001225|NOTIFY | Running SD job 1: TAD-Windows 2008,2008R2,2012,2012R2-64bit CiscoTetration_Agent_2.3.1.41.win64_Install 1.0
    250518-09:49:20.1551173L|006124|00001638|SDAgent | |sdjecontainerif.cpp |003978|NOTIFY | Status: CID:F8B02BD2-6E2A-4033-9913-6684CD619D8C AID:D942AA3A-1B7D-40AC-B93D-4D9B618170BA JID:D61AF8B8-B438-4823-A8E3-51BC571F00B5 rc:3
    250518-09:49:20.1551788L|006124|00001638|SDAgent |SDAgent |sdjobclientif.cpp |001234|NOTIFY | Set job status for D942AA3A-1B7D-40AC-B93D-4D9B618170BA
    250518-09:49:20.2034749L|006124|00001638|SDAgent | |sdjesdprocedureexecu|000520|NOTIFY | GetBinaryType() failed
    250518-09:49:20.2092042L|006124|00001638|SDAgent | |sdjejobexecutorhelpe|000061|NOTIFY | Creating a WIN NT Job executor helper
    250518-09:49:20.6493700L|006124|00001638|SDAgent | |sdjesdprocedureexecu|000533|NOTIFY | SDJESDProcedureExecutorIf::Execute executing CiscoTetration_Agent_2.3.1.41.win64_Install.bat /s REBOOT=ReallySuppress
    250518-09:49:20.6498400L|006124|00001638|SDAgent | |sdjejobexecutorhelpe|000061|NOTIFY | Creating a WIN NT Job executor helper
    250518-09:49:21.0287290L|006124|00001638|SDAgent | |sdjejobexecutorhelpe|000061|NOTIFY | Creating a WIN NT Job executor helper
    250518-09:49:21.0756703L|006124|00001638|SDAgent | |sdjecontainerif.cpp |001401|NOTIFY | SDjob 1 returns: 0 ExitCode: 0
    250518-09:49:21.2623892L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000087|NOTIFY | New CCcnfAgentApi 0x691c40, instcount 3, sesscount 1
    250518-09:49:21.2624363L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000206|NOTIFY | CCcnfAgentApi::Init() 0x691c40, instcount 3, sesscount 1
    250518-09:49:21.2661043L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x691c40, instcount 3, sesscount 1
    250518-09:49:21.2663312L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x691c40 done, instcount 2, sesscount 1
    250518-09:49:21.3198466L|006124|00001638|SDAgent |SDAgent |sdjobclientif.cpp |001234|NOTIFY | Set job status for D942AA3A-1B7D-40AC-B93D-4D9B618170BA
    250518-09:49:21.3647907L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000087|NOTIFY | New CCcnfAgentApi 0x6cda30, instcount 3, sesscount 1
    250518-09:49:21.3648329L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000206|NOTIFY | CCcnfAgentApi::Init() 0x6cda30, instcount 3, sesscount 1
    250518-09:49:21.3684751L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x6cda30, instcount 3, sesscount 1
    250518-09:49:21.3687375L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x6cda30 done, instcount 2, sesscount 1
    250518-09:49:21.3688464L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000087|NOTIFY | New CCcnfAgentApi 0x6cda30, instcount 3, sesscount 1
    250518-09:49:21.3688760L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000206|NOTIFY | CCcnfAgentApi::Init() 0x6cda30, instcount 3, sesscount 1
    250518-09:49:21.3719522L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x6cda30, instcount 3, sesscount 1
    250518-09:49:21.3721904L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x6cda30 done, instcount 2, sesscount 1
    250518-09:49:21.3935562L|006124|00001638|SDAgent | |sdjecontainerif.cpp |004498|NOTIFY | Never Shutdown this computer
    250518-09:49:21.3940045L|006124|00001638|SDAgent | |sdjecontainerif.cpp |003327|NOTIFY | Container done, clean up...
    250518-09:49:21.4557695L|006124|00001638|SDAgent |SDAgent |sdjobclientif.cpp |000397|NOTIFY | Disconnect request
    250518-09:49:24.5244831L|003212|00001614|SDAgent | |main.cpp |000147|NOTIFY | WndProc() - ShutdownBlockReasonDestroy() succeeded
    250518-09:49:24.5382742L|003212|00001474|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | updateSession : Peer has changed address. Old 127.0.0.1 New 10.170.35.228
    250518-09:49:24.5432159L|003212|00001a30|SDAgent |SDAgent |sdsmmsg.cpp |000715|NOTIFY | SmMessageQueue shut down request.
    250518-09:49:24.5432690L|003212|00001a30|SDAgent |SDAgent |sdsmmsg.cpp |000718|NOTIFY | SmMessageQueue shutting down.
    250518-09:49:24.5567184L|006124|00001638|SDAgent | |main.cpp |000328|NOTIFY | Trying to stop the service
    250518-09:49:26.5569585L|006124|00001638|SDAgent | |main.cpp |000343|NOTIFY | Successfully stopped the service
    250518-09:49:26.5571235L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x6a24d0, instcount 2, sesscount 1
    250518-09:49:26.5574378L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x6a24d0 done, instcount 1, sesscount 1
    250518-09:49:26.5576716L|006124|00001638|SDAgent |SDAgent |sdsmmsg.cpp |000715|NOTIFY | SmMessageQueue shut down request.
    250518-09:49:26.5577020L|006124|00001638|SDAgent |SDAgent |sdsmmsg.cpp |000718|NOTIFY | SmMessageQueue shutting down.
    250518-09:49:26.5579789L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x670f60, instcount 1, sesscount 1
    250518-09:49:26.5610106L|006124|00001638|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x670f60 done, instcount 0, sesscount 0

     

    Thanks and Regards

    Varun kumar



  • 4.  Re: Software Deployment

    Broadcom Employee
    Posted May 25, 2018 03:36 AM

    Hi Varun,

     

    I could see that package SD executes this command :

     

    CiscoTetration_Agent_2.3.1.41.win64_Install.bat /s REBOOT=ReallySuppress

     

    and it returns 0

     

    SDjob 1 returns: 0 ExitCode: 0

     

    A .bat script returns the exit code of the last command executed in the script.

     

    Maybe the command msiexec to install CiscoTetration_Agent_2.3.1.41 is not the last command.

    It may return an error and if a command after it is OK, the overall status of BAT script is OK.

     

     

    You could report the exit code of msiexec command as overall exit code of .BAT script by updating the .bat file like this :

     

    <msiexec command>

    SET RETCODE=%ERRORLEVEL%

     

    ....<Other Command>

     

    echo [RESULT] > "%SDROOT%"\ASM\CONF\ASMINSTW.RES
    echo ErrorCode=%RETCODE% >> "%SDROOT%"\ASM\CONF\ASMINSTW.RES

     

     

    Thanks.

    Regards,

    Jean-Yves



  • 5.  Re: Software Deployment

    Posted Jun 05, 2018 02:20 AM
      |   view attached

    HI Jean-Yves,

     

    Our team has modified the package and re deployed it on target servers. Again the job status is Green but software

    didn't deployed on target servers.

    The same batch file works manually when we deployed. 

     

    And also i'm attaching the script for your reference, Please let me know for any changes.

     

    USD Logs:-

    ============

    050618-15:26:58.2988103L|005016|000009c8|SDAgent | |sdjecontainerif.cpp |000554|NOTIFY | Peer FIPS Mode is 1
    050618-15:26:58.2988824L|005016|000009c8|SDAgent | |sdjecontainerif.cpp |000630|NOTIFY | Instantiating Library_1 as a local library (type=0)
    050618-15:26:58.3006722L|005016|000009c8|SDAgent | |sdjejob.cpp |000229|NOTIFY | Job Text is
    050618-15:26:58.3052076L|003720|00000c34|SDAgent | |main.cpp |000101|NOTIFY | WndProc() - Shutdown prevention window:301E2
    050618-15:26:58.3052843L|003720|00000c34|SDAgent | |main.cpp |000103|NOTIFY | WndProc() - ShutdownBlockReasonCreate() succeeded
    050618-15:26:58.3053690L|003720|0000106c|SDAgent | |sdjeipcslaveprogress|000399|NOTIFY | SDJEIPCSlaveProgressIf::SMdispatch() - Disabling Logoffs/Reboots
    050618-15:26:58.3216024L|003720|00000ef8|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | SMEVENT : New Endpoint. Handle 0x02ee2b98 Name CAI003720-00001
    050618-15:26:58.3219050L|003720|00000ef8|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | SMEVENT : New Session. Target = (localhost) 127.0.0.1\CAI005016-00000. LID = 0e880003. SH = 02ee7e28
    050618-15:26:58.3397882L|005016|0000117c|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | SMEVENT : New Session. Target = (10.136.67.21) 10.136.67.21\CAI003720-00001. LID = 13980006. SH = 021527d8
    050618-15:26:58.4044734L|005016|000009c8|SDAgent | |sdjecontainerif.cpp |002263|NOTIFY | Enable user interaction is set to TRUE
    050618-15:26:58.4265700L|005016|000009c8|SDAgent | |sdjecontainerif.cpp |001029|NOTIFY | RequestAccess succeeded for library 1
    050618-15:26:58.4312836L|005016|000009c8|SDAgent | |sdjecontainerif.cpp |004243|NOTIFY | Library type=0
    050618-15:26:58.4315036L|005016|000009c8|SDAgent |SDAgent |sdjobclientif.cpp |002926|NOTIFY | Check CRC for 5EEF3429-C7CA-414D-AAAE-914A71627980
    050618-15:26:58.4417663L|005016|000009c8|SDAgent | |sdjecontainerif.cpp |001225|NOTIFY | Running SD job 1: TAD-Windows 2008,2008R2,2012,2012R2-64bit CiscoTetration_Agent_2.3.1.41.win64_Install 2.0
    050618-15:26:58.4418169L|005016|000009c8|SDAgent | |sdjecontainerif.cpp |003978|NOTIFY | Status: CID:A2D56FC6-D1C5-45D3-A566-58963C42C4FD AID:0501999A-FA88-4C59-B0E3-C38F04B06349 JID:5EEF3429-C7CA-414D-AAAE-914A71627980 rc:3
    050618-15:26:58.4418684L|005016|000009c8|SDAgent |SDAgent |sdjobclientif.cpp |001234|NOTIFY | Set job status for 0501999A-FA88-4C59-B0E3-C38F04B06349
    050618-15:26:58.4703503L|005016|000009c8|SDAgent | |sdjesdprocedureexecu|000520|NOTIFY | GetBinaryType() failed
    050618-15:26:58.4718467L|005016|000009c8|SDAgent | |sdjejobexecutorhelpe|000061|NOTIFY | Creating a WIN NT Job executor helper
    050618-15:26:58.7595308L|005016|000009c8|SDAgent | |sdjesdprocedureexecu|000533|NOTIFY | SDJESDProcedureExecutorIf::Execute executing CiscoTetration_Agent_2.3.1.41.win64_Install.bat /s REBOOT=ReallySuppress
    050618-15:26:58.7601166L|005016|000009c8|SDAgent | |sdjejobexecutorhelpe|000061|NOTIFY | Creating a WIN NT Job executor helper
    050618-15:26:59.0283155L|005016|000009c8|SDAgent | |sdjejobexecutorhelpe|000061|NOTIFY | Creating a WIN NT Job executor helper
    050618-15:26:59.0602549L|005016|000009c8|SDAgent | |sdjecontainerif.cpp |001401|NOTIFY | SDjob 1 returns: 0 ExitCode: 0
    050618-15:26:59.0877389L|005016|000009c8|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000087|NOTIFY | New CCcnfAgentApi 0x2162f18, instcount 3, sesscount 1
    050618-15:26:59.0877780L|005016|000009c8|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000206|NOTIFY | CCcnfAgentApi::Init() 0x2162f18, instcount 3, sesscount 1
    050618-15:26:59.0914432L|005016|000009c8|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x2162f18, instcount 3, sesscount 1
    050618-15:26:59.0916667L|005016|000009c8|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x2162f18 done, instcount 2, sesscount 1
    050618-15:26:59.1435362L|005016|000009c8|SDAgent |SDAgent |sdjobclientif.cpp |001234|NOTIFY | Set job status for 0501999A-FA88-4C59-B0E3-C38F04B06349
    050618-15:26:59.1703089L|005016|000009c8|SDAgent | |sdjecontainerif.cpp |004498|NOTIFY | Never Shutdown this computer
    050618-15:26:59.1706042L|005016|000009c8|SDAgent | |sdjecontainerif.cpp |003327|NOTIFY | Container done, clean up...
    050618-15:26:59.2193651L|005016|000009c8|SDAgent |SDAgent |sdjobclientif.cpp |000397|NOTIFY | Disconnect request
    050618-15:27:02.2379486L|003720|00000c34|SDAgent | |main.cpp |000147|NOTIFY | WndProc() - ShutdownBlockReasonDestroy() succeeded
    050618-15:27:02.2414233L|003720|00000c04|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | updateSession : Peer has changed address. Old 127.0.0.1 New 10.136.67.21
    050618-15:27:02.2428855L|003720|00000204|SDAgent |SDAgent |sdsmmsg.cpp |000715|NOTIFY | SmMessageQueue shut down request.
    050618-15:27:02.2429193L|003720|00000204|SDAgent |SDAgent |sdsmmsg.cpp |000718|NOTIFY | SmMessageQueue shutting down.
    050618-15:27:02.2471054L|005016|000009c8|SDAgent | |main.cpp |000328|NOTIFY | Trying to stop the service
    050618-15:27:04.2476723L|005016|000009c8|SDAgent | |main.cpp |000343|NOTIFY | Successfully stopped the service
    050618-15:27:04.2480460L|005016|000009c8|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x211e8c0, instcount 2, sesscount 1
    050618-15:27:04.2484040L|005016|000009c8|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x211e8c0 done, instcount 1, sesscount 1
    050618-15:27:04.2486599L|005016|000009c8|SDAgent |SDAgent |sdsmmsg.cpp |000715|NOTIFY | SmMessageQueue shut down request.
    050618-15:27:04.2486923L|005016|000009c8|SDAgent |SDAgent |sdsmmsg.cpp |000718|NOTIFY | SmMessageQueue shutting down.
    050618-15:27:04.2489464L|005016|000009c8|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x20f1c20, instcount 1, sesscount 1
    050618-15:27:04.2519745L|005016|000009c8|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x20f1c20 done, instcount 0, sesscount 0

    -

    Attachment(s)

    zip
    script.txt.zip   1 KB 1 version


  • 6.  Re: Software Deployment

    Broadcom Employee
    Posted Jun 05, 2018 05:07 AM

    From the trace you are calling from the Item Procedure                  “CiscoTetration_Agent_2.3.1.41.win64_Install.bat /s REBOOT=ReallySuppress”      But, the script is expecting the first parameter to be a custom install path so fails. The script lasts less than one second and has no logging making it difficult for you to see what’s going wrong.



  • 7.  Re: Software Deployment

    Posted Jun 05, 2018 09:39 PM

    Hi Steve,

     

    I have informed the same to our packaging team. Will let you know once they update.

     

    Thanks and Regards

    Varun kumar



  • 8.  Re: Software Deployment

    Posted Jun 06, 2018 12:49 AM
      |   view attached

    Hi Steve,

    We have tested again with vendor source package with out re-packaging it, Looks like it is same behaviour status shows green but package didn't deployed. passed user parameter as suggested $#ec:0-1

     

    Attaching the source script for your reference, Let me know if anything is missing.

     

    USD Logs:-

    ==========

    060618-14:36:50.7405384L|004216|00000620|SDAgent | |main.cpp |000101|NOTIFY | WndProc() - Shutdown prevention window:2150266
    060618-14:36:50.7406265L|004216|00000620|SDAgent | |main.cpp |000103|NOTIFY | WndProc() - ShutdownBlockReasonCreate() succeeded
    060618-14:36:50.7407017L|004216|00001200|SDAgent | |sdjeipcslaveprogress|000399|NOTIFY | SDJEIPCSlaveProgressIf::SMdispatch() - Disabling Logoffs/Reboots
    060618-14:36:50.7516366L|004216|0000048c|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | SMEVENT : New Endpoint. Handle 0x00ac4c80 Name CAI004216-00001
    060618-14:36:50.7518398L|004216|0000048c|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | SMEVENT : New Session. Target = (localhost) 127.0.0.1\CAI003996-00000. LID = 10780003. SH = 00ad1ec0
    060618-14:36:50.7664637L|003996|00001054|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | SMEVENT : New Session. Target = (10.170.35.80) 10.170.35.80\CAI004216-00001. LID = 0f9c0005. SH = 00a23c30
    060618-14:36:50.8208556L|003996|000011b0|SDAgent | |sdjecontainerif.cpp |002263|NOTIFY | Enable user interaction is set to TRUE
    060618-14:36:50.8389142L|003996|000011b0|SDAgent | |sdjecontainerif.cpp |001029|NOTIFY | RequestAccess succeeded for library 1
    060618-14:36:51.9876471L|003996|000011b0|SDAgent | |sdjecontainerif.cpp |004243|NOTIFY | Library type=4
    060618-14:36:51.9876857L|003996|000011b0|SDAgent | |sdjecontainerif.cpp |004136|NOTIFY | CheckCRCForLocalSoftware: Status: AID:229258B6-858D-4234-8659-0223BEAE68AD JID:4FA5816F-B481-4502-A760-B0C22216B520
    060618-14:36:51.9893250L|003996|000011b0|SDAgent | |sdjecontainerif.cpp |001225|NOTIFY | Running SD job 1: Cisco Source_2008 & 2102 64bit install 1.0
    060618-14:36:51.9893589L|003996|000011b0|SDAgent | |sdjecontainerif.cpp |003978|NOTIFY | Status: CID:5ACC7C45-B545-468A-878C-4B7AF802EAA8 AID:229258B6-858D-4234-8659-0223BEAE68AD JID:4FA5816F-B481-4502-A760-B0C22216B520 rc:3
    060618-14:36:51.9894154L|003996|000011b0|SDAgent |SDAgent |sdjobclientif.cpp |001234|NOTIFY | Set job status for 229258B6-858D-4234-8659-0223BEAE68AD
    060618-14:36:52.0116769L|003996|000011b0|SDAgent | |sdjesdprocedureexecu|000520|NOTIFY | GetBinaryType() failed
    060618-14:36:52.0126558L|003996|000011b0|SDAgent | |sdjejobexecutorhelpe|000061|NOTIFY | Creating a WIN NT Job executor helper
    060618-14:36:52.0734805L|003996|000011b0|SDAgent | |sdjesdprocedureexecu|000533|NOTIFY | SDJESDProcedureExecutorIf::Execute executing install.cmd REBOOT=ReallySuppress
    060618-14:36:52.0748634L|003996|000011b0|SDAgent | |sdjejobexecutorhelpe|000061|NOTIFY | Creating a WIN NT Job executor helper
    060618-14:36:52.2451038L|003996|000011b0|SDAgent | |sdjejobexecutorhelpe|000061|NOTIFY | Creating a WIN NT Job executor helper
    060618-14:36:52.2749005L|003996|000011b0|SDAgent | |sdjecontainerif.cpp |001401|NOTIFY | SDjob 1 returns: 0 ExitCode: 0
    060618-14:36:52.2875748L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000087|NOTIFY | New CCcnfAgentApi 0xa2f820, instcount 3, sesscount 1
    060618-14:36:52.2876080L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000206|NOTIFY | CCcnfAgentApi::Init() 0xa2f820, instcount 3, sesscount 1
    060618-14:36:52.2902271L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xa2f820, instcount 3, sesscount 1
    060618-14:36:52.2903912L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xa2f820 done, instcount 2, sesscount 1
    060618-14:36:52.3237971L|003996|000011b0|SDAgent |SDAgent |sdjobclientif.cpp |001234|NOTIFY | Set job status for 229258B6-858D-4234-8659-0223BEAE68AD
    060618-14:36:52.3591772L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000087|NOTIFY | New CCcnfAgentApi 0xa2f820, instcount 3, sesscount 1
    060618-14:36:52.3592150L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000206|NOTIFY | CCcnfAgentApi::Init() 0xa2f820, instcount 3, sesscount 1
    060618-14:36:52.3622810L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xa2f820, instcount 3, sesscount 1
    060618-14:36:52.3624550L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xa2f820 done, instcount 2, sesscount 1
    060618-14:36:52.3625408L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000087|NOTIFY | New CCcnfAgentApi 0xa2f820, instcount 3, sesscount 1
    060618-14:36:52.3625685L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000206|NOTIFY | CCcnfAgentApi::Init() 0xa2f820, instcount 3, sesscount 1
    060618-14:36:52.3646696L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xa2f820, instcount 3, sesscount 1
    060618-14:36:52.3648277L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xa2f820 done, instcount 2, sesscount 1
    060618-14:36:52.3742200L|003996|000011b0|SDAgent | |sdjecontainerif.cpp |004498|NOTIFY | Never Shutdown this computer
    060618-14:36:52.3744748L|003996|000011b0|SDAgent | |sdjecontainerif.cpp |003327|NOTIFY | Container done, clean up...
    060618-14:36:52.4060825L|003996|000011b0|SDAgent |SDAgent |sdjobclientif.cpp |000397|NOTIFY | Disconnect request
    060618-14:36:55.4312098L|004216|00000620|SDAgent | |main.cpp |000147|NOTIFY | WndProc() - ShutdownBlockReasonDestroy() succeeded
    060618-14:36:55.4316189L|004216|00001200|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | updateSession : Peer has changed address. Old 127.0.0.1 New 10.170.35.80
    060618-14:36:55.4347000L|004216|00000bc4|SDAgent |CFSMCAPI |CFSMCAPI |000000|NOTIFY | updateSession : Peer has changed address. Old 127.0.0.1 New 10.170.35.80
    060618-14:36:55.4378628L|004216|00000780|SDAgent |SDAgent |sdsmmsg.cpp |000715|NOTIFY | SmMessageQueue shut down request.
    060618-14:36:55.4378909L|004216|00000780|SDAgent |SDAgent |sdsmmsg.cpp |000718|NOTIFY | SmMessageQueue shutting down.
    060618-14:36:55.4468500L|003996|000011b0|SDAgent | |main.cpp |000328|NOTIFY | Trying to stop the service
    060618-14:36:57.4712162L|003996|000011b0|SDAgent | |main.cpp |000343|NOTIFY | Successfully stopped the service
    060618-14:36:57.4713722L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xa1a7c8, instcount 2, sesscount 1
    060618-14:36:57.4717286L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0xa1a7c8 done, instcount 1, sesscount 1
    060618-14:36:57.4720146L|003996|000011b0|SDAgent |SDAgent |sdsmmsg.cpp |000715|NOTIFY | SmMessageQueue shut down request.
    060618-14:36:57.4720552L|003996|000011b0|SDAgent |SDAgent |sdsmmsg.cpp |000718|NOTIFY | SmMessageQueue shutting down.
    060618-14:36:57.4723543L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000107|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x9c4130, instcount 1, sesscount 1
    060618-14:36:57.4757015L|003996|000011b0|SDAgent |CcnfAgentApi |CCcnfAgentApi.cpp |000170|NOTIFY | CCcnfAgentApi::~CCcnfAgentApi() 0x9c4130 done, instcount 0, sesscount 0

     

    Thanks and Regards

    Varun kumar

    Attachment(s)

    zip
    install.cmd.zip   983 B 1 version


  • 9.  Re: Software Deployment

    Broadcom Employee
    Posted Jun 06, 2018 04:28 AM

    Hi Varun,

     

    The SD job executes the command :

     

    install.cmd REBOOT=ReallySuppress

     

    060618-14:36:52.0734805L|003996|000011b0|SDAgent | |sdjesdprocedureexecu|000533|NOTIFY | SDJESDProcedureExecutorIf::Execute executing install.cmd REBOOT=ReallySuppress

     

     

    If I execute manually this command I get this output :

     


    install.cmd REBOOT=ReallySuppress


    Welcome to Tetration Analytics Windows Sensor installation.
    Please wait while installation is running.
    custom path is given
    sensor_base: REBOOT
    must use absolute path, installation abort.

     

     

     

    Expected first parameter is a absolute installation path.

     

    I think the solution is to update the procedure install of package 'Cisco Source_2008 & 2102 64bit' in order to remove REBOOT=ReallySuppress from the procedure parameter and replace it with the full installation path for sensor.

     

     

     

    Thanks.

    Regards,

    Jean-Yves



  • 10.  Re: Software Deployment

    Posted Jun 06, 2018 06:08 AM

    Hi Jean-Yves,

     

    Thanks for the reply. I have added below parameters & Full installation path of Windows sensor on the procedure of package.

    Full Installation path of Package on target location :"C:\Program Files\Cisco Tetration"

    Is it ok ?

    And also attaching the supporting files of Software of the source package.

    Thanks and Regards

    Varun kumar



  • 11.  Re: Software Deployment

    Broadcom Employee
    Posted Jun 06, 2018 06:17 AM

    No. You do not have the install patch as the first parameter. So it should read as: “C:\Program Files\Cisco Tetration” $#BG

     

    Also you script is using a variable %UPDATE% which would change the location of the setup program from the root of the SD Package.



  • 12.  Re: Software Deployment

    Posted Jun 06, 2018 07:25 AM
      |   view attached

    Hi Steve,

     

    This time only Cisco Tetration folder has been created and status showing Green. But actual installation hasn't happened and inside Cisco Tetration folder there are files available.

     

    Target machine C:programfiles\Cisco tetration folder has created(Empty folder)

     

     

     

     

    And also attaching the USD logs from end point.

     

    Regarding your question "Also you script is using a variable %UPDATE% which would change the location of the setup program from the root of the SD Package"

    You meant to say, the files will not be be initiated or deployed from SD/TMP folder ? Is this causing the issue ?

     

    Thanks and Regards

    Varun kumar

    Attachment(s)

    zip
    USD Logs.txt.zip   1 KB 1 version


  • 13.  Re: Software Deployment

    Broadcom Employee
    Posted Jun 06, 2018 07:29 AM

    Please try removing the %update% from the script.



  • 14.  Re: Software Deployment

    Posted Jun 06, 2018 07:54 AM

    Hi Steve,

     

    Is it ok ?

     

    Before making changes:-

     

    After making changes :-

     

    Thanks and Regards

    Varun kumar



  • 15.  Re: Software Deployment

    Broadcom Employee
    Posted Jun 06, 2018 08:18 AM

    Yes.

     

     

     

    Rgds

    Steve.

     

    Sent from my Samsung Galaxy smartphone.



  • 16.  Re: Software Deployment

    Posted Jun 06, 2018 08:33 AM

    Excellent Steve !!!

     

    After removing the %update% from script it works. The package installed with all the supporting files & verified with port testing of installed application.

     

    Would like to understand the %update% & Root of SD package logic. Could you please let me know on this.

     

    Thanks for your help on this.

     

    Thanks and Regards

    Varun kumar



  • 17.  Re: Software Deployment

    Posted Jun 06, 2018 08:20 AM

    Hi Steve,

    The installation remains in active state after removing the %Update% from the batch script.

    I Would like to understand the removal of %UPDATE% from the script. So that i can check with Vendor Cisco more about this. Can you please explain in detail about this ?

    Thanks and Regards

    Varun kumar



  • 18.  Re: Software Deployment

    Broadcom Employee
    Posted Jun 06, 2018 08:40 AM

    The variable changes the full path to the eexecutable causing it not to be found .

     

     

     

    Rgds

    Steve.

     

    Sent from my Samsung Galaxy smartphone.



  • 19.  Re: Software Deployment

    Broadcom Employee
    Posted Jun 05, 2018 08:46 AM

    Hi, remember the agent runs as local system not as a user.  To test your package installing as local system use the at command to do the install (windows scheduler).  It also runs as local system.  See what the result is.

     

    Richard Lechner

    Principal Engineering Services Architect

     

    CA Technologies

    Mobile: +1 703 655 7161 | Richard.Lechner@ca.com

     

    <mailto:Richard.Lechner@ca.com>[CA]<http://www.ca.com/us/default.aspx>[Twitter]<http://twitter.com/CAInc>[Slideshare]<http://www.slideshare.net/cainc>[Facebook]<https://www.facebook.com/CATechnologies>[YouTube]<http://www.youtube.com/user/catechnologies>[LinkedIn]<http://www.linkedin.com/company/1372?goback=.cps_1244823420724_1>[Google]<https://plus.google.com/CATechnologies>[Google+]<http://www.ca.com/us/rss.aspx?intcmp=footernav>



  • 20.  Re: Software Deployment

    Posted Jun 05, 2018 09:38 PM

    Hi Richard,

     

    I have deployed this through Windows task scheduler and installation went well with our any issues. Software has been deployed.

     

    what else could be the issue ?

     

    Thanks and Regards

    Varun kumar