background image

Operation Manual – File System Management 
H3C S3610&S5510 Series Ethernet Switches 

Table of Contents

 

Table of Contents 

Chapter 1 File System Management Configuration ................................................................... 1-1

 

1.1 File System Management .................................................................................................. 1-1

 

1.1.1 File System Overview ............................................................................................. 1-1

 

1.1.2 Directory Operations ............................................................................................... 1-2

 

1.1.3 File Operations ........................................................................................................ 1-2

 

1.1.4 Storage Device Operations ..................................................................................... 1-4

 

1.1.5 File System Prompt Mode Setting........................................................................... 1-5

 

1.1.6 File System Operations Example............................................................................ 1-5

 

1.2 Configuration File Management......................................................................................... 1-6

 

1.2.1 Configuration File Overview .................................................................................... 1-6

 

1.2.2 Saving the Current Configuration............................................................................ 1-7

 

1.2.3 Erasing the Startup Configuration File .................................................................... 1-8

 

1.2.4 Specifying a Configuration File for Next Startup ..................................................... 1-9

 

1.2.5 Backing up/Restoring the Configuration File for Next Startup ................................ 1-9

 

1.3 Displaying and Maintaining Device Configuration ........................................................... 1-10

 

Chapter 2 FTP Configuration ....................................................................................................... 2-1

 

2.1 FTP Overview .................................................................................................................... 2-1

 

2.1.1 Introduction to FTP.................................................................................................. 2-1

 

2.1.2 Implementation of FTP ............................................................................................ 2-1

 

2.2 Configuring the FTP Client ................................................................................................ 2-2

 

2.2.1 Establishing an FTP Connection............................................................................. 2-2

 

2.2.2 Configuring the FTP Client...................................................................................... 2-4

 

2.2.3 FTP Client Configuration Example.......................................................................... 2-5

 

2.3 Configuring the FTP Server ............................................................................................... 2-7

 

2.3.1 Configuring FTP Server Operating Parameters...................................................... 2-7

 

2.3.2 Configuring Authentication and Authorization for Accessing FTP Server............... 2-8

 

2.3.3 FTP Server Configuration Example ........................................................................ 2-9

 

2.4 Displaying and Maintaining FTP ...................................................................................... 2-11

 

Chapter 3 TFTP Configuration ..................................................................................................... 3-1

 

3.1 TFTP Overview .................................................................................................................. 3-1

 

3.1.1 Introduction to TFTP ............................................................................................... 3-1

 

3.1.2 Implementation of TFTP.......................................................................................... 3-1

 

3.2 Configuring the TFTP Client .............................................................................................. 3-2

 

3.3 Displaying and Maintaining the TFTP Client ..................................................................... 3-4

 

3.4 TFTP Client Configuration Example .................................................................................. 3-4

 

 

Summary of Contents for S3610 Series

Page 1: ...Configuration File for Next Startup 1 9 1 3 Displaying and Maintaining Device Configuration 1 10 Chapter 2 FTP Configuration 2 1 2 1 FTP Overview 2 1 2 1 1 Introduction to FTP 2 1 2 1 2 Implementation of FTP 2 1 2 2 Configuring the FTP Client 2 2 2 2 1 Establishing an FTP Connection 2 2 2 2 2 Configuring the FTP Client 2 4 2 2 3 FTP Client Configuration Example 2 5 2 3 Configuring the FTP Server 2...

Page 2: ...th the path excluded to indicate a file in the current path The filename can be 1 to 91 characters in length 1 1 File System Management This section covers these topics z File System Overview z Directory Operations z File Operations z Storage Device Operations z File System Prompt Mode Setting z File System Operations 1 1 1 File System Overview A major function of the file system is to manage stor...

Page 3: ...e z The directory to be removed must be empty meaning before you remove a directory you must delete all the files and the subdirectory under this directory For file deletion refer to the delete command and for subdirectory deletion refer to the rmdir command z After the execution of the rmdir command the files in this directory will be automatically deleted for ever 1 1 3 File Operations File oper...

