Remote Agent Install on Windows

(The following originally appeared at http://forums.hyperic.com/jiveforums/thread.jspa?threadID=2810 - created by Ian)

After a couple searches it appears as though there are no guides regarding the remote installation of an agent on a Windows box.

I did find this page ( http://support.hyperic.com/confluence/display/DOCSHQ27/Agent+CLI+Command ), but it appears to be *nix based and a little more complex then I would expect. So, through some trial and error I managed to install the agent remotely and thought I'd detail the procedure.

Pre-requisites
1. Admin access to Windows box (referred to henceforth as AgentBox)
2. File/Print sharing enabled on AgentBox
3. PSTools (specifically PSExec)
4. Default agent configuration files (ex: hyperic-hq-agent-3.1.0)
5. Console access to another Windows box (referred to henceforth as ServerBox)

Procedure
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

I've test this on several boxes so far and seems to work like a charm.


Browse Space

- Pages
- News
- Labels
- Attachments
- Bookmarks
- Mail
- Advanced
- Activity

Explore Confluence

- Popular Labels
- Notation Guide

Your Account

Log In

or Sign Up  

Other Features

Add Content


System Monitoring Software
SourceForge.net Logo