[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FTPAPI quit working
Try changing passive mode with FTPAPI. I don't know the default.
Sent from my iPhone
> On Nov 8, 2016, at 3:08 PM, Jeff Crosby <jlcrosby@xxxxxxxxxxxxxxxx> wrote:
>
> I made this script:
> dilgard <password>В В В В В В В В В В В В В В В
> sendepsv 0 В В В В В В В В В В В В В В В В В В В
> cwd In В В В В В В В В В В В В В В В В В В В В В
> namefmt 1 В В В В В В В В В В В В В В В В В В В
> put //UserFolders/PurchaseOrders/PO02376452.csv
> quit В В В В В В В В В В В В В В В В В В В В В В
> which gave me these result messages:
> Output redirected to a file. В В В В В В В В В В В В В В
> В В В В В В В В В В В В В
> Input read from specified override file. В В В В В В В В В В
> В В В В В В В В В В В
> Connecting to hostВ [1]blahblahblah.netВ at address 111.222.333.444
> using port 21.
> 220 blahblahblah, Inc. FTP Server В В В В В В В В В В В В
> В В В В В В В В В В В В В В
> Enter login ID (jeff): В В В В В В В В В В В В В В В В
> В В В В В В В В В В В В В В
> 331 Password required for dilgard. В В В В В В В В В В В В
> В В В В В В В В В В В В
> 230 User logged in. В В В В В В В В В В В В В В В В В
> В В В В В В В В В В В В В В
> Windows_NT В В В В В В В В В В В В В В В В В В В В
> В В В В В В В В В В В В В В В В
> Enter an FTP subcommand. В В В В В В В В В В В В В В В
> В В В В В В В В В В В В В В
>> sendepsv 0 В В В В В В В В В В В В В В В В В В В
> В В В В В В В В В В В В В В В В
> SENDEPSV is off. В В В В В В В В В В В В В В В В В В
> В В В В В В В В В В В В В В В
> Enter an FTP subcommand. В В В В В В В В В В В В В В В
> В В В В В В В В В В В В В В
>> cwd In В В В В В В В В В В В В В В В В В В В В В
> В В В В В В В В В В В В В В В В
> 250 CWD command successful. В В В В В В В В В В В В В В
> В В В В В В В В В В В В В
> Enter an FTP subcommand. В В В В В В В В В В В В В В В
> В В В В В В В В В В В В В В
>> namefmt 1 В В В В В В В В В В В В В В В В В В В В
> В В В В В В В В В В В В В В В
> 500 'SITE NAMEFMT 1': command not understood В В В В В В В В В
> В В В В В В В В В В
> Client NAMEFMT is 1. В В В В В В В В В В В В В В В В В
> В В В В В В В В В В В В В В
> Enter an FTP subcommand. В В В В В В В В В В В В В В В
> В В В В В В В В В В В В В В
>> put //UserFolders/PurchaseOrders/PO02376452.csv В В В В В В В
> В В В В
> 227 Entering Passive Mode (206,71,212,2,221,48). В В В В В В В
> В В В В В
> 125 Data connection already open; Transfer starting. В В В В В В
> В В В В
> 226 Transfer complete. В В В В В В В В В В В В В В В В
> В В В В В В В В В
> В В 326 bytes transferred in 0.015 seconds. Transfer rate 22.255
> KB/sec.
> Enter an FTP subcommand. В В В В В В В В В В В В В В В
> В В В В В В В В В
>> quit В В В В В В В В В В В В В В В В В В В В В
> В В В В В В В В В В В В
> 221 Goodbye.
> I then used FileZilla and "saw" it in their In directory.В Within a
> few minutes it disappeared, meaning they processed it.В I sent an
> email and am waiting to hear all is well with the file.
> But that proves that it can be sent from the IBM i.
>
> On Tue, Nov 8, 2016 at 2:17 PM, Michael Ryan <[2]michaelrtr@xxxxxxxxx>
> wrote:
>
> В В Can you use FTP from the i command line? Try that, and if you
> can't
> В В connect, try setting (or unsetting) passive mode.
> В В On Tue, Nov 8, 2016 at 1:51 PM, Jeff Crosby
> В В <[1][3]jlcrosby@xxxxxxxxxxxxxxxx> wrote:
> В В В ГВ Г Forgot to add one thing.
> В В В ГВ Г There is a 3rd place we use FTPAPI.ГГВ We FTP files
> to a couple
> В В В of
> В В В ГВ Г workstations on the LAN (i.e., inside the firewall)
> and that
> В В В works.
> В В В ГВ Г On Tue, Nov 8, 2016 at 1:12 PM, Jeff Crosby
> В В В ГВ Г <[1][2][4]jlcrosby@xxxxxxxxxxxxxxxx> wrote:
> В В В ГВ Г All,
> В В В ГВ Г IBM i 7.1, up to date on PTFs.
> В В В ГВ Г We've been using FTPAPI for 8+ years for 2 purposes:
> В В В ГВ Г 1) FTP purchase orders to a single vendor several
> times per
> В В В week
> В В В ГВ Г 2) FTP a sales report once a week to a totally
> unrelated vendor
> В В В ГВ Г Starting last Wednesday, the FTPing of those purchase
> orders
> В В В stopped
> В В В ГВ Г working.ГГВ What happens is the connection is made,
> sign on
> В В В occurs, and
> В В В ГВ Г when the "STOR" command is issued, it just stops. Г It
> В В В literally sat
> В В В ГВ Г there from 8:12am to almost 5pm.ГГВ The reason I saw
> it is that
> В В В it
> В В В ГВ Г started interfering with end-of-day activities.
> В В В ГВ Г Here is the IBM i joblog of a retry attempt of mine:
> В В В ГВ Г Job . . : ГГВ JLCROSBYC1 ГГВ Г User . . : ГГВ JEFF
> ГГВ ГГВ ГГ
> В В В ГГВ Г Number .
> В В В ГВ Г . . : ГГВ 170213
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ
> ГГВ ГГВ ГГВ ГГВ ГГ
> В В В ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ
> ГГВ ГГВ Г Г
> В В В ГВ Г 3>> PO09 VNDNR(02378) WEEK(44) DIGIT(1) POSTYLE(*DOT)
> ГГВ ГГ
> В В В ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ Г Г
> В В В ГВ Г ГГВ ГГВ ГГВ Г 143 - CALL PGM(PO09) ГГВ ГГВ ГГВ
> ГГВ Г /* The
> В В В CALL command
> В В В ГВ Г contains parameters
> В В В ГВ Г ГГВ ГГВ ГГВ */ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ
> ГГВ ГГВ ГГВ ГГВ ГГ
> В В В ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ
> ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ Object PO02378441 in QTEMP type *FILE
> created. ГГВ ГГ
> В В В ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ 1 objects duplicated. ГГВ ГГВ ГГВ ГГВ
> ГГВ ГГВ ГГВ ГГ
> В В В ГГВ ГГВ ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ Г Г
> В В В ГВ Г ГГВ ГГВ Ownership of object QCPEXTEMPS in QTEMP type
> *USRSPC
> В В В changed. Г
> В В В ГВ Г ГГВ ГГВ ГГВ Г Г
> В В В ГВ Г ГГВ ГГВ Ownership of object QACP170213 in QTEMP type
> *USRSPC
> В В В changed. Г
> В В В ГВ Г ГГВ ГГВ ГГВ Г Г
> В В В ГВ Г ГГВ ГГВ Ownership of object QACEXFLD12 in QTEMP type
> *USRSPC
> В В В changed. Г
> В В В ГВ Г ГГВ ГГВ ГГВ Г Г
> В В В ГВ Г ГГВ ГГВ Ownership of object Q4T9TT02 in QTEMP type
> *FILE
> В В В changed. ГГВ Г
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ Г Г
> В В В ГВ Г ГГВ ГГВ All records copied from file PO02378441 in
> QTEMP. ГГ
> В В В ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ ГГВ Г Г
> В В В ГВ Г ГГВ ГГВ Object changed. ГГВ ГГВ ГГВ ГГВ ГГВ
> ГГВ ГГВ ГГВ ГГВ ГГ
> В В В ГГВ ГГВ ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ
> Г Г
> В В В ГВ Г ГГВ ГГВ Object changed. ГГВ ГГВ ГГВ ГГВ ГГВ
> ГГВ ГГВ ГГВ ГГВ ГГ
> В В В ГГВ ГГВ ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ
> Г Г
> В В В ГВ Г ГГВ ГГВ Object PO02378441 in QTEMP type *FILE
> deleted. ГГВ ГГ
> В В В ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ 0: FTPAPI version 2.2 released on 2005-09-20
> ГГВ ГГ
> В В В ГГВ ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ Г 0: 220 **********, Inc. FTP Server ГГВ
> ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ Г 0: > USER dilgard ГГВ ГГВ ГГВ ГГВ ГГВ
> ГГВ ГГВ ГГВ ГГ
> В В В ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ Г 0: 331 Password required for dilgard. ГГВ
> ГГВ Г
> В В В ГВ Г ГГВ ГГВ Г 0: > PASS ********** ГГВ ГГВ ГГВ ГГВ
> ГГВ ГГВ ГГВ ГГ
> В В В ГГВ ГГВ Г Г
> В В В ГВ Г ГГВ ГГВ Г 0: 230 User logged in. ГГВ ГГВ ГГВ ГГВ
> ГГВ ГГВ ГГ
> В В В ГГВ ГГВ Г Г
> В В В ГВ Г ГГВ ГГВ Г 0: > CWD In ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ
> ГГВ ГГВ ГГВ ГГ
> В В В ГГВ ГГВ ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ Г 0: 250 CWD command successful. ГГВ ГГВ
> ГГВ ГГВ ГГВ Г
> В В В Г
> В В В ГВ Г ГГВ ГГВ Г 0: > TYPE I ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ
> ГГВ ГГВ ГГВ ГГ
> В В В ГГВ ГГВ ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ Г 0: 200 Type set to I. ГГВ ГГВ ГГВ ГГВ
> ГГВ ГГВ ГГВ ГГ
> В В В ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ Г 0: > PORT 192,168,0,1,74,7 ГГВ ГГВ ГГВ
> ГГВ ГГВ ГГ
> В В В ГГВ Г Г
> В В В ГВ Г ГГВ ГГВ Г 0: 200 PORT command successful. ГГВ ГГВ
> ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ Г 0: > STOR PO02378441.csv ГГВ ГГВ ГГВ
> ГГВ ГГВ ГГВ ГГ
> В В В ГГВ Г Г
> В В В ГВ Г ГГВ ГГВ Г 0: 150 Opening BINARY mode data
> connection.
> В В В ГВ Г and that's it.ГГВ That was last Wednesday.ГГВ The
> WRKACTJOB
> В В В display of
> В В В ГВ Г that job is this:
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ Г
> Current ГГВ ГГВ ГГ
> В В В ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ Г
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ Г
> В В В ГВ Г Г Opt Г Subsystem/Job Г User ГГВ ГГВ ГГВ Г Type Г
> CPU % Г
> В В В Function ГГВ Г
> В В В ГВ Г ГГВ Г Status
> В В В ГВ Г ГГВ ГГВ ГГВ ГГВ JLCROSBYC1 ГГВ JEFF ГГВ ГГВ
> ГГВ Г INT ГГВ ГГВ Г
> В В В .0 Г CMD-PO09 Г
> В В В ГВ Г ГГВ ГГВ ГГВ TIMWГ
> В В В ГВ Г The help text for status TIMW says:
> В В В ГВ Г TIMW ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ
> ГГВ ГГВ ГГВ ГГ
> В В В ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ ГГВ Г
> В В В ГВ Г Г Г
> В В В ГВ Г ГГВ ГГВ The initial thread of the job is waiting for
> aГ
> В В В ГВ Г ГГВ ГГВ time interval to end.
> В В В ГВ Г What the IBM i job does is 1) build a file in library
> QTEMP, 2)
> В В В copy
> В В В ГВ Г that file to the IFS as a .csv file, and 3) FTP that
> .csv file
> В В В to the
> В В В ГВ Г vendor.
> В В В ГВ Г We successfully sent one Tuesday morning (the day
> before) from
> В В В the IBM
> В В В ГВ Г i.
> В В В ГВ Г Tuesday night the firmware was updated in the Meraki
> MX60
> В В В router.ГГВ So
> В В В ГВ Г that was the first place we thought of.ГГВ ButГ I
> copied the
> В В В .csv file
> В В В ГВ Г to my desktop and was able to send it via FileZilla
> through
> В В В that same
> В В В ГВ Г router.
> В В В ГВ Г The once a week sales report gets FTP'ed on
> Fridays.ГГВ It also
> В В В failed,
> В В В ГВ Г but at least the joblog had this: Г "425 Unable to
> build data
> В В В ГВ Г connection: Connection refused".ГГВ I copied that
> file to my PC
> В В В and was
> В В В ГВ Г able to send it via FileZilla as well.
> В В В ГВ Г We upgraded to FTPAPI 2.3 and it still fails.ГГВ The
> IBM i was
> В В В rebooted
> В В В ГВ Г Saturday as part of a SAVE 21 and it still fails. Г
> (Not that I
> В В В think
> В В В ГВ Г reboots help the IBM i like it does Windows.)
> В В В ГВ Г We send/receive files from/to the IBM i via FTP every
> day and
> В В В every
> В В В ГВ Г night.ГГВ The ONLY ones failing are those being sent
> via
> В В В FTPAPI.
> В В В ГВ Г Any suggestions?
> В В В ГВ Г Thanks.
> В В В ГВ Г --
> В В В ГВ Г [uc?export=download&id=
> 0B0OlGhlpA1wISUpiZ2FfSGYxb28&
> В В В amp;revid=0B0Ol
> В В В ГВ Г GhlpA1wIVDd6WXFUYWorNVFaTTM5TUpDRWY2SnF4MjJrPQ]
> В В В ГВ Г Jeff Crosby
> В В В ГВ Г VP Information Systems
> В В В ГВ Г UniPro FoodService/Dilgard
> В В В ГВ Г P.O. Box 13369
> В В В ГВ Г Ft. Wayne, IN 46868-3369
> В В В ГВ Г [2]260-422-7531
> В В В ГВ Г [3][3][5]www.dilgardfoods.com
> В В В ГВ Г The opinions expressed are my own and not necessarily
> the
> В В В opinion of my
> В В В ГВ Г company.ГГВ Unless I say so.
> В В В ГВ Г --
> В В В ГВ Г [uc?export=download&id=
> 0B0OlGhlpA1wISUpiZ2FfSGYxb28&
> В В В amp;revid=0B0Ol
> В В В ГВ Г GhlpA1wIVDd6WXFUYWorNVFaTTM5TUpDRWY2SnF4MjJrPQ]
> В В В ГВ Г Jeff Crosby
> В В В ГВ Г VP Information Systems
> В В В ГВ Г UniPro FoodService/Dilgard
> В В В ГВ Г P.O. Box 13369
> В В В ГВ Г Ft. Wayne, IN 46868-3369
> В В В ГВ Г 260-422-7531
> В В В ГВ Г [4][4][6]www.dilgardfoods.com
> В В В ГВ Г The opinions expressed are my own and not necessarily
> the
> В В В opinion of my
> В В В ГВ Г company.ГГВ Unless I say so.
> В В В References
> В В В ГВ Г 1. mailto:[5][7]jlcrosby@xxxxxxxxxxxxxxxx
> В В В ГВ Г 2. tel:[6]260-422-7531
> В В В ГВ Г 3. [7][8]http://www.dilgardfoods.com/
> В В В ГВ Г 4. [8][9]http://www.dilgardfoods.com/
> В В В ------------------------------------------------------------
> В В В -----------
> В В В This is the FTPAPI mailing list.ГВ To unsubscribe, please
> go to:
> В В В [9][10]http://www.scottklement.com/mailman/listinfo/ftpapi
> В В В ------------------------------------------------------------
> В В В -----------
> References
> В В 1. mailto:[11]jlcrosby@xxxxxxxxxxxxxxxx
> В В 2. mailto:[12]jlcrosby@xxxxxxxxxxxxxxxx
> В В 3. [13]http://www.dilgardfoods.com/
> В В 4. [14]http://www.dilgardfoods.com/
> В В 5. mailto:[15]jlcrosby@xxxxxxxxxxxxxxxx
> В В 6. tel:[16]260-422-7531
> В В 7. [17]http://www.dilgardfoods.com/
> В В 8. [18]http://www.dilgardfoods.com/
> В В 9. [19]http://www.scottklement.com/mailman/listinfo/ftpapi
> ------------------------------------------------------------
> -----------
> This is the FTPAPI mailing list.В To unsubscribe, please go to:
> [20]http://www.scottklement.com/mailman/listinfo/ftpapi
> ------------------------------------------------------------
> -----------
>
> --
> [uc?export=download&id=0B0OlGhlpA1wISUpiZ2FfSGYxb28&revid=0B0Ol
> GhlpA1wIVDd6WXFUYWorNVFaTTM5TUpDRWY2SnF4MjJrPQ]
> Jeff Crosby
> VP Information Systems
> UniPro FoodService/Dilgard
> P.O. Box 13369
> Ft. Wayne, IN 46868-3369
> 260-422-7531
> [21]www.dilgardfoods.com
> The opinions expressed are my own and not necessarily the opinion of my
> company.В Unless I say so.
>
> References
>
> 1. http://blahblahblah.net/
> 2. mailto:michaelrtr@xxxxxxxxx
> 3. mailto:jlcrosby@xxxxxxxxxxxxxxxx
> 4. mailto:jlcrosby@xxxxxxxxxxxxxxxx
> 5. http://www.dilgardfoods.com/
> 6. http://www.dilgardfoods.com/
> 7. mailto:jlcrosby@xxxxxxxxxxxxxxxx
> 8. http://www.dilgardfoods.com/
> 9. http://www.dilgardfoods.com/
> 10. http://www.scottklement.com/mailman/listinfo/ftpapi
> 11. mailto:jlcrosby@xxxxxxxxxxxxxxxx
> 12. mailto:jlcrosby@xxxxxxxxxxxxxxxx
> 13. http://www.dilgardfoods.com/
> 14. http://www.dilgardfoods.com/
> 15. mailto:jlcrosby@xxxxxxxxxxxxxxxx
> 16. tel:260-422-7531
> 17. http://www.dilgardfoods.com/
> 18. http://www.dilgardfoods.com/
> 19. http://www.scottklement.com/mailman/listinfo/ftpapi
> 20. http://www.scottklement.com/mailman/listinfo/ftpapi
> 21. http://www.dilgardfoods.com/
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------