Summary:
These steps allow you to upload and download files to CA Support using Windows command line FTP.
Background:
Using FTP directly to get to files on the CA Support FTP server is useful as it allows:
* Access to FTP files if CA Support is not reachable, providing the FTP server is available.
* Use of batch files.
* Illustrates a basic configuration that can be used with more advanced FTP clients.
If "retry" functionality is required, please use an FTP client.
Environment:
This document is written for a Windows command line, but may be used on any similar operating system which supports FTP.
Note that secure FTP (SFTP) is used by CA Support.
The SFTP server is "supportftp.ca.com".
It supports FTP over TLS Explicit Encryption.
The firewall needs to be configured to allow the data connection in port range 28000 - 28500.
Instructions:
Gather Information
You will need:
* Your eight digit issue number including leading zeros. E.g. 00001358
* Your site id including leading zeros. E.g. 000124
* A working CA Support login username and password.
* Meet the conditions given under "Environment."
Build the Required Paths
The full path to the files will need to be provided, as it is not possible to browse the FTP structure.
Files from Customer:
Use this path to upload and retrieve information loaded from a customer site to an issue.
<<siteid with leading zero>>/<<issue number with leading zeros>>/files_from_customer
General form: nnnnnnnn/zzzzzz/files_from_customer
Where nnnnnnnn is the site id starting with leading zeros, and zzzzzz is the site id with leading zeros.
Note: Older issues may have "-nn" appended to the issue number eg "-01".
Files from Customer example: 0000124/00001358/files_from_customer
Files from CA Support:
Use this path to upload and retrieve information loaded from CA Support to an issue.
<<siteid with leading zero>>/<<issue number with leading zeros>>/files_from_ca
General form: nnnnnnnn/zzzzzz/files_from_ca
Where nnnnnnnn is the site id starting with leading zeros, and zzzzzz is the site id with leading zeros.
Note: Older issues may have "-nn" appended to the issue number eg "-01".
Files from CA Support example: 0000124/00001358/files_from_ca
Connecting to the CA Support FTP Server
Connection to the FTP Server is required for uploading or downloading.
You must connect using "binary" mode.
Tip: Use of "hash" and "prompt" are recommended.
1) At the command prompt, change to the directory either:
* Where the files to upload are located
* Or to where you wish to download the files to.
2) Type: ftp supportftp.ca.com
3) Sign on with the same account details (user and password) used for support.ca.com. Eg User "[email protected]" and password.
4) Type "bin" to change to binary upload mode.
5) Type "prompt" to suppress prompts.
6) Type "hash" to display upload counter.
Toggles printing a hash (#) for each 2K data block transferred.
7) Useful commands:
* Type "pwd" to confirm the path that you are at.
* Type "!dir" to see the list of files in the source computer's directory .
* Type "ls" to see the list of files at the FTP server.
NOTE:
* Customers typically upload to "files_from_customer" location, while CA Support Engineers will download from this location.
* Customers typically download from "files_from_ca" location, while CA Support Engineers will upload to this location.
* These instructions are written from the customer viewpoint.
* You may switch these around, such as a customer downloading from "files _from_customer" location. If so, please change the instructions to point to this location.
Uploading Files to CA Support with FTP.
These instructions are for FTP from a command line.
CAUTION: The FTP command line typically does NOT support “retry functionality,” so use an FTP client if this feature is needed, or for the reason of having an interface.
1) At the source computer's command prompt, change to the directory where the files to upload are located as above.
2) Change to FTP path to the "Files from Customer" location given earlier eg:
cd 0000124/00001358/files_from_customer
Where “0000124” is replaced with your site id, and “00001358” with your issue number.
NOTE: The site id and issue number must be entered together as one string. You cannot progressively "cd" into this directory location.
3) (Optional) Type "pwd" to confirm the path that you are at if needed.
4) Type "bin" to change to binary upload mode, if not already done.
5) (Optional) Type "prompt" to suppress prompts, if not already done.
6) (Optional) Type "hash" to display upload counter, if not already done.
7) (Optional) Type "!dir" to see the list of files in the source computer's directory, to see what you will be uploading.
8) Type "put " or "mput *" to transfer single file/all files
Include filenames with spaces inside double-quotes eg:
put "My file.txt"
Tip: The full path may be specified if source files are not in the current directory.
9) (Optional). Type "ls" to confirm the file/s are uploaded.
10) Type "bye" to leave ftp.
Downloading Files from CA Support with FTP.
These instructions are for FTP from a command line.
CAUTION: The FTP command line typically does NOT support “retry functionality,” so use an FTP client if this feature is needed, or for the reason of having an interface.
The best way to get all files for an issue in one hit is to use FTP and the "mget" command:
1) Make a folder on the local host to download files from the CA Support FTP server, and change to it.
Eg With Windows Explorer or from a command prompt "mkdir <new dir name>"
Tip: Use Windows Explorer “Command Prompt here” to enter a command prompt inside the directory where the files will go, or otherwise navigate to this location.
eg cd <new dir name>
2) Change to FTP path to the "Files from Customer" location given earlier eg:
cd 0000124/00001358/files_from_ca
Where “0000124” is replaced with your site id, and “00001358” with your issue number.
NOTE: The site id and issue number must be entered together as one string. You cannot progressively "cd" into this directory location.
3) (Optional) Type "pwd" to confirm the path that you are at if needed.
4) Type "bin" to change to binary upload mode, if not already done.
5) (Optional) Type "prompt" to suppress prompts, if not already done.
6) (Optional) Type "hash" to display upload counter, if not already done.
7) (Optional) Type "ls" to see the list of files at the FTP site that are available for download.
8) Type "get" or "mget *" to transfer single file/all files
Include filenames with spaces inside double-quotes eg:
put "My file.txt"
Tip: The full path may be specified if source files are not in the current directory.
9) (Optional). Type "ls" to confirm the file/s are uploaded.
10) Type "bye" to leave ftp.
Full Example of a Download from the FTP Server
This shows connecting to the server and downloading one file.
C:\>mkdir download_test
C:\>cd download_test
C:\download_test>ftp supportftp.ca.com
Connected to supportftp.ca.com.
220-Hello, Welcome to SupportFTP.ca.com-b
220-
220 usilap1064b FTP server (SecureTransport 5.1) ready.
User (supportftp.ca.com:(none)): <USER LOGIN HERE>
331 Password required for <USER LOGIN>
Password: <PASSWORD HERE>
230 Virtual user <USER HERE> logged in.
ftp> hash
Hash mark printing On ftp: (2048 bytes/hash mark) .
ftp> bin
200 Type set to I.
ftp> prompt
Interactive mode Off .
ftp> pwd
257 "/" is current directory.
ftp> cd 0000124/00001358/files_from_customer
250 CWD command successful.
ftp> pwd
257 "/0000124/00001358/files_from_customer" is current directory.
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
00001358_HAEMI01W7_eem_2_CA_RE.zip
00001358_HAEMI01W7_upm_1_CA_RE.zip
00001358_haemi01-U107895_eem_1_CA_RE.zip
1 - in frame.png
2 - in frame.png
3 - in frame.png
300-294795 1_12 date out of order.png
300-294795 1_12 date out of order_1.png
300-294795 1_12 date out of order_2.png
.
. <SNIP!>
.
testfile.txt
vse8.8.0.core_install_030615_123004.log
##226 Transfer complete.
ftp: 4910 bytes received in 0.31Seconds 16.05Kbytes/sec.
ftp> !dir
Volume in drive C has no label.
Volume Serial Number is AC55-8948
Directory of C:\download_test
31/08/2016 11:20 AM <DIR> .
31/08/2016 11:20 AM <DIR> ..
0 File(s) 0 bytes
ftp> get jre-sectab.png
200 PORT command successful.
150 Opening BINARY mode data connection for jre-sectab.png.
########226 Transfer complete.
ftp: 17742 bytes received in 0.70Seconds 25.31Kbytes/sec.
ftp> !dir
Volume in drive C has no label.
Volume Serial Number is AC55-8948
Directory of C:\download_test
31/08/2016 11:24 AM <DIR> .
31/08/2016 11:24 AM <DIR> ..
31/08/2016 11:24 AM 17,742 jre-sectab.png
1 File(s) 17,742 bytes
ftp> bye
221 Goodbye.
C:\download_test>dir
Volume in drive C has no label.
Volume Serial Number is AC55-8948
Directory of C:\download_test
31/08/2016 11:24 AM <DIR> .
31/08/2016 11:24 AM <DIR> ..
31/08/2016 11:24 AM 17,742 jre-sectab.png
1 File(s) 17,742 bytes
End of example.