Page 4: ...iew Enter system view system view Execute the batch file execute filename Optional Note You can create a file by copying or downloading or using the save command Caution z Empty the recycle bin timely with the reset recycle bin command to save memory space z As the delete unreserved file url command deletes a file permanently and the action cannot be undone use it with caution z The execute comman...

Page 5: ...t of the second is cfb and so on z If storage device partitioning is supported on the device the name of the partition device is composed of the physical device name and partition number The serial numbers of partitions are displayed in numbers such as 0 1 or 2 For a device with only one CF card for example the second partition of the CF card is cf1 for a device with multiple CF cards the third pa...

Page 6: ...ata loss z quiet where the system does not do that in any cases To prevent undesirable consequence resulted from misoperations the alert mode is preferred To do Use the command Remarks Enter system view system view Set the operation prompt mode of the file system file prompt alert quiet Optional The default is alert 1 1 6 File System Operations Example Display the files and the subdirectory under ...

Page 7: ...nfiguration z Erasing the Startup Configuration File z Specifying a Configuration File for Next Startup z Backing up Restoring the Configuration File for Next Startup 1 2 1 Configuration File Overview A configuration file saves the device configurations in command lines in text format You can view configuration information conveniently through the configuration files I Types of configuration The c...

Page 8: ...ation You can modify the configuration on your device at the command line interface CLI To use the modified configuration for your subsequent startups you must save it using the save command as a configuration file I Modes in saving the configuration z Fast saving mode This is the mode when you use the save command without the safely keyword The mode saves the file quicker but is likely to lose th...

Page 9: ...e the default path or enter a filename to specify a new path but the suffix of the filename must be cfg and the path must be the path of the storage device on the AMB active main board 1 2 3 Erasing the Startup Configuration File With the configuration file erased your device will boot up with the default configuration next time it is powered on You may need to erase the configuration file for one...

Page 10: ...ration file for next startup through operations at the CLI TFTP is used for intercommunication between the device and the server The backup function enables you to backup a configuration file to the TFTP server while the restore function enables you to download the configuration file from the TFTP server for next startup II Backing up the configuration file for next startup To do Use the command R...

Page 11: ...tup command in user view to verify if the filename of the startup configuration file is the same with the filename argument and use the dir command to verify if the restored file exists 1 3 Displaying and Maintaining Device Configuration To do Use the command Remarks Display the configuration file saved in the storage device display saved configuration by linenum Available in any view Display the ...

Page 12: ...5510 Series Ethernet Switches Chapter 1 File System Management Configuration 1 11 Note For detailed description of the display this and display current configuration commands refer to the System Maintaining and Debugging Configuration part of the manual ...

Page 13: ... text file transmission 2 1 2 Implementation of FTP FTP adopts the server client model Your switch can function either as client or as server as shown in Figure 2 1 They work in the following way z When the switch serves as the FTP client a PC user first telnets or connects to the switch through an emulation program then executes the ftp command to establish the connection to the remote FTP server...

Page 14: ...cessfully access the FTP server You can specify one by configuring the source address of the packets of the FTP client to meet the requirement of the security policy of the FTP client You can configure the source address by configuring the source interface or source IP address The primary IP address configured on the source interface is the source address of the transmitted packets The source addr...

Page 15: ...view quit Log onto the remote FTP server directly in user view ftp server address service port source interface interface type interface number ip source ip address ftp Log onto the remote FTP server indirectly in FTP client view open server address service port Use either approach Available in user view Note z If no primary IP address is configured on the source interface the FTP connection fails...

Page 16: ... command Optional Enable information display in a detailed manner verbose Optional Enabled by default Use other username to relog after logging onto the FTP server successfully user username password Optional Set the file transfer mode to ASCII ascii Optional ASCII by default Set the file transfer mode to binary binary Optional ASCII by default Change the working path on the remote FTP server cd p...

Page 17: ...ual to the disconnect command Disconnect with the FTP server and exit to user view bye Optional Terminate the connection with the remote FTP server and exit to user view quit Optional Available in FTP client view equal to the bye command Note z FTP uses two modes for file transfer ASCII mode and binary mode z The Is command can only display the file directory name while the dir command can display...

