Page 1 of 2

How to cleanup unused (previuosly renamed) services?

Posted: Wed Mar 23, 2016 1:03 pm
by dlukinski
Hello XI support

We have many old services (directly renamed)
How to cleanup them properly?

Thank you

Re: How to cleanup unused (previuosly renamed) services?

Posted: Wed Mar 23, 2016 1:14 pm
by hsmith
Can you please give a little more detail on what's going on here? Do you have duplicate services? If you want to clean up services, you can just delete the ones you don't want.

Re: How to cleanup unused (previuosly renamed) services?

Posted: Wed Mar 23, 2016 4:31 pm
by vAJ
If you've got a bunch of old/unused cfg files in your /hosts /services paths, you can use the CCM tools to purge these.

1. Backup your instance (CYA)
2. Go to CCM-->Tools-->Write Config Files
3. Click 'Delete' under "Delete All Host / Service Configuration Files"
4. Once that completes, go back and click 'Write', 'Verify', 'Restart' on the same screen to refresh all cfg files and restart the engine.
WriteConfigFiles.JPG
If you're talking about services that listed in the CCM, then you're stuck manually deleting them, I believe.

Re: How to cleanup unused (previuosly renamed) services?

Posted: Thu Mar 24, 2016 10:52 am
by rkennedy
Thanks @vAJ!

@dlukinski - let us know when you have a chance to look at the previous responses.

Re: How to cleanup unused (previuosly renamed) services?

Posted: Thu Mar 24, 2016 10:53 am
by tmcdonald
That'll definitely work for the config files, but for the CCM we'll need a bit more detail as @hsmith mentioned. You might try looking at the Bulk Modifications tool under the CCM -> Tools menu, but you'll either need the Enterprise Edition license, or to activate the free 60-day trial in order to use it.

Re: How to cleanup unused (previuosly renamed) services?

Posted: Fri Mar 25, 2016 7:53 pm
by dlukinski
This is not what I meant, maybe I have mixed Core VS XI
- when service was renamed w/o using renaming tool in XI, will the old version simply disappear and is there any cleanups required VS database?

Thank you

Re: How to cleanup unused (previuosly renamed) services?

Posted: Mon Mar 28, 2016 9:12 am
by lmiltchev
- when service was renamed w/o using renaming tool in XI, will the old version simply disappear and is there any cleanups required VS database?
It depends how you renamed it. If you renamed it in the CCM (CCM->Services->Edit->Change "Description"->Save->Apply Configuration), the "old version" would disappear as your service would be renamed. If you renamed it in the CLI, next time you apply configuration, all of the changes would be wiped out as the text configs will be overwritten with whatever is in the database.

How did you rename your service? Can you describe in more details?

Re: How to cleanup unused (previuosly renamed) services?

Posted: Mon Mar 28, 2016 1:19 pm
by dlukinski
lmiltchev wrote:
- when service was renamed w/o using renaming tool in XI, will the old version simply disappear and is there any cleanups required VS database?
It depends how you renamed it. If you renamed it in the CCM (CCM->Services->Edit->Change "Description"->Save->Apply Configuration), the "old version" would disappear as your service would be renamed. If you renamed it in the CLI, next time you apply configuration, all of the changes would be wiped out as the text configs will be overwritten with whatever is in the database.

How did you rename your service? Can you describe in more details?
Renamed directly in CLI & CCM (XI)
- so old versions would be wiped - no need to worry? (say where service name or description was different and no renaming tool used)

Re: How to cleanup unused (previuosly renamed) services?

Posted: Mon Mar 28, 2016 1:58 pm
by hsmith
As long as you do it in the UI, it should be renamed. If you do it via the command line, the changes will be lost next time you apply a configuration.

Re: How to cleanup unused (previuosly renamed) services?

Posted: Tue Mar 29, 2016 7:29 am
by dlukinski
hsmith wrote:As long as you do it in the UI, it should be renamed. If you do it via the command line, the changes will be lost next time you apply a configuration.
alright, when renamed, history is typically lost.
Now, does it remain in the DB, or also lost? (remains and has to be cleaned or removed by the system)