Topic "Understanding WINSCP log file"

Author Message
ajayanthi
[View user's profile]

Joined: 2011-01-03
Posts: 1
Location: California
Hi, we download about 20 files everyday from client SFTP server using WINSCP automated script. The client is asking us to confirm that all the files have been transfered completely in terms of data packet sizes. Can we achive this by looking at the lines below from the log file?
Type: SSH_FXP_OPEN, Size: 56, Number: 4867
Type: SSH_FXP_HANDLE, Size: 10, Number: 4867


our log for one file lookslike this:
. 2011-01-03 14:41:08.126 Copying "/OCFSFiles/csos-qa/SEVLDSS_20110103.txt" to local directory started.
. 2011-01-03 14:41:08.126 Binary transfer mode selected.
. 2011-01-03 14:41:08.126 Checking existence of partially transfered file.
. 2011-01-03 14:41:08.127 Opening remote file.
> 2011-01-03 14:41:08.127 Type: SSH_FXP_OPEN, Size: 56, Number: 4867
< 2011-01-03 14:41:08.127 Type: SSH_FXP_STATUS, Size: 21, Number: 4612
. 2011-01-03 14:41:08.127 Discarding reserved response
< 2011-01-03 14:41:08.138 Type: SSH_FXP_HANDLE, Size: 10, Number: 4867
> 2011-01-03 14:41:08.138 Type: SSH_FXP_FSTAT, Size: 10, Number: 5128
> 2011-01-03 14:41:08.138 Type: SSH_FXP_READ, Size: 22, Number: 5381
. 2011-01-03 14:41:08.148 3 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
< 2011-01-03 14:41:08.148 Type: SSH_FXP_ATTRS, Size: 29, Number: 5128
. 2011-01-03 14:41:08.148 Storing reserved response
< 2011-01-03 14:41:08.674 Status/error code: 1
. 2011-01-03 14:41:08.674 45 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2011-01-03 14:41:08.674 Type: SSH_FXP_CLOSE, Size: 10, Number: 12036
< 2011-01-03 14:41:08.674 Type: SSH_FXP_STATUS, Size: 22, Number: 11269
< 2011-01-03 14:41:08.674 Type: SSH_FXP_STATUS, Size: 22, Number: 11525
< 2011-01-03 14:41:08.907 Type: SSH_FXP_STATUS, Size: 22, Number: 11781
. 2011-01-03 14:41:08.909 Closing connection.
. 2011-01-03 14:41:08.909 Sending special code: 12
. 2011-01-03 14:41:08.909 Sent EOF message

Thanks,
ajayanthi
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Do you want to check that all bytes of the file were transferred? You cannot do this just based on packet sizes. If you increase the log level, to have packet contents logged, you will have enough information for the calculation. But wouldn't it be easier to check the local file size instead?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License