1. Checking Whether FTP Parameters Are Correct
In this example, the switch functions as the FTP server and the PC functions as an FTP client. The troubleshooting procedure for other login methods is similar to the following procedure.
The procedure for configuring an S or E series switch (excluding the S1700) as an FTP server is as follows:
Configure an IP address for the switch.
Configure the switch as an FTP server.
<HUAWEI> system-view [HUAWEI] ftp server enable //Enable the FTP service. [HUAWEI] aaa [HUAWEI-aaa] local-user u1 password irreversible-cipher ftppwd@6789 //Set the FTP user name to u1 and password to ftppwd@6789. [HUAWEI-aaa] local-user u1 service-type ftp //Set the access type of the user u1 to FTP. [HUAWEI-aaa] local-user u1 privilege level 15 //Configure the priority of the user u1. [HUAWEI-aaa] local-user u1 ftp-directory flash:/ //Specify the directory that the user u1 can access. The directory may be cfcard:/ on some S series modular switches. [HUAWEI-aaa] return
Check whether the PC can log in to the server using FTP. If not, check whether an FTP fault occurs. If so, perform step 2.
C:\> ftp 192.168.10.1 Connected to 192.168.10.1¡£ 220 FTP service ready. User(192.168.10.1:(none)): u1 //Enter the FTP login user name. 331 Password required for u1. Password: //Enter the FTP login password. 230 User logged in. ftp>
Check whether the local directory specified for the PC to upload a file is correct. If not, specify another directory. If so, perform step 3. (In the scenario where the PC functions as the FTP server, ensure that the working directory specified in the FTP server software is the directory for storing the system software.)
ftp> lcd d:\Software //Change the local working directory to the directory where the system software package is stored. The current local directory is D:\Software.
Check whether the file name (including the file name extension) of the file uploaded using the put command on the FTP client is correct. If the file name differs from the name of the file saved in the local directory, the file cannot be uploaded. Run the put command to upload the correct file again. If the file name is correct, run the get command to download the file from the server.
ftp> put test.txt //Run the put command to upload the local file test.txt to the FTP server. 200 Port command okay. 150 Opening ASCII mode data connection for directory list. 226 Transfer complete.
After completing the preceding checks, attempt to download a test file from the server. If the file fails to be downloaded, check whether an FTP fault occurs. If the file is successfully downloaded, FTP works properly.
ftp> ls //Run the ls command to list all files on the FTP server. 200 Port command okay. 150 Opening ASCII mode data connection for directory list. vrpcfg.zips 5700hi-v200r003c00spc300.cc ¡¡ ftp> get vrpcfg.zip //Run the get command to download a file from the FTP server to the local PC. 200 Port command okay. 150 Opening ASCII mode data connection for directory list. 226 Transfer complete. ftp: 5948 bytes received in 0.03Seconds 205.10Kbytes/sec //The file is downloaded successfully.
2. Checking Whether the Available Space Is Sufficient
After confirming that no FTP fault occurs, check whether the available space of the file system is sufficient. If not, delete some files.
For example, run the dir /all command to check all files in the switch’s file system, including files in the recycle bin.
<HUAWEI> dir /all Directory of flash:/ Idx Attr Size(Byte) Date Time FileName 0 drw- - Oct 01 2008 01:00:00 user 1 -rw- 921 Oct 01 2008 00:01:54 private-data.txt 2 -rw- 836 Oct 01 2008 00:02:12 rr.dat 3 -rw- 836 Oct 01 2008 00:02:12 rr.bak 4 drw- - Oct 01 2008 01:00:00 dhcp 5 drw- - Oct 01 2008 00:04:16 syslogfile 6 -rw- 705 May 31 2016 16:22:16 vrpcfg.zip ¡¡ 17 -rw- 15,676,516 Oct 01 2008 02:23:40 [s5300si-v200r005c00spc300.cc] //The file placed in square brackets ([]) is in the recycle bin. 32,593 KB total (1,221 KB free) //free indicates the available space.
You can check the available space in the last row of the command output. If the available space size is less than the system software size, delete files in the file system to ensure that sufficient space is available. You can use the following methods:
Delete files in the recycle bin.
Files deleted using the delete filename command are moved to the recycle bin. The occupied storage space is not released. If a file name is placed in square brackets ([]) in the dir /all command output, such as [s5300si-v200r005c00spc300.cc] in the preceding command output, the file is in the recycle bin. Run the reset recycle-bin command to empty the recycle bin.
<HUAWEI> reset recycle-bin
Delete files in the file system.
Run the delete /unreserved filename command to delete a specified file permanently. The occupied storage space will be released immediately.
<HUAWEI> delete /unreserved rr.bak
For fixed switches, if the system software package to be deleted is the running system software package, disable it as the system software package for startup, and then delete it.
<HUAWEI> system-view [HUAWEI] diagnose [HUAWEI-iagnose] undo startup system-software [HUAWEI-diagnose] return <HUAWEI> delete /unreserved xxxx.cc
NOTE:
If the system software package is deleted and the new system software package is not uploaded, do not restart the switch; otherwise, the switch cannot start properly because there is no system software package. It is recommended that you perform the package deletion, package upload, and switch restart operations under the guidance of technical support personnel from the local Huawei office or supplier.
3. Checking Whether the File System Is Normal
After confirming that the available space is sufficient, run the dir and copy commands to perform operations in the file system to check whether the file system is normal.
For example, run the dir command to view information about files in the flash memory.
<HUAWEI> dir Directory of flash:/ Idx Attr Size(Byte) Date Time FileName 0 -rw- 15,676,516 Oct 01 2008 02:25:14 s5300si-v200r005c00spc300.cc 1 drw- - Oct 01 2008 01:00:00 user 2 -rw- 921 Oct 01 2008 00:01:54 private-data.txt ¡¡ 32,593 KB total (1,223 KB free)
If the command output does not contain files on the switch, a problem occurs in the file system.
For example, back up the configuration file to check whether the file system works properly.
<HUAWEI> copy vrpcfg.zip vrpcfg_bak.zip Copy flash:/vrpcfg.zip to flash:/vrpcfg_bak.zip?[Y/N]:y 100% complete. Info: Copied file flash:/vrpcfg.zip to flash:/vrpcfg_bak.zip...Done.
If the file cannot be backed up, a problem occurs in the file system.
NOTE:
If a problem occurs in the file system, run the format flash: command to format the file system. (After the command is run, all files and directories in the specified storage medium will be cleared and cannot be restored. Therefore, exercise caution when using this command. After the file system is formatted, use the BootROM menu to upload the file again.)
4. Collecting Information and Seeking Technical Support
If the fault persists, collect related information and seek technical support.
Collecting Fault Information
Collect operation results of the preceding steps and record the results in a file.
Collect all diagnostic information and export the information to a file.
Run the display diagnostic-information file-name command in the user view to collect diagnostic information and save the information to a file.
<HUAWEI> display diagnostic-information dia-info.txt Now saving the diagnostic information to the device 100% Info: The diagnostic information was saved to the device successfully.
When the diagnostic file is generated, you can export the file from the device using FTP, SFTP, or SCP.
NOTICE:
You can run the dir command in the user view to check whether the file is generated.
You can also run the display diagnostic-information command and save terminal logs in a diagnostic file on a disk.
If this command displays a long output, press Ctrl+C to abort this command.
This command displays diagnostic information, which helps locate faults but may affect system performance. For example, CPU usage may become high. Therefore, do not use this command when the system is running properly.
Running the display diagnostic-information command simultaneously on multiple terminals connected to the device is prohibited. This is because CPU usage of the device may obviously increase and the device performance may be degraded.
Collect the log and trap information on the device and export the information to files.
Run the save logfile all command in the user view to save the logs in the user log buffer area and diagnostic log buffer area to the user log file and diagnostic log file, respectively.
<HUAWEI> save logfile all Info: Save logfile successfully. Info: Save diagnostic logfile successfully.
When the diagnostic file is generated, you can export the file from the device using FTP, SFTP, or SCP.
NOTE:
You can also run the display logbuffer and display trapbuffer commands to view the log and trap information on the device, and save the information in diagnostic files on a disk.
If any question, please contact csd@telecomate.com to seek technical support.
NOTE:
Technical support personnel will provide instructions for you to submit all the collected information and files, so that they can locate faults.
Leave a comment