# oamConfigImport

Imports the current configuration from an input file.

#### Prototype

DWORD oamConfigImport ( CTAHD ctahd, const char *szFile )

Argument | Description
ctahd | [in] Context handle.
szFile | [in] Pointer to a file name for the configuration data input file.

#### Return values

Return value | Description
SUCCESS |
CTAERR_BAD_ARGUMENT | szFile is NULL or 0.
CTAERR_SVR_COMM | Natural Access Server is not running.
OAMERR_ACCESS_DENIED | Managed objects are open.
OAMERR_FILE_READ_ERROR | Error reading from file.
OAMERR_FILE_WRITE_ERROR | Error writing to database.
OAMERR_NOT_ENOUGH_MEMORY | Memory allocation error.
OAMERR_SERVER_NOT_RUNNING | Supervisor is shut down.

#### Details

oamConfigImport imports the entire configuration from a specified input file created by oamConfigExport. The new configuration replaces the contents of the NMS OAM database.

Note: Close all managed objects before invoking this function.

For more information, refer to Importing and exporting configuration data.