sysconf config import

Import a configuration backup file from the internal HSM or from an external backup HSM and saves it as a file. This command overwrites the existing configuration file with the same name.

This command does not restore the configuration from the imported file. You can use the sysconf config restore command after running this command to restore the configurations.

-serialnumber is required if -devicetype is "token" and optional if -devicetype is "hsm".

SO login is required before running this command if -devicetype is "hsm" or "token".

User Privileges

Users with the following privileges can perform this command:

>Admin

Syntax

sysconf config import -file <filename> [-devicetype <devicetype>] [-serialnumber <serialnum>] [-force]

Argument(s) Shortcut Description
-devicetype <devicetype> -d Device Type (hsm, token)
-file <filename> -fi Name of configuration backup file to be imported.
-force -fo Force the action without prompting.
-serialnumber <serialnum> -s Token Serial Number

Example (pre-7.8.5 filesize limit was 64 KB)

lunash:>sysconf config import -file local_host_Config_20170301_1212.tar.gz -devicetype hsm -serialnumber 66331


WARNING !!  This command imports the configuration backup file: local_host_Config_20170301_1212.tar.gz from the hsm.
It will overwrite the existing configuration file with the same name.
If you are sure that you wish to proceed, then type 'proceed', otherwise type 'quit'.

> proceed
Proceeding...


Command Result : 0 (Success)

 

Example (7.8.5 onward)

This import example is for the new case, where your exported configuration was larger than 64 KB and needed to be split into smaller chunk files.
Notice that the filename provided for this import is as it would be for a single file, without the added chunk-numbering. lunash takes care of bringing the chunks back together.

[local_host] lunash:>sysconf config import -file local_host_Config_ntls_20240510_0145.tar.gz -d token -s 7001966


WARNING !!  This command imports the configuration backup file: local_host_Config_ntls_20240510_0145.tar.gz from the token.
It will overwrite the existing configuration file with the same name.
If you are sure that you wish to proceed, then type 'proceed', otherwise type 'quit'.

> proceed
Proceeding...

Command Result : 0 (Success)
[local_host] lunash:>
[local_host] lunash:>sysconf config list

Configuration backup files in file system:

Size (in bytes) |  File Name                                                |  Description
-----------------------------------------------------------------------------------------------------
136661          |  local_host_Config_ntls_20240510_0145.tar.gz              |  taking backup of NTLS configuration with ipcheck disabled

Command Result : 0 (Success)
[local_host] lunash:>