This content has been marked as final.
Show 2 replies
-
1. Re: Bad name won't go away
mazz Dec 10, 2008 12:10 PM (in response to dreedatcmrg)Today, you can't do this from the UI or agent (as you've seen, the server forbids one agent to steal another agent's name or to change names).
Read these JIRAs:
http://jira.rhq-project.org/browse/RHQ-914
http://jira.rhq-project.org/browse/RHQ-1245
You can shutdown your agent, uninventory your platform from inventory, then purge your agent using the instructions in RHQ-914 and then restart the agent with --cleanconfig and set the name to the one you really want.
If you are brave, shutdown your server and agent, execute this SQL (using a DB client connected to your database):update rhq_agent set name='server5' where name='SERVER5.OURDOMAIN.CHIEFDOMAIN.COM'
the restart your agent with --cleanconfig and set the name to the one you want. (this way, you can keep the inventory you have for that agent). I don't know the full implications of doing this - I *think* it might be OK to set the name directly like this, but I can't guarantee it.
You aren't the first person to ask this question - hopefully we'll be able to get those JIRAs addressed in the next release.
BTW: this internal agent name should really be of no concern to the users. You can always change the RHQ Agent resource name that you see in the UI (its default is the internal agent name, but you can change this in the Inventory tab). -
2. Re: Bad name won't go away
dreedatcmrg Dec 10, 2008 1:31 PM (in response to dreedatcmrg)"mazz" wrote:
BTW: this internal agent name should really be of no concern to the users. You can always change the RHQ Agent resource name that you see in the UI (its default is the internal agent name, but you can change this in the Inventory tab).
That's really all I wanted to do -- to avoid an inconsistency in the UI display. It worked fine. Thanks for the tip.
Dave