06-24-2009 07:03 AM - edited 03-13-2019 06:27 PM
Hi,
Have CUCM 6.x with service parameter 'CDR Enable Flag' set to TRUE.
I changed the value for this parameter 1 month ago thus CDR flat files had to be collected.
Today I added external SFTP billing server via 'Serviceability | CDR Management' interface.
There was no servers specifed before today.
To my surprise the first date for CDR I got was today's date ! It's not what I expect !!
I need all CDR flat files beginning from date of 1 month ago due to today and further.
I have the default value for 'CDR / CMR Files Preservation Duration (Days)' parameter to 30.
Please, advice, why CUCM didn't upload earlier CDR files and where can I get them.
Thank you.
Solved! Go to Solution.
06-25-2009 05:48 AM
To keep the files in the server, just that. It was never meant to keep the files and then send them with the billing server config.
Start by looking the files, should be:
file list activelog cm/cdr_repository/processed
Then file get and path of file.
file get
http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/cucos/6_1_1/cucos/iptpappa.html#wp1036459
HTH
java
if this helps, please rate
06-24-2009 09:07 AM
That is WAD, just the same as when you enable CDR. It starts working from the moment you configure/activate it.
You would need to get the old files via CLI manually.
HTH
java
if this helps, please rate
06-25-2009 12:25 AM
1. But mentioned CDR parameter exist what for in that case ?
"CDR / CMR Files Preservation Duration (Days)"
Choose the number of days that you want to retain CDR and CMR files.
The CDR Repository Manager deletes files that fall outside the preservation window.
2. Please, advice, how to get them from CUCM via SSH CLI ?
Thank you.
06-25-2009 05:48 AM
To keep the files in the server, just that. It was never meant to keep the files and then send them with the billing server config.
Start by looking the files, should be:
file list activelog cm/cdr_repository/processed
Then file get and path of file.
file get
http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/cucos/6_1_1/cucos/iptpappa.html#wp1036459
HTH
java
if this helps, please rate
06-25-2009 09:58 PM
Jaime,
Great answer !
Is there any way to get those processed CDRs to local pc in b_a_t_c_h mode ?
For example, if I need to analyze some specific date it will be much quicker
to download them to local workstation at first, and then parse with some means.
{
admin:file list activelog cm/cdr_repository/processed/YYYYMMDD
cdr_
cdr_
cdr_
cdr_
cdr_
cdr_
cdr_
cdr_
cdr_
cdr_
...
cdr_
cdr_
cdr_
cdr_
cdr_
cdr_
cdr_
dir count = 0, file count = 397
}
Thank you.
06-26-2009 03:05 AM
I'm not a programmer so i just have an idea of could this could work =)
You would need to write down a small program to ssh into the server and then use the output of the list command to start doing a file get for all files and download them into your PC. Again, just an idea, i'm not sure if you can do this with a program you create.
HTH
java
if this helps, please rate
09-30-2009 09:14 AM
Hi java,
I need to download a capture-file from a CUPS with file get command, but appear the message "Invalid download directory specified."
I use:
admin:file get activelog platform/cli/cups.cap
Please wait while the system is gathering files info ...done.
Sub-directories were not traversed.
Number of files affected: 1
Total size in Bytes: 1584
Total size in Kbytes: 1.546875
Would you like to proceed [y/n]? y
SFTP server IP: 172.26.14.52
SFTP server port [22]:
User ID: cisco
Password: *****
Download directory: CUP
Invalid download directory specified.
I tried to change the Download directory valued, but does'nt works.
I using Core mini-SFTP server.
Any idea?
Regards,
Ivan Garrido.
09-30-2009 05:51 PM
I had the same problem with the same Core mini-SFTP server. There's something about it that the CM file transfer process doesn't like. It actually connects and creates all the directory structure in your SFTP directory, it just dies when trying to send the actual files.
Switch to FreeFTPD and it'll work.
09-30-2009 08:12 PM
Thanks jasyoung!!
I tested with FreeFTPD and it works fine!!
Thanks a lot.
Ivan Garrido.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide