Administer > Maintain NNMi > Export and Import Configuration Settings > Replicate Configuration Settings on Another NNMi Management Server

Replicate Configuration Settings on Another NNMi Management Server

You can export configuration settings and import them onto another NNMi management server to save time.

Note You can change the names of the exported files before importing. The import still works the same. 

Caution Do not edit the exported file before importing.

To move configuration settings to another NNMi management server:

  1. Import behavior is determined when you generate the Export files. Make sure you understand your Import behavior choices before you begin. See Export/Import Behavior and Dependencies (consider printing that topic for reference).

    Caution The locale setting on the NNMi management server at the time of Export must match the locale setting on the NNMi management server at the time of Import. Otherwise, you risk losing data. Also, make sure that both NNMi management servers have the same NNMi version/patch number.

  2. A user name and password are required with the export command:

    If you do not want to enter an NNMi User Name attribute value and an NNMi Password attribute value at the command line, you can use the nnmsetcmduserpw.ovpl command to specify the valid user name and password (instead of -u and -p). The credentials set using the nnmsetcmduserpw.ovpl command are valid for command execution by the same user.

    -u <NNMiadminUserName> -p <NNMiadminPassword>

  3. At the command line of the NNMi management server export all configuration settings. For example:

    nnmconfigexport.ovpl –c all -f <directory>

    Note Note the following:

    • You can use -x <file_prefix> to provide a unique prefix to the set of exported files. For example, use today's date or a clue about the reason you needed the files:

      nnmconfigexport.ovpl –c all -f <directory> -x <file_prefix>

    • You can change the names of the exported files before importing. The import still works the same.
  4. Verify that all required xml files are in the specified directory.

To import the configuration settings onto the other NNMi management server:

  1. Import behavior is determined when you generate the Export files. Make sure you understand your Import behavior choices before you begin. See Export/Import Behavior and Dependencies (consider printing that topic for reference).

    Caution The locale setting on the NNMi management server at the time of Export must match the locale setting on the NNMi management server at the time of Import. Otherwise, you risk losing data. Also, make sure that both NNMi management servers have the same NNMi version/patch number.

  2. A user name and password are required with the import command:

    If you do not want to enter an NNMi User Name attribute value and an NNMi Password attribute value at the command line, you can use the nnmsetcmduserpw.ovpl command to specify the valid user name and password (instead of -u and -p). The credentials set using the nnmsetcmduserpw.ovpl command are valid for command execution by the same user.

    -u <NNMiadminUserName> -p <NNMiadminPassword>

  3. Verify that all required xml files are in the specified directory.
  4. Use the nnmconfigimport.ovpl command with the -sync option to replace the configuration settings on the current server with those that were exported. For example:

    nnmconfigimport.ovpl -sync -f <filename>

    nnmconfigimport.ovpl -sync -f <directory>

    Tip You can use -x <file_prefix> to specify a unique prefix for a set of files:

    nnmconfigimport.ovpl -f <directory> -x <file_prefix>

    When you use the nnmconfigimport.ovpl -sync option, NNMi does the following:

    • NNMi replaces all object instances with matching key identifiers (see Troubleshooting Imports of Configuration Files for information about key identifiers).
    • NNMi adds all object instances with key identifiers that do not exist in the NNMi database
    • NNMi deletes all existing object instances with key identifiers that do not match any in the exported file.
  5. If you encounter problems, see Troubleshooting Imports of Configuration Files.

  6. After completing the import, open NNMi and verify your configuration settings.