How to upload and download files from CA Support by command line FTP
search cancel

How to upload and download files from CA Support by command line FTP

book

Article ID: 46095

calendar_today

Updated On:

Products

Activator eTrust ALERT eTrust ALERT for CICS ALERT Archiver ASM/ARCHIVE VSE-ESA OPTION ASM/Archive AutoAction AutoSys Job Management Adapter for AutoXfer Process Automation Manager Portal ARCserve Backup Client CICSORT Clipper COBOLVISION Analyzer CTO Distributed Dart Datesolver/2000 Distribulink EUREKA:Object EPIC VM Enterprise Endevor for Unix Archiver Disk Option EPIC Backup EPIC Access Option EPIC SUPER SYS EPIC for CMS System EPIC TAPE MANAGEMENT eTrust Antivirus Gateway for CVP eTrust Content Inspection Gateway eTrust Content Inspection Gateway Option for MSP/ISA EE eTrust Antivirus Gateway for Netscape eTrust VPN Enterprise Edition FAQS VM FAQS Automated Systems Operation Global Subsystem (GSS) ANDYNE MAINFRAME MISCELLANEOUS Inventory Discovery Server ARS Resource Management JARS Resource Management ACC Option JOBDOC JOBWATCH Look MAZDAMON Service Management Affiliate Technology Partner Fee Service Management Basic Technology Partner Fee Metanet MF - MISC OLD CODES Omniguard for CICS Omniguard Opera Connect PREVAIL Paramount XP CAM FOR DIST SYS Paramount FOR NAVIGRAPH/HOST Research Planmacs Unlimited Project Planner Remote Console PREVAIL/XP-AUTOMATION PHASE 1 Remote Console PREVAIL/XP AUTOMATION-RDF/SSM Raps Research Raveler Generic Non Product SOLVE:EPS Unicenter NetMaster Network Management for SNA Alexandria Sort System SPOOLMAN Storage Mainframe SYSTEM/SCHEDULER SYSTEM/SCHEDULER VSE-ESA OPTION System/Manager Tape/Manager VSE-ESA OPTION Output Management Document Server TNG Network and Systems Management Agent for CA-Datacom DFSMShsm Workstation Network and Systems Management UNIX SMTP Unicenter Management for Microsoft Exchange SMTP Option UNICENTER II Unicenter Network and Systems Management Database Performance Monitor Option UNICENTER OSM Database Command Center Mnt VM:DBA VM:DB Admin VM:DB Center VM:DB Developer VM:DB Editor VM:DB Monitor VM:DB Reorganizer VM:DB Reporter VM:DB Restore VM:DB REXX VM:DB SQLMAP VM:DB Suite VM:Migrate VM:Monitor VM:Notekeeper V/Solver VM:Webserver for Officevision VM:Webserver Secure VM:Webgateway VM:Webserver XMENU for z/VM VISION:COMBO for TSO VISION:DAGER VISION:ELEVEN VISION:EIGHTY VISION:Online VISION:IQ for Informix Automate SUPPORT AUTOMATION- SERVER CA Service Desk Manager - Unified Self Service CA Service Desk Manager CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

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.

Environment

Release: SDMU0M99000-14.1-Service Desk Manager-Full License
Component: