How to check whether an uploaded file is complete

18

After you upload a file, you can compare the file size before and after the file upload to check whether the uploaded file is complete. Before uploading the file, check and record the file size. After uploading the file, run the dir command to check the file size in the storage medium. If the file sizes are the same, the uploaded file is complete. If they are different, the uploaded file is incomplete. You need to run the delete command to delete the file and upload the file again.

dir /all
Directory of flash:/

Idx Attr Size(Byte) Date Time FileName
0 -rw- 14 Feb 27 2012 11:20:12 back_time_a
1 -rw- 16 Dec 28 2011 13:10:56 abc.tbl
2 drw- - Feb 25 2012 14:19:56 logfile
3 drw- - Oct 31 2011 15:05:26 sysdrv
4 drw- - Feb 25 2012 14:20:08 compatible
5 drw- - Oct 31 2011 15:19:02 selftest
6 -rw- 14 Feb 27 2012 11:20:12 back_time_b
7 -rw- 9,637 Feb 25 2012 14:18:22 vrpcfg.cfg
8 -rw- 4 Jan 18 2012 16:34:56 snmpnotilog.txt
9 -rw- 1,968 Feb 25 2012 14:20:22 private-data.txt
10 -rw- 637 Nov 04 2011 11:48:46 cacert.der
11 -rw- 4,303 Feb 09 2012 21:16:06 vrpcfg1.cfg.bak
12 -rw- 639 Nov 04 2011 11:49:04 rootcert.der
13 drw- - Nov 04 2011 11:50:24 security
14 -rw- 13 Nov 29 2011 20:33:40 tftp_test.txt
15 -rw- 52,770,448 Dec 05 2011 17:00:06 basicsoft.cc
16 -rw- 98,139,547 Jan 31 2012 16:11:52 devicesoft.cc
17 -rw- 463,309 Jan 31 2012 15:55:40 rbsaveddata.txt

509,256 KB total (272,952 KB free)
Size(Byte) in the command output shows the file size.

Other related questions:
Method of checking the RAID rebuild progress
To view the RAID rebuild progress, install the MegaRAID software. Download Link

How do WLAN devices upload or download files through TFTP
To enable a WLAN device to upload or download files using TFTP, perform the following operations: 1. Run TFTP software on a TFTP server, and set the TFTP working directory. (For details, see the help document about the third-party software.) 2. Use TFTP commands to connect the TFTP server, and download and upload files. tftp 10.1.1.1 get devicesoft.cc //Connect the TFTP server and download the devicesoft.cc file. tftp 10.1.1.1 put vrpcfg.zip //Connect the TFTP server and upload the vrpcfg.zip file.

How to upload a license file to an AC
To upload a license file to an AC, use any of the following methods: Method 1: Upload a license file using a PC as the TFTP server. Run TFTP server software on the PC and set parameters. Note: This method requires you to purchase TFTP server software separately. Procedure: 1. Configure a TFTP server. Click Browse and specify the directory for storing the new system software. The TFTP server address in Server interface is automatically set by the system. 2. Run the tftp [ -a source-ip-address | -i interface-type interface-number ] tftp-server { get | put } source-filename [ destination-filename ] command to upload a license file to the AC. Method 2: Upload a license file using an FTP server. In this case, the AC serves as the FTP client. Note: This method requires you to purchase FTP server software separately. Procedure: 1. Configure the FTP server, set its user name and password, and set the FTP folder. 2. Run the ftp [ -a source-ip-address | -i interface-type interface-number ] host-ip [ port-number ] command to log in to the FTP server. Enter the user name and password of the FTP server as prompted. 3. Run the get remote-filename [ local-filename ] command to download a license file to the AC. Method 3: An AC serves as an FTP server, and a license file is uploaded from an FTP client to the AC. Procedure: 1. Run the system-view command to enter the system view. 2. Run the ftp [ ipv6 ] server enable command to start the FTP server. 3. Run the aaa command to enter the AAA view. 4. Run the local-user user-name password cipher password command to configure the local user name and password. 5. Run the local-user user-name privilege level level command to configure the level for a local user. Note: The user level must be set to 3 or higher; otherwise, the FTP connection cannot be established. 6. Run the local-user user-name service-type ftp command to configure the FTP service type. 7. Run the local-user user-name ftp-directory directory command to configure the authorized directory for FTP users. 8. Enter the CLI on the PC. Run the ftp server-ip-address command, and enter the user name and password to log in to the AC. 9. Run the put license-filename command to upload a license file to the AC. After the upload is complete, the license file is saved to the default directory of the AC.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top