CFT Frequently-Asked Questions
Pour plus d'information au sujet de cette faq, contactez Jean-Louis BICQUELET
FAQ Revised: Wednesday 10 August 2016 18:29:18
CFT est utilisé dans les systèmes informatiques complexes et multi plate-formes qui souhaitent transmettre des fichiers en appliquant des contrôles (sécurité, accusé de réception, reprise après interruption, trace des erreurs).
Il peut être utilisé avecTranspac en X.25, mais maintenant il supporte TCP/IP ce qui lui permet d'être utilisé avec Internet
de manière sécurisée. Enfin CFT utilise des protocoles d'échanges comme PESIT ou ETEBAC (protocoles français utilisés pour les échanges bancaires), ce
qui explique sont utilisation dans le monde banquaire.
$ cftstop Starting CFT with IDPARM "IDPARM0" and 64 transferts active Starting CFTMAIN ... started Starting CFTTCOM ... started Starting CFTTPRO ... started Starting CFTLOG ... started Starting CFTTCPS ... started CFT started correctly. CFTMAIN process id is 385208.
cftstop –kill
$ cftutil about
CFT informations :
* product = CFT/V2/UAIX 43xL
* version = 230
* level = m-1-25
* upgrade = 6014 6052 6056 6149 6155 6214 6220 6275 6302 6311 6374 6417
6666 6687 6706 6810 6814 6872
Host informations :
* model = 4C
* cpuid = 1ADFCF1ADFCF1ADF
CFTU00I ABOUT _ Correct ()
|
Désignation |
Commentaires |
|
filapi |
contient les fichiers liés à l’interface de programmation CFT |
|
fildat |
Fichiers base de données de CFT |
|
filexe |
Exécutables de CFT |
|
filexit |
fichiers liés aux différents EXITs de CFT |
|
filinst |
répertoire spécifique à la procédure d’installation regroupant divers fichiers de configuration de test |
|
filint |
fichiers base de données des fonctions interactives |
|
fillog |
Fichiers journaux d’activité ou trace de CFT |
|
filpub |
répertoire tampon pour les fichiers émis et reçus |
|
filusr |
répertoire contenant les fichiers de commandes CFT |
$ cd /cft/aix43 $ tar xvf /prd/home/COPIE_CD/CD_CFT/aix43.tar $ ./cft_instal fr $ cd /cft/cft230/filinst $ cftinit cftparm.cpuid cftidf.cft cftpart.cft | grep errorIl doit y avoir 0 error
$ cftstart
cd XIP
./uninstaller.bin
CFTPARM ID = 'IDPARM0',
ACCNT = 'ACCNT0',
BUFSIZE = '4096',
CAT = 'CAT0',
DEFAULT = 'DEFAUT',
EXECRE = '/apps/products/cft/filinst/recv_ko.cmd',
EXECRF = '/apps/products/cft/filinst/recv_ok.cmd',
EXECRM = '/apps/products/cft/filinst/recvm.cmd',
EXECSE = '/apps/products/cft/filinst/send_ko.cmd',
EXECSF = '/apps/products/cft/filinst/send_ok.cmd',
FBUFSIZE = '0',
KEY = 'XXXFAUXXXXPXDHXXXSX9X1XXXLN97XXXFAQXXX2XX',
LOG = 'LOG0',
MAXTASK = '16',
MAXTRANS = '8',
NPART = 'XENA',
PART = 'XENA',
PARTFNAM = '_CFTPART',
CTLPASSW = 'NO',
TRANTASK = '8',
USERCTRL = 'NO',
WAITRESP = '100',
WAITTASK = '1441',
COM = ( 'COM0'),
NET = ( 'TCPIP'),
PROT = ( 'PESITTCP'),
LENAPPL = '8',
RCVALLER = 'STOP',
SSLMTASK = '16',
SSLTTASK = '16',
SSLWTASK = '1441',
SSLWRESP = '100',
PKIPASSW = 'PKIPASSW',
TRKPART = 'UNDEFINED',
TRKSEND = 'UNDEFINED',
TRKRECV = 'UNDEFINED',
MODE = 'REPLACE'
Il faut ensuite faire un update de la configuration, ce qui demande un arrêt de CFT:
#cftstop #cftupdate CFTPARM.tcp
la réponse obtenue est du style:
============================================ CFTU00I CFTPARM _ Correct (......... CFTU00I RETURN _ Correct (CODE=0) CFTU20I Number of Command(s) 1 CFTU20I Number of error(s) 0 cftupdate complete.
On relance par cftstart
$ cftstop $ cd /cft/cft230/filinst $ cftinit cftparm.cpuid cftidf.cft cftpart.cft | grep errorIl doit y avoir 0 error
$ cftstart
$CFTUTIL cftext type=part,id=INDUS
CFTU20I
CFTU20I CFT/V2/UAIX 43xL
CFTU20I Version 230 20040401
CFTU20I (C) Copyright SOPRA 1993-2001
CFTU20I ====> Starting Session on 04/04/2005 Time is 11:39:38
CFTU20I
CFTPART ID = 'INDUS',
SAUTH = '*',
RAUTH = '*',
/* XLATE = '',*/
CODE = 'ASCII',
OPEN = 'NO',
IMAXTIME = '23595999',
IMINTIME = '00000000',
OMAXTIME = '23595999',
OMINTIME = '00000000',
/* IPART = '',*/
NRPART = 'XXXXXXA0',
NSPART = 'XXXXXXQ0',
NRPASSW = 'CFT',
NSPASSW = 'CFT',
COMMENT = 'PARTITION AIX INDUS',
SYST = 'UNIX',
COMMUT = 'YES',
/* GROUP = '',*/
/* FPREFIX = '',*/
/* IDF = '',*/
STATE = 'ACTIVEBOTH',
PROT = ( 'PESITANY'),
SAP = ( '57519'),
/* SSL = '',*/
MODE = 'REPLACE'
CFTU00I CFTEXT _ Correct (type=part,id=INDUS)
CFTU20I Number of Command(s) 1
CFTU20I Number of error(s) 0
CFTU20I Ending Session on 04/04/2005 Time is 11:39:38
CFTU20I Session active for 0:00:00
cftutil listpart
cftutil listpart type=X25
cftutil listparm type=parm | grep key
CFT master key KEY = XXXFAQZQM1XXXIL9A7IXXXSOTLNXXXIZFAQWXXXE7
cftutil listparm type=PROT
cftutil listparm type=CAT
CFTCAT - Catalog file command
-------------------------------
CAT0
Catalog file name FNAME =
*_CFTCATA
Share file option SHARE = NO
Scan file frequency WSCAN = 1 mn
Update file frequency UPDAT = 0
Cache memory size CACHE = 512
Purge time TIMEP = 23595999
Action on error RKERROR = KEEP
Optimization flag OPTIMIZE = NONE
Command retention period in catalog (in days)
---------------------------------------------
State Send Receive
----- ---- -------
(D)isp,(C)urrent,(H)old,(K)eep SH = 90 RH = 90
(T)erminated ST = 90 RT = 90
e(X)ecuted SX = 45 RX = 45
Notification of log events to NTF
--------------------------------------------
Notification to NTF NTF = NO
Notify State transitions NTFSTATE = CDHKTX
Track Control System name TCSNAME = SCOPE_XFER_QLT
Event Log System name ELSNAME = SCOPE_LOG_QLT
CFTU00I LISTPARM _ Correct (type=CAT)
cftutil listparm type=LOG
CFTLOG - Log file command
---------------------------
LOG0
Log file name FNAME =
*_CFTLOG
Alternate log file name AFNAME =
*_CFTLOGA
Maximum record length LENGTH = 133
Switching from current to alternate log file
--------------------------------------------
Switch time SWITCH = 23:59:00
Switch nb records MAXREC = 0
Execute procedure EXEC =
*/apps/products/cft/filinst/PROD/OUTILS_CFT/switch_log.ksh
Which messages to operator OPERMSG = 0
Operator identifier NOTIFY =
Message level CONTENT = FULL
Notification of log events to NTF
--------------------------------------------
Notification to NTF NTF = NO
Messages transitions type NTFTYP = EF
Event Log System name ELSNAME = SCOPE_LOG_QLT
Messages for alert NTFALERT =
cftutil listparm type=NET
CFTNET - Network ressources command
-------------------------------------
NETX25
Ressource type TYPE = X25
Max. sessions MAXCNX = 64
Ressource class CLASS = 4
Call direction CALL = INOUT
Ressource identifier LINEID = CIOX25.0
Packet size PACKETSZ = 128
Packet window PACKETW = 3
Highest logic channel MAXLCH = 0
Lowest logic channel MINLCH = 0
Configuration file name NETCFG =
Network program NETPGM = NETX25
Network object prefix NETPFX =
Speed SPEED = 9600
Address ADDR =
Ax25 mailbox AX25MBX =
Ax25 node AX25NODE =
Controler name CTLR =
Network profile PROFILE = X25
TCPIP
Ressource type TYPE = TCP
Max. sessions MAXCNX = 32
Ressource class CLASS = 1
Call direction CALL = INOUT
Network reference HOST = BATMAN.WARNER.TM.FR
Range of ports
--------------
Lower port value LOWPORT = 5000
Higher port value HIGHPORT = 65535
Port number PORT =
Network access
--------------
Intermediate network INET =
Protocol identifier PROTOCOL =
User identifier USERID =
Associated parameters PARM =
*
*
CFTU00I LISTPARM _ Correct (type=NET)
$ CFTUTIL send part=DEV, type=message,idm=test, msg=hello CFTU20I CFTU20I CFT/V2/UAIX 43xL CFTU20I Version 230 20040401 CFTU20I (C) Copyright SOPRA 1993-2001 CFTU20I ====> Starting Session on 04/04/2005 Time is 11:14:17 CFTU20I CFTU00I SEND _ Correct (part=DEV,type=message,idm=test,msg=hello) CFTU20I Number of Command(s) 1 CFTU20I Number of error(s) 0 CFTU20I Ending Session on 04/04/2005 Time is 11:14:17 CFTU20I Session active for 0:00:00
$ cftutil send part=PREX, fname=smit.log ,idf=smit CFTU00I SEND _ Correct (part=PREX,fname=smit.log,idf=smit)
cftcatab
Date = 04/04/2005 Time = 11:15:44
Partner DTSA File Transfer Records Diags Appli.
Id. Id. Transmit Total CFT Protocol Id.
-------- ---- -------- -------- ---------- ---------- --- -------- --------
DEV SMD TEST D0411142 hello 909 RCO 301
1 record(s) selected
500 record(s) in Catalog file
499 record(s) free (99%)
CFTU00I LISTCAT _ Correct (type=all,content=brief)
$cftutil send part=PREX, fname=smit.log ,idf=smit CFTU00I SEND _ Correct (part=PREX,fname=smit.log,idf=smit)
Il est possible de fixer la longueur des enregistrement avec flrecl.
CFTUTIL send part=batman,idf=toto,flrecl=80,fname=/PROD/fichier CFTU20I CFTU20I CFT/V2/UAIX 51L CFTU20I Version 2.3.2 20040910 / Patch20041220 CFTU20I (C) Copyright AXWAY 1989-2003 CFTU20I ====> Starting Session on 16/05/2009 Time is 10:41:24 CFTU20I CFTU00I SEND _ Correct (part=batman,idf=toto,flrecl=80,fname=/apps/product) CFTU20I Number of Command(s) 1 CFTU20I Number of error(s) 0 CFTU20I Ending Session on 16/05/2009 Time is 10:41:24 CFTU20I Session active for 0:00:00
$ cftutil recv idf=smit, fname=/tmp/smit
CFTUTIL listcat part=MONPA00
ou si on recherche un transfert donné
CFTUTIL listcat part=MONPA00,idf=toto
exemple:
CFTUTIL send part=BOUCLE1,idf=toto,fname=/cftdata/CFT/toto
CFTU20I
CFTU20I CFT/V2/UAIX 51L
CFTU20I Version 2.3.2 20040910 / Patch20041220
CFTU20I (C) Copyright AXWAY 1989-2003
CFTU20I ====> Starting Session on 12/10/2009 Time is 10:50:53
CFTU20I
CFTU00I SEND _ Correct (part=BOUCLE1,idf=toto,fname=/cftdata/CFT/toto)
CFTU20I Number of Command(s) 1
CFTU20I Number of error(s) 0
CFTU20I Ending Session on 12/10/2009 Time is 10:50:53
CFTU20I Session active for 0:00:00
cft@helios:/apps/products/cft> CFTUTIL listcat part=BOUCLE1
CFTU20I
CFTU20I CFT/V2/UAIX 51L
CFTU20I Version 2.3.2 20040910 / Patch20041220
CFTU20I (C) Copyright AXWAY 1989-2003
CFTU20I ====> Starting Session on 12/10/2009 Time is 10:51:45
CFTU20I
Date = 12/10/2009 Time = 10:51:45
Partner DTSA File Transfer Records Diags Appli.
Id. Id. Transmit Total CFT Protocol Id.
-------- ---- -------- -------- ---------- ---------- --- -------- --------
BOUCLE1 SFX GLOBUN I0923062 14 14 0 CP 81% I09N000G
BOUCLE1 SFX CSMUIR0R I1023194 15 15 0 CP 92% I10N002C
2 record(s) selected
140000 record(s) in Catalog file
32933 record(s) free (23%)
CFTU00I LISTCAT _ Correct (part=BOUCLE1)
CFTU20I Number of Command(s) 1
CFTU20I Number of error(s) 0
CFTU20I Ending Session on 12/10/2009 Time is 10:51:45
cftutil listcat state=K
Date = 12/10/2009 Time = 11:17:03
Partner DTSA File Transfer Records Diags Appli.
Id. Id. Transmit Total CFT Protocol Id.
-------- ---- -------- -------- ---------- ---------- --- -------- --------
U00PE83A SFK XLOGMUTV J1207380 0 0 405 R 00 088 J127000F
U00PM045 RFK RSISR3 J1209260 0 0 405 R 0 2f2
2 record(s) selected
140000 record(s) in Catalog file
32860 record(s) free (23%)
CFTU00I LISTCAT _ Correct (state=K)
grep 82E * | grep /07 | awk '{print "grep ",$7," *"}' | sh
cftutil delete part=BOUCLE, idt=G1915470
cftcatab | grep SFH | awk '{print $4}' | sed 's/^/cftutil delete part=BOUCLE,idt=/' | sh
Les types sont :
| F | File |
| M | Message |
| R | reply |
Les types peuvent être :
| S | Send |
| R | Receive |
La colonne DTSA nous donne l'état des transferts:
| D : | Fichier en attente des transferts |
| C: | Fichier en cours de transfert |
| H : | Fichier non reçu (H pour HOLD), le fichier n'a pas été mis à disposition |
| K : | Fichier non envoyé (K pour KEEP), le partenaire n'a pas déclenché l'émission |
| T : | Fichier ayant eu un problème d'exécution de procédure de fin de transfert ou n'ayant pas de procédure de fin de transfert |
| X : | Transfert réalisé et procédure de fin de transfert exécutée (X pour eXecute) |
Exemples:
SFX nous indique que l'envoie du fichier a été effectué avec succès ( ).
RFH nous indique que le transfert envoyé par un partenaire n'a pas était reçu ( ) .
CFTUTIL LISTCAT TYPE=FILE,STATE=DK
cftutil delete part=MONPA00,idf=fichier,state=K,direct=RECV
cftcatab |grep 405 | awk '{print "cftutil delete part=",$1,", idt=",$4}' | sh
CFTUTIL DELETE IDT=* ,PART=*
cftlog 09/02/12 09:00:03 CFTT57I Requester transfer started09/02/12 09:00:03 CFTT58I Requester transfer ended 09/02/12 09:00:03 CFTT88I+
Cela vous donnera accès à un menu dont vous pouvez voir quelques images.


Copyright (c) 2004-2010 Jean-Louis BICQUELET
This list of questions and answers was generated by makefaq.