Hostnames to Group Mapping
Introduction
Configure license-host-mapping
to map hostnames to a group.
Apply the configurations shown in the Open iT Core Server.
Configuring license-host-mapping
- Windows
- Unix
-
Open
license-host-mapping
in the Configuration directory, which is by default inC:\Program Files\OpeniT\Core\Configuration
.Notice that it contains instructions on how to edit the file.
-
Specify host names with the following syntax:
Mapping SyntaxMAP: <HostGroupName>
<Hostname1>
<Hostname2>Empty lines are allowed — any line beginning with
#
as the first non-whitespace character is considered a comment. Globbing is also supported, allowing you to use several globbing patterns; however, remember that they are slower than exact matches. To make your mapping files more effective and efficient, refer to the Optimizing Rules to Speed Up Rename or Mapping page.In the mapping file, entries are case-insensitive, meaning that capitalization variations, such as 'Hostname' and 'hostname', will be recognized as identical. Also, note that leading and trailing spaces are removed from entries.
Each host can be a member of only one group. A host that appears in multiple mappings will always be mapped to its first occurrence in the file.
ExampleMAP: HostGroup1
Host1028
Host0232This example maps Host1028 and Host0232 to HostGroup1.
You can also include custom configurations in this mapping file, such as default mapping, setting date limits on specific mapping entries, or creating nested maps.
-
Save the changes.
-
Open
license-host-mapping
in the etc directory, which is by default in/var/opt/openit/etc
.Notice that it contains instructions on how to edit the file.
-
Specify host names with the following syntax:
Mapping SyntaxMAP: <HostGroupName>
<Hostname1>
<Hostname2>Empty lines are allowed — any line beginning with
#
as the first non-whitespace character is considered a comment. Globbing is also supported, allowing you to use several globbing patterns; however, remember that they are slower than exact matches. To make your mapping files more effective and efficient, refer to the Optimizing Rules to Speed Up Rename or Mapping page.In the mapping file, entries are case-insensitive, meaning that capitalization variations, such as 'Hostname' and 'hostname', will be recognized as identical. Also, note that leading and trailing spaces are removed from entries.
Each host can be a member of only one group. A host that appears in multiple mappings will always be mapped to its first occurrence in the file.
ExampleMAP: HostGroup1
Host1028
Host0232This example maps Host1028 and Host0232 to HostGroup1.
You can also include custom configurations in this mapping file, such as default mapping, setting date limits on specific mapping entries, or creating nested maps.
-
Save the changes.
This mapping may affect the following data types:
- (47) Host License Use v2.0
- (49) Host User License Use
- (50) Host User License Use Logfile
- (62) License Optimizer Use
- (72) Hostgroup License Use v2.0
- (75) License Logfile Events
- (83) Host License Use Logfile
- (104) License Logfile Events v2.0
- (107) Denied License Use Licenseevents
- (129) FlexNet Log Events
Next Steps?
Proceed with data regeneration after configuring all the necessary mapping files to apply the changes in the historical reports: