This feature is also good for an initial agent install:
Get the agent code from the Jopr server:
$ wget http://pickeldi:7080/agentupdate/download -O agent.jar
Option -O sets the name of the local file which otherwise would be 'download'. Next you need to run the downloaded jar file to extract the agent from it
$ java -jar agent.jar --install
Wed Nov 26 15:33:14 CET 2008
===== RHQ AGENT INSTALL =====
Installing Agent To: .
Build Number: 2125
Jar File: /home/hrupp/agent.jar
[install] [unjar] Expanding: /home/hrupp/agent.jar into /home/hrupp
[install] [unzip] Expanding: /home/hrupp/rhq-enterprise-agent-1.2.0-SNAPSHOT.zip into /home/hrupp
[install] [delete] Deleting: /home/hrupp/rhq-enterprise-agent-1.2.0-SNAPSHOT.zip
[install] [echo] Agent version 1.2.0-SNAPSHOT (build number=2125) has been installed to .
$ ls rhq-agent
bin conf lib plugins
java -jarwithout any other option will show some online help about the available options.
On Unix you still need to set the permissions
$ chmod +x rhq-agent/bin/rhq-agent.sh
Now that this is done, you can start the agent as usual:
$ cd rhq-agent/
Try this feature and give us feedback.