- Table of Contents
-
- H3C Low-End and Mid-Range Ethernet Switches Configuration Examples(V1.01)
- 00-1Cover
- 01-Login Configuration Guide
- 02-VLAN Configuration Guide
- 03-GVRP Configuration Guide
- 04-Voice VLAN Configuration Guide
- 05-IP Addressing and Performance Configuration Guide
- 06-QinQ Configuration Guide
- 07-BPDU Tunnel Configuration Guide
- 08-VLAN Mapping Configuration Guide
- 09-MAC Address Table Management Configuration Guide
- 10-Link Aggregation Configuration Guide
- 11-IP Source Guard Configuration Guide
- 12-DLDP Configuration Guide
- 13-MSTP Configuration Guide
- 14-IPv4 Routing Configuration Guide
- 15-IPv6 Configuration Guide
- 16-IPv6 Routing Configuration Guide
- 17-IPv4 Multicast Configuration Guide
- 18-IPv6 Multicast Configuration Examples
- 19-802.1x Configuration Guide
- 20-AAA Configuration Guide
- 21-MAC Authentication Configuration Guide
- 22-Portal Configuration Guide
- 23-ARP Configuration Guide
- 24-DHCP Configuration Guide
- 25-ACL Configuration Guide
- 26-QoS Configuration Guide
- 27-Port Mirroring Configuration Guide
- 28-Cluster Management Configuration Guide
- 29-SNMP-RMON Configuration Guide
- 30-NTP Configuration Guide
- 31-FTP-TFTP Configuration Guide
- 32-UDP Helper Configuration Guide
- 33-Information Center Configuration Guide
- 34-DNS Configuration Guide
- 35-File System Management Configuration Guide
- 36-Remote Upgrade Configuration Guide
- 37-NQA Configuration Guide
- 38-VRRP Configuration Guide
- 39-SSH Configuration Guide
- 40-Port Security Configuration Guide
- 41-Port Isolation Configuration Guide
- 42-LLDP Configuration Guide
- 43-MCE Configuration Guide
- 44-PoE Configuration Guide
- 45-OAM Configuration Guide
- 46-Connectivity Fault Detection Configuration Guide
- 47-RRPP Configuration Guide
- 48-sFlow Configuration Guide
- 49-SSL-HTTPS Configuration Guide
- 50-PKI Configuration Guide
- 51-Track Configuration Guide
- 52-EPON-OLT Configuration Guide
- 53-Smart Link Configuration Guide
- 54-MPLS Configuration Guide
- Related Documents
-
Title | Size | Download |
---|---|---|
35-File System Management Configuration Guide | 52.12 KB |
Table of Contents
1 File System Management Configuration Guide
Configuring File System Management
Networking and Configuration Requirements
Configuring Configuration File Management
Networking and Configuration Requirements
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
Applicable Product Matrix
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