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 vote
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-22 14:17 UTC by Nabeel Saad
Modified: 2015-11-02 00:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


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.