Exports the current configuration to an output file.
DWORD oamConfigExport ( CTAHD ctahd, const char *szFile )
|
Argument |
Description |
|
ctahd |
[in] Context handle. |
|
szFile |
[in] Pointer to a file name for the configuration data output file. |
|
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 for writing. |
|
OAMERR_FILE_READ_ERROR |
Error reading from database. |
|
OAMERR_FILE_WRITE_ERROR |
Error writing to file. |
|
OAMERR_NOT_ENOUGH_MEMORY |
Memory allocation error. |
|
OAMERR_SERVER_NOT_RUNNING |
Supervisor is shut down. |
oamConfigExport exports the entire contents of the NMS OAM database to a file. All managed objects currently open for writing must be closed before using this function. Otherwise, any pending changes will not be included in the exported data.
The resulting output file is for use only with oamConfigImport and must not be edited in any way.
For more information, see Importing and exporting configuration data.