Adding to Wes's comments for managing consumed disk space on an archive 
server... For a Windows OS server, the forfiles command with a few options can 
help with the disk space cleanup as well:

http://stackoverflow.com/questions/51054/batch-file-to-delete-files-older-than-n-days

But to the original question, I think it comes down to what needs to be 
accomplished.

If reducing utilized space on the activelog partition, simply adjusting the 
total number of files and max file size for specific trace settings would help.

If you need to free disk space for an upcoming upgrade, in addition to what 
Ryan mention, another approach can be to collect all CCM SDI/SDL files off the 
cluster via RTMT followed by deleting them from the activelog partition via 
"file delete activelog cm/trace/ccm/sdl *.txt" and again for sdi traces. 
Whether or not this helps is of course dependent on your trace settings, but 
I've taken this approach a handful of times in the past (when in a pinch) to 
make space for upgrade media. By doing this you make space by removing traces 
in bulk without actually losing anything. If issues occurring pre-upgrade need 
to be troubleshooted post-upgrade, the collected/offloaded CCM traces coupled 
with additional trace files found on the inactivelog partition should be more 
than sufficient.

Hope this helps.

- Daniel

From: cisco-voip [mailto:cisco-voip-boun...@puck.nether.net] On Behalf Of Wes 
Sisk (wsisk)
Sent: Tuesday, September 23, 2014 11:04 AM
To: Martin Schmuker
Cc: Cisco VoIP Mailing List
Subject: Re: [cisco-voip] Delete Log Files

onbox logging is circular. It will consume as much space as allocated and then 
loop over that. If something goes awry then Log Partition Manager (LPM) will 
auto-delete files as necessary.

For Scheduled Trace Collection, 
http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/service/8_6_1/rtmt/rtmt/rttlc.html#wp1048184

No, there is nothing built into CUCM to manage the consumed disk space on the 
trace archive server. If using a *nix box a cron'd 'find' command does pretty 
well.

some possible examples:
# find files modified in the last 1 day
find . -type f -mtime -1d

-1d "within 1 day" -mtime n[smhdw]

-Wes

On Sep 23, 2014, at 6:13 AM, Martin Schmuker 
<m...@bilobit.com<mailto:m...@bilobit.com>> wrote:

Guys,

is there any way to delete CUCM log files (aka traces) after x days?

Thanks,  Martin
_______________________________________________
cisco-voip mailing list
cisco-voip@puck.nether.net<mailto:cisco-voip@puck.nether.net>
https://puck.nether.net/mailman/listinfo/cisco-voip



_______________________________________________
cisco-voip mailing list
cisco-voip@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-voip

Reply via email to