Script

FTP

The professional tool to automate FTP, SFTP, FTPS

and schedule FTP batch jobs

MENU MENU
Post here if you experience file transfer problems or unexpected errors.
I have two different scripts that have been working fine up until a few weeks ago and both are failing on the GETLIST command. The command will return no files, however a DOS session will work and show files as will any FTP client. These scripts connect to two different servers, one of which is internal and has not been modified or updated. I need assistance on this asap. Logs are below...

This one just fails but there are files there...

LOCALCHDIR("F:\smithfield\uploaded\")
Changing current local directory to F:\smithfield\uploaded\

OPENHOST("192.168.10.15","root",******)
Connecting to 192.168.10.15
Resolving host name "192.168.10.15"
Connecting to 192.168.10.15 Port: 21
Connected to 192.168.10.15.
220 uxsgf3 FTP server (Version 4.2 Wed Apr 11 11:55:13 CDT 2007) ready.
USER root
331 Password required for root.
PASS ***********
230-Last unsuccessful login: Tue Dec 31 12:06:05 CST 2013 on /dev/pts/1 from ool-6c3ab4ae.static.optonline.net
230-Last login: Mon Feb 3 13:44:05 CST 2014 on ftp from ::ffff:192.168.1.173
230 User root logged in.
SYST
215 UNIX Type: L8 Version: BSD-44
FEAT
500 'FEAT': command not understood.
TYPE I
200 Type set to I.
REST 0
350 Restarting at 0 Send STORE or RETRIEVE to initiate transfer.
PWD
257 "/" is current directory.
Connected.
Checking if MLSD works in this serverPORT 192,168,101,182,197,70
200 PORT command successful.
LIST
Timeout (30s).
Timeout

Client closed the connection.

CHDIR("/fds/CARGOTRAC/CHB/E204.DTL/")
***** CHDIR Error #18001: Not connected.

GETLIST(REMOTE_FILES,"*")
Getting file listing of current remote directory
***** GETLIST Error #18001: Not connected.

CLOSEHOST
***** CLOSEHOST Error #18001: Not connected.


This one runs but still shows no files on the GETLIST command...
LOCALCHDIR("F:\CLM_ETA\")
Changing current local directory to F:\CLM_ETA\

OPENHOST("mft.railinc.com","MARISOL",******)
Connecting to mft.railinc.com
Resolving host name "mft.railinc.com"
Connecting to 12.180.115.182 Port: 21
Connected to mft.railinc.com.
220 vrhstprd01 FTP server (SecureTransport 4.9.2) ready.
USER MARISOL
331 Password required for MARISOL.
PASS ***************
230 Virtual user MARISOL logged in.
SYST
215 UNIX Type: L8
FEAT
211-Extensions supported
AUTH
USER
PASS
QUIT
PORT
PASV
EPSV
TYPE
STRU
MODE
RETR
STOR
ABOR
DELE
CWD
XCWD
LIST
NLST
SITE
SYST
STAT
HELP
NOOP
MKD
XMKD
RMD
XRMD
PWD
XPWD
CDUP
XCUP
SIZE
MDTM
RNFR
RNTO
REST
FEAT
ADAT
PROT
PBSZ
APPE
XCRC
CCC
COMB
UTF8
211 END
Detected Server Software: Serv-U 4.x
OPTS UTF8 ON
500 'OPTS UTF8 ON': command not understood.
PWD
257 "/" is current directory.

Connected.

CHDIR("/CER/inbox/")
Changing current remote directory to /CER/inbox/
CWD /CER/inbox/
250 CWD command successful.
PWD
257 "/CER/inbox" is current directory.

GETLIST(REMOTE_FILES,"MARISOL_CLM*")
Getting file listing of current remote directory
TYPE I
200 Type set to I.
PASV
227 Entering Passive Mode (12,180,115,182,153,217)
Opening data connection to 12.180.115.182 Port: 39385
LIST -T
150 Opening BINARY mode data connection for file list.
226 Transfer complete.
1600909 bytes transferred. (124 KB/s) (00:00:12)

Found 0 files.

CLOSEHOST
QUIT
221 Goodbye.
Client closed the connection.

Disconnected.