Profiles are in use in the DX UIM Infrastructure Manager (IM). When attempting to delete one of these profiles in the Manage Profiles menu, it appears to delete the profile, but when opening the menu again or listing the profiles, it remains.
Profiles may be created with a trailing space. These spaces are not visible in the Manage Profiles menu:
Profiles with this space are not able to be deleted by IM. When you 'View Profiles' you can also see that the profile has not been deleted.
You can see the space in the filename used to store the profile:
The IM .pcf files are stored in the /hub/profiles folder on the system where you are running the IM.
The security.cfg file also contains this space in the profile name.
It is possible to edit the security.cfg and profile filename to remove the space. This will allow you to delete the profile. Editing the security.cfg file requires the secedit tool.
WARNING: Editing the security.cfg file manually can create problems logging into the UIM. DO NOT MANUALLY EDIT THIS FILE.
You can use the following steps to make the required changes:
An additional unexpected result may occur as well if you find that you can successfully delete the profile but it returns to the primary.
If that occurs after making the changes above, follow only the first part of the KB Article referenced below.
Login to the Primary hub machine and open the IM.
1. Select the hub probe and press Ctrl-P to open the Probe utility
2. Select the hubsec_setup_put callback
3. Set the key to:
secure_callbacks_from_primary_hub_only
4. Set the value to:
yes
5. Press the green arrow to execute the callback
When this key is set to yes: the primary hub propagates security changes to ALL hubs in the domain.
Then restart the hub.
Then delete the profile you're trying to delete.
Check back in a few days if the profile remains deleted.
security.cfg file keeps getting corrupted - need to find a way to notify if this file gets changed
You can find the secedit tool attached to the following article:
Use the secedit utility in DX UIM to recover or modify the hub security.cfg