# Examples: Using cfinq Utility

You can run the cfinq utility from the $CFROOT/bin directory on the command line to obtain transfer information.

The cfinq utility accepts parameters on the command line. You can specify the criteria to be met to provide a detailed query of the TIBCO MFT Platform Server records. The following example queries records of successful transfers only for the local user named JohnDoe over a 20 day time span starting from September 9, 2012 at 9:01 am and ending at 3 pm, with a maximum of 1000 records listed.

    cfinq sdate:20120909 days:20 stime:090100 etime:150000 luser:JohnDoe lf:/unix/SERVER/log EXC:S max:1000

Note: Use either an equal sign or a colon to separate the parameter from the value. You must not insert any space between the parameter name, the equal or colon sign, and the parameter value.
You can also use the cfinq menu to select which transfer information is displayed. The following menu is displayed after entering the cfinq command on the command line.

    ********************************************************************************
               YOU HAVE ENTERED THE FOLLOWING VALUES FOR YOUR INQUIRY:

    LOCTRANSNUM..............[]
    REMTRANSNUM..............[]
    LOGDIR...................[]
    STARTDATE................[]
    ENDDATE..................[]
    DAYS.....................[]
    STARTTIME................[]
    ENDTIME..................[]
    MAXXFER..................[]
    LOCALFILE................[]
    LOCALUSER................[]
    REMHOST..................[]
    DESCRIPTION..............[]
    PROCESS..................[]
    EXCEPTIONS...............[]
    TEMPERROR................[]
    INITRESPFLAG.............[]
    ********************************************************************************
    ***     PRESS [q] [enter] TO QUIT THE PROGRAM                                ***
    ***     PRESS [a] [enter] TO OBTAIN WHOLE RECORD LIST                        ***
    ***     PRESS [c] [enter] TO OBTAIN CURRENT RECORD LIST                      ***
    ***     PRESS [p] [enter] TO OBTAIN PREVIOUSLY VIEWED RECORD LIST            ***
    ***     PRESS [m] [enter] TO OBTAIN MENU SCREEN                              ***
    ***     PRESS [n] [enter] or [enter] TO OBTAIN NEXT RECORD LIST              ***
    ***     PRESS [h] or  [?] [enter] TO OBTAIN HELP SCREEN                      ***
    ***     PRESS [index  # ] [enter] TO OBTAIN DETAILED RECORD INFORMATION      ***
    ********************************************************************************

    ===>

You can enter a single letter to obtain record listings. For example, if you enter "`a`" and hit `Enter`. The following results are displayed:

    ********************************************************************************
    INDEX   TRANSACTION   STATUS   IPADDRESS        LOCALFILE
    ********************************************************************************

    1 I113500000 Success 127.127.127.0:46464 /home/a.txt
    2 I113500001 Success 127.127.127.0:46464 /home/remotefile
    3 I113500002 Success 127.127.127.0:46464 /home/localfile
    4 I113500003 Success 127.127.127.0:46464 /home/a.txt
    5 I113500004 Success 127.127.127.0:46464 /home/tmp/CG.DAT
    6 I113500005 Success 127.127.127.0:46464 /home/tmp/CLEAN.EXE
    7 I113500006 Success 127.127.127.0:46464 /home/tmp/RUN.BAK
    8 I113500007 Success 127.127.127.0:46464 /home/tmp/HOOK.REG
    9 I113500008 Success 127.127.127.0:46464 /home/tmp/RUN.BAK
    10 R113500009 Success 127.127.127.0:46464 /home/tmp/WAKE.EXE
    11 R113500002 Success 127.127.127.0:46464 /home/tmp/EXPRESS.INI
    ===>

If you want to view transaction number I113500002, you can enter "`3`" (the index number for transaction 3). The following detailed report is displayed:

    ***************************************************
    RECORD:3
    ***************************************************
    Version Number.............. 7.2 build 4. Maint Build 4
    Priority.................... N/A
    Local Transaction Number.... I113500002
    Remote Transaction Number... R113500003
    Transfer Start Time......... 160701
    Transfer Start Date......... 20150113
    Transfer End Time........... 160705
    Transfer End Date........... 20150113
    Transfer Direction.......... Send
    Transfer Work............... File
    Transfer Command............ N/A
    Transfer Process Name....... N/A
    Transfer Schedule Date...... N/A
    Transfer Schedule Time...... N/A
    Transfer Expiration Date.... N/A
    Transfer Expiration Time.... N/A
    Compression Type............ None
    Compressed Bytes............ 0
    Convert CRLF................ no
    EBCDIC Translate............ no
    SSL......................... no
    SSL Port Number............. N/A
    Encryption Type............. N/A
    Record Format............... FixedBlock
    File Create Options......... CreateReplace
    File Attributes............. N/A
    UNIX File Permissions....... 644
    Allocation Type............. N/A
    Allocation Directory........ N/A
    Allocation Primary.......... N/A
    Allocation Secondary........ N/A
    Volume...................... N/A
    Unit........................ N/A
    Stor Class.................. N/A
    Mgt Class................... N/A
    Data Class.................. N/A
    Block Size.................. 0
    Record Length............... 80
    User Data................... N/A
    Logon Domain................ N/A
    Local File Name............. /home/localfile
    Local User ID............... root
    Remote File Name............ /home/remotefile
    Remote User ID.............. root
    Remote Node Name............ 127.127.127.0
    Remote Port Number.......... 46464
    Try Count................... 1
    Try Max Count............... 1
    Byte Count.................. 17
    Record Count................ N/A
    Member Count................ N/A
    Check Point Count........... N/A
    Check Point Restart......... no
    Check Point Interval........ 0
    Status Msg.................. File Transfer Complete
    Crl Msg..................... N/A
    Status Diag Code............ 00
    Status Severity............. 00
    Status Return Code.......... N/A
    Transfer Status............. Success
    Node Class.................. N/A
    Remote Node Type............ N/A
    LocalCTFile................. N/A
    RemoteCTFile................ N/A
    PPA1 Action................. N/A
    PPA1 Source................. N/A
    PPA1 Status................. N/A
    PPA1 Data................... N/A
    PPA1 Return Code............ N/A
    PPA2 Action................. N/A
    PPA2 Source................. N/A
    PPA2 Status................. N/A
    PPA2 Data................... N/A
    PPA2 Return Code............ N/A
    PPA3 Action................. N/A
    PPA3 Source................. N/A
    PPA3 Status................. N/A
    PPA3 Data................... N/A
    PPA3 Return Code............ N/A
    PPA4 Action................. N/A
    PPA4 Source................. N/A
    PPA4 Status................. N/A
    PPA4 Data................... N/A
    PPA4 Return Code............ N/A
    Temporary Error............. No
    Email Success Address....... N/A
    Email Failure Address....... N/A
    Accelerator................. N/A
    Accelerator Protocol........ N/A
    Accelerator Encryption...... N/A
    Accelerator Compression..... N/A
    Accelerator MaxSpeed........ N/A
    Accelerator Host............ N/A
    Accelerator Port............ N/A
    Security Policy............. None
    Remove Trailing Spaces...... N
    Scan Subdirectories......... N
    ClassOfService.............. Default
    ********************************************************************************

    ===>

Copyright © 2022. TIBCO Software Inc. All Rights Reserved.