72 IBM Tivoli Netcool Service Quality Manager Data Mediation Gateway Development
A Output file: 'A20090114.1330-20090114.1345_1_gs1-ggsn-3.pt'
A Output file: 'A20090114.1330-20090114.1345_1_gs1-ggsn-3.pt'
5 Sorted data counters
GGSNNAME,APN,PDPCREATE_SUCCESSES,PDPCREATE_FAILURES,MSINIT_PDPDELETE_SU
CCESSES,MSINIT_PDPDELETE_FAILURES,NWINIT_PDPDELETE_SUCCESSES,NWINIT_PDP
DELETE_FAILURES
4 PIF_Handler closing output file
../spool/inter/A20090114.1330-20090114.1345_1_gs1-ggsn-3.pif
4 Renaming temp file to final name
../spool/loader/A20090114.1330-20090114.1345_1_gs1-ggsn-3.csv
4 PIF_Handler closing input file
../spool/inter/A20090114.1330-20090114.1345_1_gs1-ggsn-3.pif
5 PIF_Handler: Get_Files() Getting list of files from intermediate
directory ../spool/inter
A Finish Post Parser
The files being processed are stored in the spool subdirectory. The files that we
have in the spool directory are listed in Example 3-24.
Example 3-24 Listing of files in the spool directory
[root@rtmach2 spool]# ls inter loader parse
inter:
A20090114.1330-20090114.1345_1_gs1-ggsn-3.pif
PassiveCollector-IBM.pmgw_cgprsAccPtStatisticsEntry_13_01_2009_11_47_42.csv-#-I.pif
PassiveCollector-IBM.pmgw_cgprsAccPtStatisticsEntry_13_01_2009_11_47_42.csv-#-I-#-PZ.pif
loader:
A20090114.1330-20090114.1345_1_gs1-ggsn-3.csv
parse:
PassiveCollector-IBM.pmgw_cgprsAccPtStatisticsEntry_13_01_2009_11_47_42.csv
3.6.5 Transferring file outbound
After the files are produced, the generated CSV file can be transferred for
processing by the Service Quality Manager loader or service solution. If the
Service Quality Manager application server is not the same as the gateway
machine, the file must be transferred out using a file transfer mechanism. We use
ftp, as shown in the configuration rule in 3.3.2, “Sending data to the adapter” on
page 55. The audit and messages are very similar to the inbound transfer.
Example 3-25 on page 73 shows the audit messages.
Chapter 3. Gateway development 73
Example 3-25 Outbound transfer audit file
Start Transfer Engine: OUT
Processing Transfer rule Transfer files out
TransferEngine::Ftp: Putting files to remote host
Transfer::Engine:Ftp Copying:
A20090114.1330-20090114.1345_1_gs1-ggsn-3.csv
Transfer::Engine:Ftp Copied:
A20090114.1330-20090114.1345_1_gs1-ggsn-3.csv
Finished Transfer rule result 1
Finished Transfer Engine: OUT
Example 3-26 shows the log messages file.
Example 3-26 Outbound transfer message file
A Start Transfer Engine: OUT
A Processing Transfer rule Transfer files out
5 TransferEngine: PROTOCOL is ftp
4 TransferEngine: Protocol is ftp
5 Checking optional TIMEOUT which can be type SCALAR
5 Checking optional OVERWRITE_FILES which can be type SCALAR
5 Checking optional TMP_FILENAME_EXTENSION which can be type SCALAR
5 Checking optional PING_RETRY_ATTEMPTS which can be type SCALAR
5 Checking optional RETRY_INTERVAL which can be type SCALAR
5 Checking optional DELETE_ORIGINAL which can be type SCALAR
5 Checking optional PING_PROTOCOL which can be type SCALAR
5 Returning 0 errors from configuration check
3 GenUtils: check_dir(), checking directory
/gways/config/motorola-ggsn/spool/loader
5 Time stamp file ./.timestamp_out doesn't exist
A TransferEngine::Ftp: Putting files to remote host
5 TransferEngine::Ftp: set transfer mode to binary
5 Transfer - created connection to 9.3.5.11
5 Getting files from /gways/config/motorola-ggsn/spool/loader to copy
to 9.3.5.11
5 Found 3 entries in directory
5 Matched file A20090114.1330-20090114.1345_1_gs1-ggsn-3.csv to type
CSV
A Transfer::Engine:Ftp Copying:
A20090114.1330-20090114.1345_1_gs1-ggsn-3.csv
A Transfer::Engine:Ftp Copied:
A20090114.1330-20090114.1345_1_gs1-ggsn-3.csv
5 TransferEngine::Ftp:ftp put deleting original
A20090114.1330-20090114.1345_1_gs1-ggsn-3.csv
5 Writing out new modification time
74 IBM Tivoli Netcool Service Quality Manager Data Mediation Gateway Development
A Finished Transfer rule result 1
4 TransferEngine:: DIRECTION OUT - copied 1 files
A Finished Transfer Engine: OUT
5 unlock_process(../spool/parse/.lock_gateway_main.pm.pid)
1 Destroying property service
Example 3-27 shows the .timestamp_out file.
Example 3-27 File .timestamp_out
$mod_time = {
'PREV_FILES' => undef,
'LAST_TIME' => 1231881135,
'COPIED_FILES' => {
'A20090114.1330-20090114.1345_1_gs1-ggsn-3.csv' => '0.3525390625'
}
};

Get IBM Tivoli Netcool Service Quality Manager Data Mediation Gateway Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.