H3C Low-End and Mid-Range Ethernet Switches Configuration Examples(V1.01)

HomeSupportSwitchesH3C S5500 Switch SeriesConfigure & DeployConfiguration ExamplesH3C Low-End and Mid-Range Ethernet Switches Configuration Examples(V1.01)
Table of Contents
Related Documents
35-File System Management Configuration Guide
Title Size Download
35-File System Management Configuration Guide 52.12 KB

Configuring File System Management

Network Diagram

The section introduces you the operations on file systems of the H3C Series Ethernet Switches, like copy/delete a file, create/delete a directory, etc. So no network requirement is involved.

Networking and Configuration Requirements

In the following example, you will see how to back up the current configuration file to another directory, and restore the file when the system fails.

Applicable Product Matrix

Product series

Software version

Hardware version

S3610 Series Ethernet Switches

Release 5301 Release 5303

All versions

S5510 Series Ethernet Switches

Release 5301 Release 5303

All versions

S5500-SI Series Ethernet Switches

Release 1207

All versions except S5500-20TP-SI

Release 1301

S5500-20TP-SI

S5500-EI Series Ethernet Switches

Release 2102

All versions

S7500E Series Ethernet Switches

Release 6100 Release 6300

All versions

 

Configuration Procedure

Backing up the current configuration files to another directory

# Display the files and the subdirectories under the current directory.

<Sysname> dir

Directory of flash:/

 

   0   drw-         -   Feb 16 2006 11:45:36   logfile

   1   -rw-      1691  Feb 16 2006 11:46:19   config.cfg

   2   drw-         -   Feb 16 2006 15:20:27   test

   3   -rw-    184108  Feb 16 2006 15:30:20   aaa.bin

 

31496 KB total (10588 KB free)

# Create a directory cfg_bak to back up the configuration file.

<Sysname> mkdir cfg_bak

.

%Created dir flash:/cfg_bak.

# Copy file config.cfg under directory flash to directory cfg_bak.

<Sysname> copy config.cfg flash:/cfg_bak

Copy flash:/config.cfg to flash:/cfg_bak/config.cfg?[Y/N]:y

..

%Copy file flash:/config.cfg to flash:/cfg_bak/config.cfg...Done.

<Sysname>

# Enter directory cfg_bak, and display this directory.

<Sysname> cd cfg_bak

<Sysname> pwd

flash:/cfg_bak

# Display the files and the subdirectories under the current directory.

<Sysname> dir

Directory of flash:/cfg_bak/

   0     -rw-      1691  Apr 26 2007 18:32:23   config.cfg

31496 KB total (10588 KB free)

# Rename the file as cfg_20080210.cfg, which marks the backup time. Verify your configuration using the dir command.

<Sysname> rename config.cfg cfg_20080210.cfg

Rename flash:/cfg_bak/config.cfg to flash:/cfg_bak/cfg_20080210.cfg?[Y/N]:y

.

%Renamed file flash:/cfg_bak/config.cfg to flash:/cfg_bak/cfg_20080210.cfg.

<Sysname> dir

Directory of flash:/cfg_bak/

   0     -rw-      1691  Apr 26 2000 18:52:03   cfg_20080210.cfg

31496 KB total (10588 KB free)

Restoring the backup configuration file when the settings are wrong

# Return to the upper directory.

<Sysname> cd ..

# Display the current working directory.

<Sysname> pwd

flash:/

# Save the current configuration file as cfg_temp and to the directory cfg_bak.

<Sysname> copy config.cfg flash:/cfg_bak/cfg_temp.cfg

Copy flash:/config.cfg to flash:/cfg_bak/cfg_temp.cfg?[Y/N]:y

...

%Copy file flash:/config.cfg to flash:/cfg_bak/cfg_temp.cfg...Done.

# Permanently delete file config.cfg under directory flash.

<Sysname> delete /unreserved config.cfg

The contents cannot be restored!!! Delete flash:/config.cfg?[Y/N]:y

Deleting a file permanently will take a long time. Please wait...

..

%Delete file flash:/config.cfg...Done.

# Copy file cfg_20080210.cfg under directory cfg_bak to the root directory of Flash, and rename the file as config.cfg.

