Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Advanced Passive Upload
Topic Summary: Need to manually upload a file using passive mode
Created On: 05/09/2014 09:23 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 05/09/2014 09:23 AM
User is offline View Users Profile Print this message

Author Icon
AdrianAcuna
Journeyman (50-99)

Posts: 94
Joined: 05/29/2010

I have a client who is using AM8 to upload a file to a Linux server. The order of steps is

> logon
> CWD to /user/inbound
> SITE UMASK 117
> Upload file to directory using PASV

The problem I have is that when I use the advanced FTP Upload, it uses PORT mode, but this is going across firewalls and PORT mode is not an option. We MUST use passive mode. If I use the PASV mode before the advanced upload, it still sends PORT, which is what I expected.

Is there any known workaround for this using AM8? Upgrading is not an option at this point.



 Category Survey
AutoMate 8 version:
Windows version:


-------------------------
Adrian Acuña
Sales Engineer
 05/09/2014 09:30 AM
User is offline View Users Profile Print this message

Author Icon
JeanDelfosse
Supreme Guru (1000+)

Posts: 8883
Joined: 03/30/2005

Adrian,
under FTP Advanced you can issue any custom command. I suppose you could capitalize on it to send whatever commands are needed for a passive mode upload. Did you try it ?

 Category Survey
AutoMate 8 version:
Windows version:


-------------------------
Jean Delfosse - Automate Beta Tester
Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4
 05/09/2014 11:51 AM
User is offline View Users Profile Print this message

Author Icon
AdrianAcuna
Journeyman (50-99)

Posts: 94
Joined: 05/29/2010

I can force passive, but I cannot force an upload to use Passive. That is my problem. In order to transfer a file over FTP, you need to use a data channel. That data channel will either be an active port (PORT) or passive port (PASV).

I cannot force the client to use the advanced upload action to use the passive port because it automatically uses PORT, as it mentions in the documentation.

 Category Survey
AutoMate 8 version:
Windows version:


-------------------------
Adrian Acuña
Sales Engineer
 05/09/2014 02:33 PM
User is offline View Users Profile Print this message

Author Icon
Ricardo Castaneda
HelpSystems

Posts: 3424
Joined: 01/11/2008

Hi Adrian,

Would it be possible to post your code for further review?

 Category Survey
AutoMate 8 version:
Windows version:


-------------------------

Ricardo Castaneda | Principal Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700
 05/09/2014 09:40 PM
User is offline View Users Profile Print this message

Author Icon
JeanDelfosse
Supreme Guru (1000+)

Posts: 8883
Joined: 03/30/2005

I did not mean using the FTP Advanced Upload function, but the Advanced Custom STOR
This sequence
CWD
PASV
STOR

But in one case of mine, the simple FTP logon with passive mode specified, followed by an upload, makes it in passive mode. Hereunder the log

10/05/2014 14:59:15 : Réponse : 220 ProFTPD 1.3.3e Server (ProFTPD) [91.121.85.65]
10/05/2014 14:59:15 : Commande : USER vsa
10/05/2014 14:59:15 : Réponse : 331 Password required for vsa
10/05/2014 14:59:15 : Commande : PASS ***
10/05/2014 14:59:15 : Réponse : 230 User vsa logged in
10/05/2014 14:59:15 : Commande : FEAT
10/05/2014 14:59:15 : Réponse : 211-Features:
10/05/2014 14:59:15 : Réponse : MDTM
10/05/2014 14:59:15 : Réponse : MFMT
10/05/2014 14:59:15 : Réponse : TVFS
10/05/2014 14:59:15 : Réponse : UTF8
10/05/2014 14:59:15 : Réponse : MFF modify;UNIX.group;UNIX.mode;
10/05/2014 14:59:15 : Réponse : MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
10/05/2014 14:59:15 : Réponse : LANG en-US*;fr-FR;it-IT;ja-JP;ko-KR;ru-RU;zh-CN;zh-TW;bg-BG
10/05/2014 14:59:15 : Réponse : REST STREAM
10/05/2014 14:59:15 : Réponse : SIZE
10/05/2014 14:59:15 : Réponse : 211 End
10/05/2014 14:59:15 : Commande : OPTS UTF8 ON
10/05/2014 14:59:15 : Réponse : 200 UTF8 set to on
10/05/2014 14:59:15 : Commande : PWD
10/05/2014 14:59:15 : Réponse : 257 "/" is the current directory

10/05/2014 14:59:16 : Commande : PWD
10/05/2014 14:59:16 : Réponse : 257 "/" is the current directory
10/05/2014 14:59:16 : Commande : CWD httpdocs/img/mos/
10/05/2014 14:59:16 : Réponse : 250 CWD command successful
10/05/2014 14:59:16 : Commande : CWD /
10/05/2014 14:59:16 : Réponse : 250 CWD command successful
10/05/2014 14:59:16 : Commande : TYPE I
10/05/2014 14:59:16 : Réponse : 200 Type set to I
10/05/2014 14:59:16 : Commande : PASV <==== this is automatically generated by the upload step
10/05/2014 14:59:16 : Réponse : 227 Entering Passive Mode (91,121,85,65,171,130).
10/05/2014 14:59:16 : Commande : STOR httpdocs/img/mos/1900.jpg
10/05/2014 14:59:17 : Réponse : 150 Opening BINARY mode data connection for httpdocs/img/mos/1900.jpg
10/05/2014 14:59:17 : Réponse : 226 Transfer complete


 Category Survey
AutoMate 8 version:
Windows version:



Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)


-------------------------
Jean Delfosse - Automate Beta Tester
Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4


Edited: 05/10/2014 at 06:24 AM by JeanDelfosse
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 2390 guests browsing this forum, which makes a total of 2390 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog