10 Replies Latest reply on Feb 23, 2016 12:08 AM by Namdeo Patil

    PsExec error: The handle is invalid.

    Namdeo Patil



      BSA Appserver version: 8.6 SP1

      SOCKS proxy RSCD version: 8.6 SP1

      PsExec RSCD agent version: 8.6 SP1


      SOCKS proxy and PsExec is in same subnet,

      Port 4750 and 139/445 is open from Socks to PsExec  to  Target


      Trying to deploy the RSCD agent on agent less servers behind the SOCKS proxy,but it's failing with below error message in unified agent installer job run log:


      Job Run log:


      Info        02/17/2016 19:54:21        Failed to detect a running agent on server ''. Assuming agent is not installed.

      Info        02/17/2016 19:54:21        Initiating agent installation.

      Info        02/17/2016 19:54:24        Initializing the FQDN and IP Address for ''

      Info        02/17/2016 19:54:24        No property update is needed for '' as FQDN and IP Address are already set.

      Info        02/17/2016 19:54:24        Found 1 remote host authentication associated with server ''.  Checking it to make sure it is valid.

      Info        02/17/2016 19:54:29        Validating remote host authentication 1 of 1 'ID_RSCD_Install' against server ''.

      Info        02/17/2016 19:54:30        Remote host authentication 1 of 1 'ID_RSCD_Install' validated successfully against server ''.  'ID_RSCD_Install' will be used for the installation.

      Warning              02/17/2016 19:54:30        PsExec v2.11 - Execute processes remotely

      Warning              02/17/2016 19:54:30        Copyright (C) 2001-2014 Mark Russinovich

      Warning              02/17/2016 19:54:30        Sysinternals - www.sysinternals.com

      Warning              02/17/2016 19:54:30        The handle is invalid.

      Warning              02/17/2016 19:54:30        Connecting to't access

      Warning              02/17/2016 19:54:30        Connecting to

      Info        02/17/2016 19:54:30        Attempting to discover the OS of server using the remote host authentication 'ID_RSCD_Install'.

      Error      02/17/2016 19:54:30        The target device has not been set for this execution protocol.



      Job run logs in debug mode:


      Getting below exceptions in job run log debug mode,


      17 Feb 2016 19:03:40,628] [WorkItem-Thread-169] [ERROR] [Namdeo.Patil@apdc.mgmt.axa-tech.intraxa:CLM_BLAdmins:] [AgentInstaller] [] The target device has not been set for this execution protocol.

      java.lang.NullPointerException: The target device has not been set for this execution protocol.

        at com.bladelogic.om.infra.app.service.executionprotocol.BaseExecutionProtocol.getTargetDeviceId(BaseExecutionProtocol.java:99)

        at com.bladelogic.om.bundleinstaller.model.job.agentinstallerjob.NativeDiscoveryHelper.tryWindows(NativeDiscoveryHelper.java:301)

        at com.bladelogic.om.bundleinstaller.model.job.agentinstallerjob.NativeDiscoveryHelper.discoverAgentPlatform(NativeDiscoveryHelper.java:64)

        at com.bladelogic.om.bundleinstaller.model.job.agentinstallerjob.AgentInstallerJobOsDiscoveryWorkItemImpl.discoverOsNative(AgentInstallerJobOsDiscoveryWorkItemImpl.java:201)

        at com.bladelogic.om.bundleinstaller.model.job.agentinstallerjob.AgentInstallerJobOsDiscoveryWorkItemImpl.discoverOs(AgentInstallerJobOsDiscoveryWorkItemImpl.java:157)

        at com.bladelogic.om.bundleinstaller.model.job.agentinstallerjob.AgentInstallerJobOsDiscoveryWorkItemImpl.execute(AgentInstallerJobOsDiscoveryWorkItemImpl.java:79)

        at com.bladelogic.om.infra.app.service.workitem.WorkItem.doExecute(WorkItem.java:126)

        at com.bladelogic.om.infra.app.service.workitem.thread.WorkItemThread.execute(WorkItemThread.java:176)

        at com.bladelogic.om.infra.app.service.workitem.thread.WorkItemThread.execute(WorkItemThread.java:51)

        at com.bladelogic.om.infra.app.service.thread.BlBlockingThread.run(BlBlockingThread.java:95)


      Followed the steps in below doc link to configure the PsExec server,


      Setting up a PsExec server - BMC Server Automation 8.6 - BMC Documentation


      Update Remote hot authentication status is successfully completed,:




      Command Execution Protocol:PSEXEC

      PsExec Server:

      Maximum Execution Parallelism:20

      Automation Principal:ID_RSCD_Install



      Can someone please confirm why it's failing with The handle is invalid and The target device has not been set for this execution protocol? do we need to amke any additional configuration on PsExec server/Socks?


      Would be grateful for any help,