FAQs

SecureStack Configuration File manipulation

  • 1.  SecureStack Configuration File manipulation

    Posted 11-13-2013 19:41
    Article ID: 5623

    Products
    SecureStack C3
    SecureStack C2
    SecureStack B3
    SecureStack B2
    SecureStack A2

    Goals
    Save router configuration
    Save the configuration
    Upload configuration
    Download configuration

    Solution
    When in switching mode (default) or router mode (optional for the C3 and C2), any entered configurations are implemented immediately, becoming part of the active configuration which is saved to NVRAM and is thus persistent upon any system reboot. No additional save operation is necessary.

    However, it is advisable to save configurations against the possibility of future loss due to hardware failure, human error, etc. What follows are the commands necessary to perform these manipulations.

    Here is an example view of the SecureStack's directory structure before any configurations are copied to it:
    C2(rw)->dir
    Images:
    ==================================================================
    Filename: c2-series_03.01.45 (Active) (Boot)
    Version: 03.01.45
    Size: 5818368 (bytes)
    Date: Wed Jun 29 11:09:22 2005
    CheckSum: f44f9bf9a41ae24d10862024ec1a21db
    Compatibility: C2G124-24, C2G124-48, C2H124-48, C2G124-48P, C2H124-48P
    C2K122-24, C2G170-24, C2G134-24P

    Files: Size
    ================================ ========
    configs:
    logs:
    current.log 256017
    C2(rw)->[/code]
    A configuration may be saved for future use, by copying it from its active NVRAM-based state to a file in the local 'configs' directory (5879):
    C2(rw)->show config outfile configs/mysave.cfg
    C2(rw)->dir
    Images:
    ==================================================================

    Filename: c2-series_03.01.45 (Active) (Boot)
    Version: 03.01.45
    Size: 5818368 (bytes)
    Date: Wed Jun 29 11:09:22 2005
    CheckSum: f44f9bf9a41ae24d10862024ec1a21db
    Compatibility: C2G124-24, C2G124-48, C2H124-48, C2G124-48P, C2H124-48P
    C2K122-24, C2G170-24, C2G134-24P

    Files: Size
    ================================ ========
    configs:
    mysave.cfg 2149
    logs:
    current.log 256017
    C2(rw)->[/code]
    From the SecureStack's local directory, a configuration file (mysave.cfg, in this case) may be uploaded for safekeeping to a PC/machine running a TFTP Server application. First, start and minimize a TFTP Server application. If you don't have one, you can download one free of charge. Then, execute a 'copy' command specifying the source and destination file paths, as shown in the following example:
    C2(rw)->copy configs/mysave.cfg tftp://10.10.143.123/mysave.cfg
    File transfer operation completed successfully.
    C2(rw)->dir
    Images:
    ==================================================================

    Filename: c2-series_03.01.45 (Active) (Boot)
    Version: 03.01.45
    Size: 5818368 (bytes)
    Date: Wed Jun 29 11:09:22 2005
    CheckSum: f44f9bf9a41ae24d10862024ec1a21db
    Compatibility: C2G124-24, C2G124-48, C2H124-48, C2G124-48P, C2H124-48P
    C2K122-24, C2G170-24, C2G134-24P

    Files: Size
    ================================ ========
    configs:
    mysave.cfg 2149
    logs:
    current.log 256017
    C2(rw)->[/code]
    From a network PC/machine running a TFTP Server application, a configuration file (mysave.cfg, in this case) may be downloaded to the SecureStack's local directory. Note that this file may have been generated by this or another SecureStack, manually created, manually edited, and/or copied. First, start and minimize a TFTP Server application. If you don't have one, you can download one free of charge. Then, execute a 'copy' command specifying the source and destination file paths, as shown in the following example:
    C2(rw)->copy tftp://10.10.143.123/mysave.cfg configs/mysave.cfg
    File transfer successful...
    C2(rw)->dir
    Images:
    ==================================================================

    Filename: c2-series_03.01.45 (Active) (Boot)
    Version: 03.01.45
    Size: 5818368 (bytes)
    Date: Wed Jun 29 11:09:22 2005
    CheckSum: f44f9bf9a41ae24d10862024ec1a21db
    Compatibility: C2G124-24, C2G124-48, C2H124-48, C2G124-48P, C2H124-48P
    C2K122-24, C2G170-24, C2G134-24P

    Files: Size
    ================================ ========
    configs:
    mysave.cfg 2149
    logs:
    current.log 256017
    C2(rw)->[/code]
    The SecureStack may be booted onto a configuration previously saved into its local directory:
    C2(rw)->configure configs/mysave.cfg
    This command will reset the system and clear current configuration.
    Are you sure you want to continue (y/n) [n]?y
    Copy OK: 2149 bytes copied
    (System will now reset with new configuration)[/code]