This section provides an example of a typical CDR data file retrieval session from a single server named MyServer.MyDomain.com and provides suggestions and cautions concerning the setup and operation of the Session Manager CDR functionality.
Navigate to the directory where the CDR data files are to be transferred.
Run the following command to begin the session:
ADDITIONAL INFORMATION:
sftp CDR_User@MySessionManager.MyDomain.com
STEP RESULT:
The command launches the SFTP program and passes the Session Manager server name and user ID to the server for enabling the session. In this example, the server name is MySessionManager.MyDomain.com and the user ID is CDR_User.
The server responds with the standard login message and prompts for the password.
Enter the password.
STEP RESULT:
You are placed in the CDR data files directory on the Session Manager server.
Run the mget S* command to copy all files that exist on the server with file names that begin with a capital S to the local directory.
Run the ls –al or an equivalent command to view which files were transferred.
To remove each transferred file, one at a time, from the server, run the command rm <individual file name>.
ADDITIONAL INFORMATION:
Do not use the rm S* command. This action removes the CDR files from the Session Manager server. See the note and caution for more information.
Note:
The files are removed individually to avoid deleting a new CDR data file added to the directory between the time the files are transferred and the time they are deleted. If a new file was added during this period and the rm * command was used, the new file would be deleted without getting transferred to the CDR adjunct. Any CDR records that were contained in the “new” file would be permanently lost.
Caution:
The CDR adjunct must perform file verification to ensure that the adjunct has accurately received the file before deleting it from the server. For example, this check could be comparing the relative file size of the received file with the file size on the server to ensure they are the same size before deleting the file on the server.
The adjunct provider may elect to design the adjunct to retrieve a group of files on one polling pass and then process those files to ensure they are in the correct format and contain valid data. If no errors are detected, the adjunct would then remove the previously retrieved files on the next polling pass. If errors are detected in a file, the adjunct could re-retrieve the errant file before removing it from the server.
Run the bye command for the adjunct to sign off from the server.