0 Replies Latest reply on Mar 8, 2012 8:22 AM by hbss_1

    agent deployment via python

      based on the 4.6 python scripting guide i wrote the code below the "------" and i am getting the following error.  I'm not sure where my error is.  thanks

       

       

       

      Traceback (most recent call last):

        File "epo_4-6.py", line 239, in <module>

          deploy_agent(macafee_client, client_list)

        File "epo_4-6.py", line 66, in deploy_agent

          mc.system.deployAgent(system_agent, username, password, agentPackage, skipIfInstalled, suppressUI, forceInstall, installPath, domain, useAllHandlers, primaryAgentHandler, retryIntervalSeconds, attempts, abortAfterMinutes, includeSubgroups, useSsh, inputSource)

        File "c:\pyclient\Python26\mcafee.py", line 454, in __call__

          raise e

      mcafee.CommandInvokerError: No agent deployments were successful

       

      -------------------------------------------------------------------------------- ------------------------------------

       

      import mcafee, os ,sys

       

      username = "user"

      password = "password"

      agentPackage = "Current/EPOAGENT3000/Install/0409"

      skipIfInstalled = "false"

      suppressUI = "true"

      forceInstall = "true"

      installPath = "<PROGRAM_FILES_DIR>\McAfee\Common Framework"

      domain = "ad"

      useAllHandlers = "false"

      primaryAgentHandler = "1"

      retryIntervalSeconds = "60"

      attempts = "3"

      abortAfterMinutes = "15"

      includeSubgroups = "false"

      useSsh = "false"

      inputSource = "1"

      client_list = ["hostname"]

       

      macafee_client = mcafee.client("xxx.xxx.xxx.xxx", "8443", "user", "password", output=client_output)

       

      def deploy_agent(mc, system_list):

       

          for system_agent in system_list:

       

              mc.system.deployAgent(system_agent, username, password, agentPackage, skipIfInstalled, suppressUI, forceInstall, installPath, domain, useAllHandlers, primaryAgentHandler, retryIntervalSeconds, attempts, abortAfterMinutes, includeSubgroups, useSsh, inputSource)

       

       

      deploy_agent(macafee_client, client_list)