Why are there now 2 <LDAP> sections in hub.cfg

Document ID : KB000076387
Last Modified Date : 04/04/2018
Show Technical Document Details
Issue:
There are duplicate and erroneous sections in the hub.cfg.  Specifically, there is an extra <hub> tag nested under the existing <hub> tag.
There is also an entire <ldap> section nested in the <hub> section that should not be there.
There are many hubs and it would be too difficult to edit the hub.cfg file on dozens of servers.
In the hub.cfg files, there are duplicate and erroneous
tags in the hub section.
<hub> 
    <hub>  
     <ldap>  
       <server>  
       </server> 
       <templates>  
       </templates> 
     </ldap> 
 </hub> 
</hub> 

Can we remove these erroneous sections with a script or a package?

 
Environment:
UIM 8.5.1 
Hub 7.93
Cause:
The cause is unknown.  This has only surfaced at one customer site.
Resolution:
***** Before proceeding, backup the /opt/nimsoft/hub/hub.cfg file*****

1- Open UIM IM console

2- Drag a hub probe from a hub robot to the archive > "Infrastructure" folder.

3- When prompted, select "Configuration" only.
     Also, click the "Rename" button. Enter a name other than "hub".
     For example: "hubPackage".

4- Open the new "hubPackage" package in the archive.

5- In the "Files" tab, right click the "hub.cfx".
     Remove all of the contents. Replace with the following:
<hub> 
<hub> clear 
<ldap> clear 
<server> clear 
</server> 
<templates> clear 
</templates> 
</ldap> 
</hub> 
</hub>
     Click "OK" on the Package editor popup window.

6- Drag the package to the impacted hub(s). The hub will restart and apply the configuration.
    Expected result: erroneous duplicate nested ,,, are removed.

Validate by opening the hub.cfg in a text editor.