<Sysname> copy flash:/cfg_bak/cfg_20080210.cfg flash:/config.cfg

Copy flash:/cfg_bak/cfg_20080210.cfg to flash:/config.cfg?[Y/N]:y

...

%Copy file flash:/cfg_bak/cfg_20080210.cfg to flash:/config.cfg...Done.

# Verify your configuration using the dir command.

<Sysname> dir

Directory of flash:/

   0   drw-         -   Feb 16 2006 11:45:36   logfile

   1   -rw-      1691  Feb 16 2006 12:15:19   config.cfg

   2   drw-         -   Feb 16 2006 15:20:27   test

   3   -rw-    184108  Feb 16 2006 15:30:20   aaa.bin

31496 KB total (10588 KB free)

 

If you do not delete the error file config.cfg, you can use the copy command to restore the backup file, and enter y if prompted to choose whether to overwrite the existing file.

 

Complete Configuration

The above configurations are one-time commands and will not be saved to the configuration file, so no complete configuration is involved.

Configuration Guidelines

None

Configuring Configuration File Management

Network Diagram

The section introduces you the operations on configuration files of the H3C Series Ethernet Switches, like save the configuration, clear the configuration file, and back up files remotely, etc. So no network requirement is involved.

Networking and Configuration Requirements

In the following example, you will see how to save the configuration file, back up files remotely, and specify configuration file for the next boot.

Applicable Product Matrix

Product series

Software version

Hardware version

S3610 Series Ethernet Switches

Release 5301 Release 5303

All versions

S5510 Series Ethernet Switches

Release 5301 Release 5303

All versions

S5500-SI Series Ethernet Switches

Release 1207

All versions except S5500-20TP-SI

Release 1303

S5500-20TP-SI

S5500-EI Series Ethernet Switches

Release 2102

All versions

S7500E Series Ethernet Switches

Release 6100 Release 6300

All versions

 

Configuration Procedure

Saving the current configurations and back them up remotely

# Save the current configrations to a file with the default file name config.cfg, and overwrite the existing one.

<Sysname> save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/config.cfg]

(To leave the existing filename unchanged, press the enter key):

flash:/config.cfg exists, overwrite? [Y/N]:y

 

Validating file. Please wait...

Now saving current configuration to the device.

Saving configuration flash:/config.cfg. Please wait...

.........

Configuration is saved to flash successfully.

# Back up this configuration file to the TFTP server with IP address 192.168.0.4.

<Sysname> backup startup-configuration to 192.168.0.4

Backup next startup-configuration file to 192.168.0.4, please wait...

finished!

 

l          For the directories and authority settings of TFTP server, see the software introduction of the TFTP server.

l          Before backup, ensure that the server is reachable; otherwise the backup operation will fail.

l          After the backup operation, you are suggested to verify the result by viewing the backup configuration file under the directory of the TFTP server.

 

Keeping several configuration files on the device and specifying one as the startup configuration file for next reboot

# After your operations, save the configurations to a file and name it config_new.cfg. Specify the backup attribute of the file.

<Sysname> save backup

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/config.cfg]

(To leave the existing filename unchanged, press the enter key):config_new.cfg

 

Validating file. Please wait...

Now saving current configuration to the device.

Saving configuration flash:/config_new.cfg. Please wait...

.......

Configuration is saved to flash successfully.

# Specify the file config.cfg as the startup configuration file for the next reboot.

<Sysname> startup saved-configuration config.cfg main

 

The S7500E Series Ethernet Switches do not support main/backup startup file, that is, the main and backup parameters are not available when you specify the startup configuration file for the next reboot.

 

# You can restore the backup file on the TFTP server if the current configuration file config.cfg fails during the reboot.

<Sysname> restore startup-configuration from 192.168.0.4 config.cfg

Configuration file config.cfg already exists. Overwrite? [Y/N]:y

Restore next startup-configuration file from 192.168.0.4. Please wait........

finished!

Complete Configuration

The above configurations are one-time commands and will not be saved to the configuration file, so no complete configuration is involved.

Configuration Guidelines

N/A

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网