Successful download not successful from server perspective?
I am using the command-line scripting to download a file from a mainframe from some vendor out in the cloud (I don't know what it is -- maybe an AIX system?). The script is super-simple:
The server is set up (somehow) to recognize when the file is downloaded and it moves it out into another folder. IF I use my Mac's SFTP and issue get
AUXMXPET.TXT
it will download the file and trigger the thing that it was downloaded. However, my script via winSCP will download the file but NOT trigger the script, leading me to believe maybe there's something goofy in the settings or the like. Any ideas? Attached below is the log. Note that the server suffers from some sort of OpenSSH bug so I had to use blowfish instead of aes.
THANKS!!!!!!!!!!!!
My command line
D:\UTILS\sftp PROD_RECEIVE /log=AUXMXPET.log /script=ftp.txt >>C:\tmp\auxmxpetftp.log
. 2009-06-10 15:16:10.469 -------------------------------------------------------------------------- . 2009-06-10 15:16:10.469 WinSCP Version 4.1.9 (Build 416) (OS 5.2.3790 Service Pack 2) . 2009-06-10 15:16:10.469 Login time: Wednesday, June 10, 2009 3:16:10 PM . 2009-06-10 15:16:10.469 -------------------------------------------------------------------------- . 2009-06-10 15:16:10.469 Session name: PROD_RECEIVE . 2009-06-10 15:16:10.469 Host name: XXXXXXXXXXXXXX (Port: 22) . 2009-06-10 15:16:10.469 User name: XXXXXXXXXX (Password: Yes, Key file: No) . 2009-06-10 15:16:10.469 Tunnel: No . 2009-06-10 15:16:10.469 Transfer Protocol: SFTP (SCP) . 2009-06-10 15:16:10.469 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec . 2009-06-10 15:16:10.469 Proxy: none . 2009-06-10 15:16:10.469 SSH protocol version: 2; Compression: No . 2009-06-10 15:16:10.469 Bypass authentication: No . 2009-06-10 15:16:10.469 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No . 2009-06-10 15:16:10.469 Ciphers: blowfish,aes,3des,WARN,arcfour,des; Ssh2DES: No . 2009-06-10 15:16:10.469 SSH Bugs: -,-,-,-,-,-,-,- . 2009-06-10 15:16:10.469 SFTP Bugs: -,- . 2009-06-10 15:16:10.469 Return code variable: Autodetect; Lookup user groups: Yes . 2009-06-10 15:16:10.469 Shell: default, EOL: 0 . 2009-06-10 15:16:10.469 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes . 2009-06-10 15:16:10.469 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No . 2009-06-10 15:16:10.469 Local directory: default, Remote directory: home, Update: No, Cache: Yes . 2009-06-10 15:16:10.469 Cache directory changes: Yes, Permanent: Yes . 2009-06-10 15:16:10.469 DST mode: 2 . 2009-06-10 15:16:10.469 -------------------------------------------------------------------------- . 2009-06-10 15:16:10.469 Looking up host "xxxxxxxxxxx" (IPv4) . 2009-06-10 15:16:10.469 Connecting to xxxxxxxxxxx port 22 . 2009-06-10 15:16:10.562 Selecting events 63 for socket 1524 . 2009-06-10 15:16:10.562 Waiting for the server to continue with the initialisation . 2009-06-10 15:16:10.562 Looking for incoming data . 2009-06-10 15:16:10.562 Looking for network events . 2009-06-10 15:16:10.562 Detected network event . 2009-06-10 15:16:10.562 Enumerating network events for socket 1524 . 2009-06-10 15:16:10.562 Enumerated 18 network events making 18 cumulative events for socket 1524 . 2009-06-10 15:16:10.562 Handling network write event on socket 1524 with error 0 . 2009-06-10 15:16:10.562 Handling network connect event on socket 1524 with error 0 . 2009-06-10 15:16:10.562 Looking for network events . 2009-06-10 15:16:10.719 Detected network event . 2009-06-10 15:16:10.719 Enumerating network events for socket 1524 . 2009-06-10 15:16:10.719 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:10.719 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:10.719 Server version: SSH-2.0-OpenSSH_4.3 . 2009-06-10 15:16:10.719 We claim version: SSH-2.0-WinSCP_release_4.1.9 . 2009-06-10 15:16:10.719 SSPI: acquired credentials for: xxxxxxxx@xxxxxxxxxx . 2009-06-10 15:16:10.719 Cannot convert IP address to SPN: DNS is not trusted . 2009-06-10 15:16:10.719 GSSKEX disabled: The operation completed successfully. . 2009-06-10 15:16:10.719 Using SSH protocol version 2 . 2009-06-10 15:16:10.719 Waiting for the server to continue with the initialisation . 2009-06-10 15:16:10.719 Looking for incoming data . 2009-06-10 15:16:10.719 Looking for network events . 2009-06-10 15:16:10.797 Detected network event . 2009-06-10 15:16:10.797 Enumerating network events for socket 1524 . 2009-06-10 15:16:10.797 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:10.797 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:10.797 Doing Diffie-Hellman group exchange . 2009-06-10 15:16:10.797 Waiting for the server to continue with the initialisation . 2009-06-10 15:16:10.797 Looking for incoming data . 2009-06-10 15:16:10.797 Looking for network events . 2009-06-10 15:16:10.969 Detected network event . 2009-06-10 15:16:10.969 Enumerating network events for socket 1524 . 2009-06-10 15:16:10.969 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:10.969 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:10.969 Doing Diffie-Hellman key exchange with hash SHA-1 . 2009-06-10 15:16:11.015 Waiting for the server to continue with the initialisation . 2009-06-10 15:16:11.015 Looking for incoming data . 2009-06-10 15:16:11.015 Looking for network events . 2009-06-10 15:16:11.265 Detected network event . 2009-06-10 15:16:11.265 Enumerating network events for socket 1524 . 2009-06-10 15:16:11.265 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:11.265 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:11.312 Selecting events 63 for socket 1524 . 2009-06-10 15:16:11.312 Host key fingerprint is: . 2009-06-10 15:16:11.312 ssh-rsa 2048 xxxxxxxxxxxxxxxxxxxxxxxxxxx . 2009-06-10 15:16:11.312 Initialised Blowfish-128 CBC client->server encryption . 2009-06-10 15:16:11.312 Initialised HMAC-SHA1 client->server MAC algorithm . 2009-06-10 15:16:11.312 Initialised Blowfish-128 CBC server->client encryption . 2009-06-10 15:16:11.312 Initialised HMAC-SHA1 server->client MAC algorithm . 2009-06-10 15:16:11.312 Waiting for the server to continue with the initialisation . 2009-06-10 15:16:11.312 Looking for incoming data . 2009-06-10 15:16:11.312 Looking for network events . 2009-06-10 15:16:11.578 Detected network event . 2009-06-10 15:16:11.578 Enumerating network events for socket 1524 . 2009-06-10 15:16:11.578 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:11.578 Handling network read event on socket 1524 with error 0 ! 2009-06-10 15:16:11.578 Using username "xxxxxxxxxxx". . 2009-06-10 15:16:11.578 Waiting for the server to continue with the initialisation . 2009-06-10 15:16:11.578 Looking for incoming data . 2009-06-10 15:16:11.578 Looking for network events . 2009-06-10 15:16:11.672 Detected network event . 2009-06-10 15:16:11.672 Enumerating network events for socket 1524 . 2009-06-10 15:16:11.672 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:11.672 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:11.672 Prompt (6, SSH password, , &Password: ) . 2009-06-10 15:16:11.672 Using stored password. . 2009-06-10 15:16:11.672 Sent password . 2009-06-10 15:16:11.672 Waiting for the server to continue with the initialisation . 2009-06-10 15:16:11.672 Looking for incoming data . 2009-06-10 15:16:11.672 Looking for network events . 2009-06-10 15:16:12.000 Detected network event . 2009-06-10 15:16:12.000 Enumerating network events for socket 1524 . 2009-06-10 15:16:12.000 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:12.000 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:12.000 Access granted . 2009-06-10 15:16:12.000 Waiting for the server to continue with the initialisation . 2009-06-10 15:16:12.000 Looking for incoming data . 2009-06-10 15:16:12.000 Looking for network events . 2009-06-10 15:16:12.078 Detected network event . 2009-06-10 15:16:12.078 Enumerating network events for socket 1524 . 2009-06-10 15:16:12.078 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:12.078 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:12.078 Opened channel for session . 2009-06-10 15:16:12.078 Waiting for the server to continue with the initialisation . 2009-06-10 15:16:12.078 Looking for incoming data . 2009-06-10 15:16:12.078 Looking for network events . 2009-06-10 15:16:12.172 Detected network event . 2009-06-10 15:16:12.172 Enumerating network events for socket 1524 . 2009-06-10 15:16:12.172 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:12.172 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:12.172 Started a shell/command . 2009-06-10 15:16:12.172 -------------------------------------------------------------------------- . 2009-06-10 15:16:12.172 Using SFTP protocol. . 2009-06-10 15:16:12.172 Doing startup conversation with host. > 2009-06-10 15:16:12.172 Type: SSH_FXP_INIT, Size: 5, Number: -1 > 2009-06-10 15:16:12.172 01,00,00,00,03, . 2009-06-10 15:16:12.172 Sent 9 bytes . 2009-06-10 15:16:12.172 There are 0 bytes remaining in the send buffer . 2009-06-10 15:16:12.172 Looking for network events . 2009-06-10 15:16:12.172 Timeout waiting for network events . 2009-06-10 15:16:12.172 Waiting for another 4 bytes . 2009-06-10 15:16:12.172 Looking for incoming data . 2009-06-10 15:16:12.172 Looking for network events . 2009-06-10 15:16:12.422 Detected network event . 2009-06-10 15:16:12.422 Enumerating network events for socket 1524 . 2009-06-10 15:16:12.422 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:12.422 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:12.422 Received 9 bytes (0) . 2009-06-10 15:16:12.422 Read 4 bytes (5 pending) . 2009-06-10 15:16:12.422 Read 5 bytes (0 pending) < 2009-06-10 15:16:12.422 Type: SSH_FXP_VERSION, Size: 5, Number: -1 < 2009-06-10 15:16:12.422 02,00,00,00,03, . 2009-06-10 15:16:12.422 SFTP version 3 negotiated. . 2009-06-10 15:16:12.422 We believe the server has signed timestamps bug . 2009-06-10 15:16:12.422 We will use UTF-8 strings for status messages only . 2009-06-10 15:16:12.422 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes . 2009-06-10 15:16:12.422 Getting current directory name. . 2009-06-10 15:16:12.422 Getting real path for '.' > 2009-06-10 15:16:12.422 Type: SSH_FXP_REALPATH, Size: 10, Number: 16 > 2009-06-10 15:16:12.422 10,00,00,00,10,00,00,00,01,2E, . 2009-06-10 15:16:12.422 Sent 14 bytes . 2009-06-10 15:16:12.422 There are 0 bytes remaining in the send buffer . 2009-06-10 15:16:12.422 Looking for network events . 2009-06-10 15:16:12.422 Timeout waiting for network events . 2009-06-10 15:16:12.422 Waiting for another 4 bytes . 2009-06-10 15:16:12.422 Looking for incoming data . 2009-06-10 15:16:12.422 Looking for network events . 2009-06-10 15:16:12.515 Detected network event . 2009-06-10 15:16:12.515 Enumerating network events for socket 1524 . 2009-06-10 15:16:12.515 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:12.515 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:12.515 Received 49 bytes (0) . 2009-06-10 15:16:12.515 Read 4 bytes (45 pending) . 2009-06-10 15:16:12.515 Read 45 bytes (0 pending) < 2009-06-10 15:16:12.515 Type: SSH_FXP_NAME, Size: 45, Number: 16 < 2009-06-10 15:16:12.515 xxxxxxxxxxxxxxxxxxxxxxxxxx, . 2009-06-10 15:16:12.515 Real path is '/XXXXXXXXX' . 2009-06-10 15:16:12.515 Startup conversation with host finished. . 2009-06-10 15:16:12.515 Listing file "AUXMXPET.TXT". > 2009-06-10 15:16:12.515 Type: SSH_FXP_LSTAT, Size: 34, Number: 263 > 2009-06-10 15:16:12.515 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, . 2009-06-10 15:16:12.515 Sent 38 bytes . 2009-06-10 15:16:12.515 There are 0 bytes remaining in the send buffer . 2009-06-10 15:16:12.515 Looking for network events . 2009-06-10 15:16:12.515 Timeout waiting for network events . 2009-06-10 15:16:12.515 Waiting for another 4 bytes . 2009-06-10 15:16:12.515 Looking for incoming data . 2009-06-10 15:16:12.515 Looking for network events . 2009-06-10 15:16:12.625 Detected network event . 2009-06-10 15:16:12.625 Enumerating network events for socket 1524 . 2009-06-10 15:16:12.625 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:12.625 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:12.625 Received 41 bytes (0) . 2009-06-10 15:16:12.625 Read 4 bytes (37 pending) . 2009-06-10 15:16:12.625 Read 37 bytes (0 pending) < 2009-06-10 15:16:12.625 Type: SSH_FXP_ATTRS, Size: 37, Number: 263 < 2009-06-10 15:16:12.625 69,00,00,01,07,00,00,00,0F,00,00,00,00,00,00,10,00,00,00,00,00,00,00,00,00, < 2009-06-10 15:16:12.625 00,00,81,24,4A,30,06,7C,4A,30,06,7C, . 2009-06-10 15:16:12.625 File: "/XXXXXXXXXX/AUXMXPET.TXT" . 2009-06-10 15:16:12.625 Copying "/XXXXXXXXXX/AUXMXPET.TXT" to local directory started. . 2009-06-10 15:16:12.625 Ascii transfer mode selected. . 2009-06-10 15:16:12.625 Opening remote file. > 2009-06-10 15:16:12.625 Type: SSH_FXP_OPEN, Size: 42, Number: 515 > 2009-06-10 15:16:12.625 03,00,00,02,03,00,00,00,19,2F,4D,53,4F,46,2D,30,30,30,30,38,33,2F,41,55,44, > 2009-06-10 15:16:12.625 58,4D,50,45,54,2E,54,58,54,00,00,00,01,00,00,00,00, . 2009-06-10 15:16:12.625 Sent 46 bytes . 2009-06-10 15:16:12.625 There are 0 bytes remaining in the send buffer . 2009-06-10 15:16:12.625 Looking for network events . 2009-06-10 15:16:12.625 Timeout waiting for network events . 2009-06-10 15:16:12.625 Waiting for another 4 bytes . 2009-06-10 15:16:12.625 Looking for incoming data . 2009-06-10 15:16:12.625 Looking for network events . 2009-06-10 15:16:12.750 Detected network event . 2009-06-10 15:16:12.750 Enumerating network events for socket 1524 . 2009-06-10 15:16:12.750 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:12.750 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:12.750 Received 17 bytes (0) . 2009-06-10 15:16:12.750 Read 4 bytes (13 pending) . 2009-06-10 15:16:12.750 Read 13 bytes (0 pending) < 2009-06-10 15:16:12.750 Type: SSH_FXP_HANDLE, Size: 13, Number: 515 < 2009-06-10 15:16:12.750 66,00,00,02,03,00,00,00,04,00,00,00,00, > 2009-06-10 15:16:12.750 Type: SSH_FXP_READ, Size: 25, Number: 1029 > 2009-06-10 15:16:12.750 xxxxxxxxxxxxxxxxxxx . 2009-06-10 15:16:12.750 Sent 29 bytes . 2009-06-10 15:16:12.750 There are 0 bytes remaining in the send buffer . 2009-06-10 15:16:12.750 Looking for network events . 2009-06-10 15:16:12.750 Timeout waiting for network events > 2009-06-10 15:16:12.750 Type: SSH_FXP_READ, Size: 25, Number: 1285 xxxxxxxxxxxxxxxxxxxxxxxxx . 2009-06-10 15:16:12.750 Sent 29 bytes . 2009-06-10 15:16:12.750 There are 0 bytes remaining in the send buffer . 2009-06-10 15:16:12.750 Looking for network events . 2009-06-10 15:16:12.750 Timeout waiting for network events . 2009-06-10 15:16:12.750 Waiting for another 4 bytes . 2009-06-10 15:16:12.750 Looking for incoming data . 2009-06-10 15:16:12.750 Looking for network events . 2009-06-10 15:16:12.844 Detected network event . 2009-06-10 15:16:12.844 Enumerating network events for socket 1524 . 2009-06-10 15:16:12.844 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:12.844 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:12.844 Received 418 bytes (0) . 2009-06-10 15:16:12.844 Read 4 bytes (414 pending) . 2009-06-10 15:16:12.844 Read 414 bytes (0 pending) < 2009-06-10 15:16:12.844 Type: SSH_FXP_DATA, Size: 414, Number: 1029 xxxxxxxxxxxxxxxxx > 2009-06-10 15:16:12.859 Type: SSH_FXP_READ, Size: 25, Number: 1541 xxxxxxxxxxxxxxxx . 2009-06-10 15:16:12.859 Sent 29 bytes . 2009-06-10 15:16:12.859 There are 0 bytes remaining in the send buffer . 2009-06-10 15:16:12.859 Looking for network events . 2009-06-10 15:16:12.859 Timeout waiting for network events > 2009-06-10 15:16:12.859 Type: SSH_FXP_READ, Size: 25, Number: 1797 xxxxxxxxxxxxxxxxx . 2009-06-10 15:16:12.859 Sent 29 bytes . 2009-06-10 15:16:12.859 There are 0 bytes remaining in the send buffer . 2009-06-10 15:16:12.859 Looking for network events . 2009-06-10 15:16:12.859 Timeout waiting for network events . 2009-06-10 15:16:12.859 Waiting for another 4 bytes . 2009-06-10 15:16:12.859 Looking for incoming data . 2009-06-10 15:16:12.859 Looking for network events . 2009-06-10 15:16:12.937 Detected network event . 2009-06-10 15:16:12.937 Enumerating network events for socket 1524 . 2009-06-10 15:16:12.937 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:12.937 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:12.937 Received 32 bytes (0) . 2009-06-10 15:16:12.937 Read 4 bytes (28 pending) . 2009-06-10 15:16:12.937 Read 28 bytes (0 pending) < 2009-06-10 15:16:12.937 Type: SSH_FXP_STATUS, Size: 28, Number: 1285 xxxxxxxxxxxxxxxxxxxxxxxxx < 2009-06-10 15:16:12.937 00,00,00, . 2009-06-10 15:16:12.937 Storing reserved response . 2009-06-10 15:16:12.937 Waiting for another 4 bytes . 2009-06-10 15:16:12.937 Looking for incoming data . 2009-06-10 15:16:12.937 Looking for network events . 2009-06-10 15:16:13.031 Detected network event . 2009-06-10 15:16:13.031 Enumerating network events for socket 1524 . 2009-06-10 15:16:13.031 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:13.031 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:13.031 Received 32 bytes (0) . 2009-06-10 15:16:13.031 Read 4 bytes (28 pending) . 2009-06-10 15:16:13.031 Read 28 bytes (0 pending) < 2009-06-10 15:16:13.031 Type: SSH_FXP_STATUS, Size: 28, Number: 1541 xxxxxxxxxxxxxxxxxx < 2009-06-10 15:16:13.031 00,00,00, . 2009-06-10 15:16:13.031 Storing reserved response . 2009-06-10 15:16:13.031 Waiting for another 4 bytes . 2009-06-10 15:16:13.031 Looking for incoming data . 2009-06-10 15:16:13.031 Looking for network events . 2009-06-10 15:16:13.281 Detected network event . 2009-06-10 15:16:13.281 Enumerating network events for socket 1524 . 2009-06-10 15:16:13.281 Enumerated 1 network events making 1 cumulative events for socket 1524 . 2009-06-10 15:16:13.281 Handling network read event on socket 1524 with error 0 . 2009-06-10 15:16:13.281 Received 32 bytes (0) . 2009-06-10 15:16:13.281 Read 4 bytes (28 pending) . 2009-06-10 15:16:13.281 Read 28 bytes (0 pending) < 2009-06-10 15:16:13.281 Type: SSH_FXP_STATUS, Size: 28, Number: 1797 < 2009-06-10 15:16:13.281 65,00,00,07,05,00,00,00,01,00,00,00,0B,45,6E,64,20,6F,66,20,66,69,6C,65,00, < 2009-06-10 15:16:13.281 00,00,00, < 2009-06-10 15:16:13.281 Status/error code: 1 > 2009-06-10 15:16:13.281 Type: SSH_FXP_CLOSE, Size: 13, Number: 2052 > 2009-06-10 15:16:13.281 04,00,00,08,04,00,00,00,04,00,00,00,00, . 2009-06-10 15:16:13.281 Sent 17 bytes . 2009-06-10 15:16:13.281 There are 0 bytes remaining in the send buffer . 2009-06-10 15:16:13.281 Looking for network events . 2009-06-10 15:16:13.281 Timeout waiting for network events . 2009-06-10 15:16:13.281 1 requests to fill 1 data gaps were issued. . 2009-06-10 15:16:13.281 Session upkeep . 2009-06-10 15:16:13.281 Looking for network events . 2009-06-10 15:16:13.281 Timeout waiting for network events . 2009-06-10 15:16:13.281 Session upkeep . 2009-06-10 15:16:13.281 Looking for network events . 2009-06-10 15:16:13.281 Timeout waiting for network events . 2009-06-10 15:16:13.281 Closing connection. . 2009-06-10 15:16:13.281 Sending special code: 12 . 2009-06-10 15:16:13.281 Sent EOF message . 2009-06-10 15:16:13.281 Selecting events 0 for socket 1524