I am trying to pull files off a Globalscape FTP server using Cloverleaf’s fileset-FTP protocol. I’ve tested from the command line of the Cloverleaf server (running on AIX) and I am able to list files on the Globalscape server using ls, dir, and nlist, though ls gives a nice concise list of files without all the associated meta data for the file(s). I was also able to get and put just fine from and to the server.
However, when I try to connect via a fileset-FTP protocol thread on Cloverleaf, Globalscape returns the following…
< 220 EFT Login – Wednesday, 1/5/2022 3:09:43 PM – Please enter valid credentials to continue
> USER valid_username
< 331 Password required for valid_username.
> PASS ********
< 230 Login OK. Proceed.
> PWD
< 257 “/” is current folder.
* Entry path is ‘/’
> EPSV
* Connect data stream passively
* ftp_perform ends with SECONDARY: 0
< 229 Entering Extended Passive Mode (|||59741|)
* Trying valid_IP_Address…
* TCP_NODELAY set
* Connecting to valid_IP_Address (valid_IP_Address) port 59741
* Connected to valid_IP_Address (valid_IP_Address) port 21 (#0)
> TYPE A
< 200 Type set to A.
> nlist
< 500 ‘NONE’: command not understood.
* RETR response: 500
* Remembering we are in dir “”
* Connection #0 to host valid_IP_Address left intact
[fset:read:ERR /0:2_m_nkply_ftp_i:01/05/2022 15:09:43] Error while trying to get directory listing.
[fset:read:ERR /0:2_m_nkply_ftp_i:–/–/—- –:–:–] Detailed error:RETR response: 500
[fset:read:ERR /0:2_m_nkply_ftp_i:–/–/—- –:–:–] Curl errCode:19 Curl error:FTP: couldn’t retrieve (RETR failed) the specified file
[pd :pdtd:INFO/1:2_m_nkply_ftp_i:01/05/2022 15:09:43] Set driver status to PD_STATUS_OPENING
[msg :Msg :DBUG/0:2_m_nkply_ftp_i:01/05/2022 15:09:45] msgFree 0xefff6e28 refCnt 1
[pd :pdtd:INFO/1:2_m_nkply_ftp_i:01/05/2022 15:09:45] Set driver status to PD_STATUS_ERROR
To try and find what command I can use to get a list of files in the directory, I set Dir List Command to “help” and then looked at the process log and got the following…
help
< 214-The following commands are recognized:
< ABOR
< ACCT
< ALLO
< APPE
< AUTH
< CDUP
< CWD
< DELE
< FEAT
< HELP
< LIST
< MKD
< MLSD
< MLST
< MODE
< NLST
< NOOP
< OPTS
< PASS
< PASV
< PBSZ
< PORT
< PROT
< PWD
< QUIT
< REIN
< REST
< RETR
< RMD
< RNFR
< RNTO
< SITE
< SIZE
< SMNT
< STAT
< STOR
< STOU
< STRU
< SYST
< TYPE
< USER
< XCUP
< XCWD
< XMKD
< XPWD
< XRMD
< EPRT
< EPSV
< MDTM
< MFMT
< CCC
< SSCN
< XNOP
< LANG
< CLNT
< 214-The special commands are recognized:
< COMB
< XCRC
< 214 HELP command successful.
It seems nlist is a valid command as far as Globalscape is concerned, unless Cloverleaf issues it.
Even if nlist worked, I think it would give me something like this…
ftp> nlist
-rw-rw-rw- 1 user group 93043 Dec 30 2021 polysmith_hl7
Am I correct in assuming that I would have to add a tcl proc in the Directory Parse field so I get a concise list of filenames the protocol the iterates through?
Thanks in advance,
Mike Strout