Command Line Interface Reference Guide > The Configuration Menu > /cfg/gtcfg Restoring the Active Switch Configuration
/cfg/gtcfg
Restoring the Active Switch Configuration
When this command is used, the active configuration is replaced with the commands found in the specified configuration file. The file can contain a full configuration or a partial configuration. The configuration loaded is not activated until the apply command is used. If the apply command is found in the configuration script file loaded using this command, the apply action is performed automatically.
Note: Before importing the configuration to Alteon, the required license must be installed (relevant for static and GEL licenses). If the required license is not applied, the import will fail.
Note: Backing up and restoring the configuration file may result in the loss of the CRL or CDP files. Therefore, in order to save the CRL file, before backing up the configuration, you should first upload the CRL file to the backup device. Then, after restoring (gtcfg) you can upload the saved CRL file to the primary device and operate a synchronization.
The following is the syntax for gtcfg, where hostname is the TFTP, FTP or SCP server IP address or hostname, and filename is the name of the target script configuration file:
 
Configuration# gtcfg <hostname> <filename> <-tftp | username password> [-mgmt | -data] <scp>
select backup option [adc/cfe/cfexml]:
Enter CFE ID: [1-100, all]:
Enter hostname (and IP version) or IP address of FTP/TFTP/SCP server:
Enter name of file on FTP/TFTP/SCP server:
Enter username for FTP/SCP server or hit return for TFTP server:
Include private keys? [y/n]:
 
Active Switch Configuration Restoration Menu Options (/cfg/gtcfg) 
Command Syntax and Usage
all
 
Enables the Global Administrator to perform a complete system recovery and restores all current settings.
Note: If the retrieved configuration file includes the configurations for both the ADC-VX environment and the vADCs (meaning that the ptcfg/all command was previously entered), then all files are recovered. If the configuration file includes the configurations for ADC-VX only (meaning that the ptcfg/global command was previously entered), then only the ADC-VX configuration is recovered and a default configuration is set for all vADCs.
In ADC-VX mode, this option only appears in the Global Administrator environment.
When prompted, set the following parameters:
Enter hostname or IP address of FTP/TFTP/SCP server:
Enter name of file on FTP/TFTP/SCP server:
Enter username for FTP/SCP server or hit return for TFTP server:
Note: The vADC Web certificates are not automatically applied with this command. They must be applied manually.
vadc
 
Enables the Global Administrator to import vADC configuration files to an existing vADC and define the type of file to recover.
*all — Creates a new vADC from the settings of the recovery file or replace an existing one. In ADC-VX mode, this option Only appears in the Global Administrator environment.
When prompted, set the following parameters:
Enter vADC number: [1-n]:
Enter hostname or IP address of FTP/TFTP/SCP server:
Enter name of file on FTP/TFTP/SCP server:
Enter username for FTP/SCP server or hit return for TFTP server:
*vadmin — Creates a vADC Administrator level backup file, containing the configuration information available to the vADC administrator. This option requires a vADC to exist in the system.
When prompted, set the following parameters:
Enter vADC number: [1-n]:
Enter hostname or IP address of FTP/TFTP/SCP server:
Enter name of file on FTP/TFTP/SCP server:
Enter username for FTP/SCP server or hit return for TFTP server:
Note: The vADC web certificates are not automatically applied with this command; they must be applied manually.
padc
 
Enables the Global Administrator to create or replace a vADC from the configuration files of a physical, standalone ADC.
The standalone configuration will be “split” to create a configuration for the ADC-VX (for the L2 and vADC management) and a configuration for the vADC (you will be asked to enter the vADC number).
In ADC-VX mode, this option only appears in the Global Administrator environment.
Note: To avoid a conflict in IP addresses, first change the IP address in the cfg file with a new IP address for the new vADC. When you run the /cfg/gtcfg command with the padc argument, enter the new vADC IP address.
When prompted, set the following parameters:
Enter hostname or IP address of FTP/TFTP/SCP server:
Enter name of file on FTP/TFTP/SCP server:
Enter username for FTP/SCP server or hit return for TFTP server:
Enter vADC number: [1-n]:
Note: Use a space to separate multiple vADC number entries.