Introduction
This document describes how to rebuild a default host group with the correct host-group ID after it has been deleted.
Prerequisites
Requirements
There are no specific requirements for this document.
Components Used
This document is not restricted to specific software and hardware versions.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command.
Problem:
Default Host Groups have 2 digit IDs (for example, 28, 30) but user created host groups have 5 digit IDs (for example, 50081). If a user deletes a default host group and then recreates it as a custom host group it has this larger ID # and some things can not work correctly because of this. For example, Host Classifier can not find the newly created host group because of the incorrect ID #. To fix this the ID # needs to match the default value.
Solution:
Import the Host Group
Import a host group with the correct ID can fix the problem. You can import this from a backup or export the host group from another system. If necessary, create a new domain on the system, export the desired host groups, and then delete the newly created domain.
Alternative Solution:
Edit the host-group id field to the correct value in the host_groups.xml (/lancope/var/smc/config/domain_<DOMAIN_ID>/host-groups.xml) can also correct the issue.
Note: There could be the need to reinstall the Host Classifier App after you fix the host group ID value for it to correctly pick up the fixed host groups.