Page 18: ...le to be downloaded Sysname dir Directory of flash 0 drw Dec 07 2005 10 00 57 filename 1 drw Jan 02 2006 14 27 51 logfile 2 rw 1216 Jan 02 2006 14 28 59 config cfg 3 rw 1216 Jan 02 2006 16 27 26 backup cfg 14605 KB total 6890 KB free Sysname delete unreserved flash backup cfg Download the startup file from the server Sysname ftp 10 1 1 1 Trying 10 1 1 1 Press CTRL K to abort Connected to 10 1 1 1 ...

Page 19: ...e manual 2 3 Configuring the FTP Server 2 3 1 Configuring FTP Server Operating Parameters The FTP server uses two modes to update files when you upload files use the put command to the FTP server z In fast mode the FTP server starts writing data to the Flash after file transfer completes This protects the files intended to be overwritten on the device from being corrupted in the event that anomali...

Page 20: ...s to the directories and associating the username and password with the account Follow these steps to configure authentication and authorization for FTP server To do Use the command Remarks Enter system view system view Create a local user and enter its view local user user name Required No local user exists by default and the system does not support FTP anonymous user access Assign a password to ...

Page 21: ...rk directory and level commands and the AAA related configuration refer to the AAA RADIUS HWTACACS Configuration part of the manual 2 3 3 FTP Server Configuration Example I Network requirements z Use your device as an FTP server Create a user account for an FTP user on it setting the username to abc and the password to pwd z The IP address of the VLAN interface is 1 1 1 1 16 z The PC serves as the...

Page 22: ...4 drw Jan 02 2006 15 20 21 ftp 2540 KB total 2511 KB free Sysname delete unreserved flash back cfg 2 Configure the PC FTP Client Upload the startup file to the FTP server and save it under the root directory of the FTP server c ftp 1 1 1 1 Connected to 1 1 1 1 220 FTP service ready User 1 1 1 1 none abc 331 Password required for abc Password 230 User logged in ftp put aaa bin bbb bin Note z When u...

Page 23: ... root directory For description of the corresponding command refer to the System Maintaining and Debugging part of the manual 2 4 Displaying and Maintaining FTP To do Use the command Remarks Display the configuration of the FTP client display ftp client configuration Available in any view Display the configuration of the FTP server display ftp server Available in any view Display detailed informat...

Page 24: ...tication Therefore it is more suitable where complex interaction is not needed between client and server TFTP uses the UDP port 69 for data transmission For TFTP basic operation refer to RFC 1350 In TFTP file transfer is initiated by the client z In a normal file downloading process the client sends a read request to the TFTP server receives data from the server and then sends the acknowledgement ...

Page 25: ... start up because the original system file is not overwritten This mode is securer but consumes more memory You are recommended to use the latter mode or use a filename not existing in the current directory as the target filename when downloading startup file or configuration file Multiple routes may exist for a TFTP client to successfully access the TFTP server You can specify one by configuring ...

Page 26: ...ber ip source ip address Optional A device uses the source address determined by the routing protocol to communicate with the TFTP server by default Return to user view quit Download or upload a file in IPv4 network tftp server address get put sget source filename destination filename source interface interface type interface number ip source ip address Optional Download or upload a file in IPv6 n...

Page 27: ...ned for the client z On your device VLAN interface 1 is assigned an IP address 1 1 1 1 16 Make sure that the port connected to PC belongs to the same VLAN z TFTP a startup file from PC for upgrading and a configuration file config cfg to PC for backup II Network diagram Figure 3 2 Smooth upgrading using the TFTP client function III Configuration procedure 1 Configure PC TFTP Server the configurati...

Page 28: ...mory is available Sysname tftp 1 2 1 1 get aaa bin bbb bin Upload a configuration file config cfg to the TFTP server Sysname tftp 1 2 1 1 put config cfg configback cfg Specify the main startup file for next startup with the boot loader command Suppose the device in this example supports the main and backup attribute of the startup file Sysname boot loader file bbb bin Sysname reboot Caution Startu...

Reviews: