...
Code Block | ||||
---|---|---|---|---|
| ||||
%hash = ( 'nmis' => { # Different rules can be defined for when an NMIS node is created and when # it is updated. This lets you avoid overwriting values the you edit in NMIS. 'create' => { # name will resolve to the 'name' field in the device if it exists, or # an empty string otherwise. 'name' => ['$DEVICE.name'], # roleType and group try to use a value from the device if it exists, but # will fall back to a constant if it does not. 'roleType' => ['$DEVICE.nmis_role', 'core'], 'group' => ['$DEVICE.nmis_group', 'Open-AudIT'], # host checks multiple fields from the device, choosing the first one # that has a value (or the empty string if no values are found). 'host' => ['$DEVICE.ip', '$DEVICE.hostname','$DEVICE.dns_hostname', '$DEVICE.fqdn'], # active, ping, and model use default values when any new node is created. 'active' => ['true'], 'ping' => ['true'], 'model' => ['automatic'], }, # Only the node fields defined here will be considered for an update. 'update' => { 'roleType' => ['$DEVICE.nmis_role', 'core'], 'group' => ['$DEVICE.nmis_group', 'Open-AudIT'], } } ); |
Usage
To run the integration, simply invoke the executable and pass it a configuration file as described in the previous section. You can also invoke the tool by itself, which will look for a configuration file at conf/nmisIntegration.nmis by default.
...