Bug 740574 - Using -g option in starting agent to purgeplugins fails
Summary: Using -g option in starting agent to purgeplugins fails
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Agent
Version: 3.0.0 Beta1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-22 14:17 UTC by Nabeel Saad
Modified: 2022-03-31 04:28 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Nabeel Saad 2011-09-22 14:17:59 UTC
Description of problem:
Attempting to start the JON Agent with the -g option throws an invalid option -- g
error (<- which in itself is probably an issue given that it should be '-g').  However, using it's alternate "--purgeplugins" works.  This is probably just a bad condition on a case statement or if statement somewhere in the org.rhq.enterprise.agent.AgentMain code.

Version-Release number of selected component (if applicable):
3.0.0-BETA1

How reproducible:
Everytime

Steps to Reproduce:
1.Unpack a jon agent
2.Setup and start a jon agent once, then shutdown
3.Restart the jon agent with ./rhq-agent.sh -g
  
Actual results:
Shows the help display with an error at the top that "--g" is an invalid option

Expected results:
To start the agent and purge the plugins

Additional info:


Note You need to log in before you can comment on or make changes to this bug.