02-26-2008 06:28 AM
My syslog purge policy is set to retain the last 7 days worth of data. Due to periodic issues with SyslogPurge job (locked DB tables for three days) that requires restarting dmgtd, it appears a lot of stale files (e.g. -rw-r----- 1 casuser casusers 5555045 Sep 25 01:00 SyslogPurgedDataBackup1190696402916) have piled up in /var/adm/CSCOpx/files/rme/syslog? Is it safe to delete these files older than 7 days from the CLI?
02-26-2008 11:47 PM
These files are created for you based on your configuration. If you do not want them anymore, then they are safe to delete. If you'd rather they not be created, you can adjust the syslog purge backup policy under RME > Admin > Syslog > Set Backup Policy.
02-27-2008 05:47 AM
The max file size in the backup policy is the default 100MB. That seems to apply to each file. But I don't see how this has anything to do purging the files older than 7 days, that's controlled by Set Purge Policy. Or, am I misunderstanding what Set Purge Policy is supposed to do?
Would a Forced Purge through the browser GUI be equivalent to manually deletion on the CLI?
02-27-2008 08:35 AM
Purge policy controls messages purged from the database. The backup policy says that those messages purged should be backed up into text files for future analysis. The only way to get rid of those text files is to manually delete them.
02-27-2008 08:52 AM
Thanks for clarifying. That's different from what I perceived.
Is Admin > Config Mgmt > Archive Mgmt > Purge Settings responsible for purging /var/adm/CSCOpx/files/rme/dcma/difffiles, that's over 7GB right now? Current policy is set to retain Max 5 versions and of purge versions older than 30 days. In this case, does the following look right?
1256 difffiles/336/PRIMARY/RUNNING/2
1256 difffiles/336/PRIMARY/RUNNING/37
1256 difffiles/336/PRIMARY/RUNNING/38
1256 difffiles/336/PRIMARY/RUNNING/39
1256 difffiles/336/PRIMARY/RUNNING/40
1256 difffiles/336/PRIMARY/RUNNING/41
1256 difffiles/336/PRIMARY/RUNNING/42
1256 difffiles/336/PRIMARY/RUNNING/43
1256 difffiles/336/PRIMARY/RUNNING/44
1256 difffiles/336/PRIMARY/RUNNING/45
1256 difffiles/336/PRIMARY/RUNNING/46
1256 difffiles/336/PRIMARY/RUNNING/47
1256 difffiles/336/PRIMARY/RUNNING/48
1256 difffiles/336/PRIMARY/RUNNING/49
1256 difffiles/336/PRIMARY/RUNNING/50
1256 difffiles/336/PRIMARY/RUNNING/51
1256 difffiles/336/PRIMARY/RUNNING/52
1256 difffiles/336/PRIMARY/RUNNING/53
1256 difffiles/336/PRIMARY/RUNNING/54
1256 difffiles/336/PRIMARY/RUNNING/55
1256 difffiles/336/PRIMARY/RUNNING/56
1256 difffiles/336/PRIMARY/RUNNING/57
1256 difffiles/336/PRIMARY/RUNNING/58
1256 difffiles/336/PRIMARY/RUNNING/59
1256 difffiles/336/PRIMARY/RUNNING/60
1256 difffiles/336/PRIMARY/RUNNING/61
1256 difffiles/336/PRIMARY/RUNNING/62
33914 difffiles/336/PRIMARY/RUNNING
33914 difffiles/336/PRIMARY
33914 difffiles/336
/var/adm/CSCOpx/files/rme/dcma)->ls -al difffiles/336/PRIMARY/RUNNING/2
total 1258
drwxrwx--- 2 casuser casusers 96 Jan 18 09:23 .
drwxrwx--- 29 casuser casusers 1024 Feb 26 01:57 ..
-rw-r--r-- 1 casuser casusers 321768 Jan 18 09:23 2-1-0.dfc
-rw-r--r-- 1 casuser casusers 319614 Jan 18 09:23 2-1-0.dfr
/var/adm/CSCOpx/files/rme/dcma)->ls -al difffiles/336/PRIMARY/RUNNING/37
total 1258
drwxrwx--- 2 casuser casusers 96 Jan 18 09:23 .
drwxrwx--- 29 casuser casusers 1024 Feb 26 01:57 ..
-rw-r--r-- 1 casuser casusers 321808 Jan 18 09:23 37-36-0.dfc
-rw-r--r-- 1 casuser casusers 319654 Jan 18 09:23 37-36-0.dfr
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