6.4.2 Using nnmincidentcfgload.ovpl to load the incident configuration
In NNMi, you can use the nnmincidentcfgload.ovpl script to load the incident configuration from a formatted configuration file into the NNMi database.
For the required format, see the following directory:
-
Windows: %NnmInstallDir%\examples\nnm\incidentcfg
-
UNIX: /opt/OV/examples/nnm/incidentcfg
To validate the incident configuration file before loading it into the NNMi database, use the following sample syntax:
nnmincidentcfgload.ovpl -validate file-name -u NNMi-admin-user-name -p NNMi-admin-password
To load the incident configuration, use the following sample syntax:
nnmincidentcfgload.ovpl -load file-name -u NNMi-admin-user-name -p NNMi-admin-password
Note the following:
-
NNMi updates all settings that have a matching name or similar key identifier.
Use the nnmincidentcfgdump.ovpl script to create a non-XML file from the existing incident configuration file. If necessary, you can then edit this file before you load it into the NNMi database.
NNMi also overwrites the code values (such as incident families) associated with these settings.
-
NNMi adds all incident settings that have key identifiers that are not in the NNMi database.
-
NNMi does not change any existing incident setting that does not have a matching key identifier in the export file.
-
NNMi resolves any unique object ID (UUID) if it is not provided in the configuration file.
-
If NNMi cannot resolve a UUID, that UUID is created.
For details, see the reference page for the nnmincidentcfgload.ovpl command.