在Windows上远程安装Hyperic Agent

先决条件
   1。Windows机器的管理员权限(以下简称AgentBox)
   2。AgentBox启用文件/打印共享
   3。 PSTools(特别PSExec)
   4。默认agent配置文件(如:hyperic-hq-agent-3.1.0)
   5。控制台访问到另一个Windows机器(以下简称ServerBox)

过程:

  1. Download/Install PSTools (or just PSExec) on ServerBox
  2. Download/Copy the default agent configuration files to ServerBox
  3. Open the agent.properties file
  4. Edit the following lines:
    #agent.setup.camIP=localhost
    #agent.setup.camPort=7080
    #agent.setup.camSSLPort=7443
    #agent.setup.camSecure=yes
    #agent.setup.camLogin=hqadmin
    #agent.setup.camPword=hqadmin
    #agent.setup.agentIP=default
    #agent.setup.agentPort=default
    #agent.setup.resetupTokens=no
  5. Remove the # sign's
  6. Specify the appropriate settings that much your setup - it will look something like:
    (data is meant to be a possible config - your password should be strong)
    agent.setup.camIP=10.0.0.20
    agent.setup.camPort=7080
    agent.setup.camSSLPort=7443
    agent.setup.camSecure=no
    agent.setup.camLogin=hqadmin
    agent.setup.camPword=password
    agent.setup.agentIP=default
    agent.setup.agentPort=default
    agent.setup.resetupTokens=no
  7. Save the file
  8. Connect to AgentBox's admin share
    (Start -> Run -> \\AgentBox\c$)
  9. Browse to Program Files
  10. Copy/Paste the config folder from ServerBox to the path we've just browsed to on AgentBox
    (the agent.properties file you previously edited should now also reside at "\\AgentBox\c$\Program Files\hyperic-hq-admin-3.1.0")
  11. Open a command prompt on ServerBox
    (Start -> Run -> cmd)
  12. Change Directories to the location where you installed PSExec
    (ex: c:\pstools)
  13. Type the following:
    psexec
    AgentBox "c:\program files\hyperic-hq-agent-3.1.0\hq-agent.exe" -i
  14. After it reports back successful, type the following:
    psexec
    AgentBox net start "Hyperic HQ Agent"
  15. Once that reports back successful, open up your HQ and import the newly discovered device, AgentBox