Skip to Content

Deletion of Logs, report and files from distribution folder

o   Automated Deletion of logs

§  Executed on regular intervals (Weekly), Data deleted older than 90 days.

§  Data to be maintained for Last 90 days.

§  Logs deletion can be carry out with Redwood jobs (<SID>_MDM_ALL_HOUSEKEPNG_SCRIPT) or cron job which runs on  MDM system. In Redwood job you need to call script which have below command

find /usr/sap/<SID>/MDS<XX>/log -name ‘*’ -mtime +90 -exec rm {} \;

§  Cross check for logs deletion in case of automated mechanism failure Location for Logs to be deleted  :

·         /usr/sap/<SID>/MDS<XX>/log

          • Cron job can be configure through crontab -e. Use following command to delete logs older than 90 Days. And this job will run on weekly basis

                    00 03 * * 0 find /usr/sap/<SID>/MDS<XX>/log -name ‘*’ -mtime +90 -exec rm {} \;

o   Automated Deletion of Reports

§  Executed on regular intervals (Weekly), Data deleted older than 90 days.

§  Data to be maintained for Last 90 days.

§  Report deletion carry out with Redwood jobs (<SID>_MDM_ALL_HOUSEKEPNG_SCRIPT) or cron job which runs on MDM system. In Redwood job you need to call script which have below command

find /usr/sap/ZCM/MDS01/mdm/reports -name ‘*’ -mtime +90 -exec rm {} \;

§  Cross check for Reports deletion in case of automated mechanism failure Location for Reports to be deleted 

·         /usr/sap/<SID>/MDS<XX>/mdm/reports

          • Cron job can be configure through crontab -e. Use following command to delete logs older than 90 Days. And this job will run on weekly basis

                         00 03 * * 0 00 03 * * 0 find /usr/sap/<SID>/MDS<XX>/mdm/reports -name ‘*’ -mtime +90 -exec rm {} \;

o   Automated Deletion of files in distribution folder

§  Performed on Daily Basis, Data deleted older than 30 days.

§  Data to be maintained for Last 30 days. Files in the distribution folder should be less than 50K.

§  Cross check for files deletion in case of automated mechanism failure Location for Files to be deleted.

§  File deletion carry out with Redwood jobs (<SID>_MDM_ALL_HOUSEKEPNG_SCRIPT) and cron job which runs on MDM system. In Redwood job you need to call script which have below commands (…. for each and every ports in Inbound and Outbound for all repos. Archive, Exception and Ready folder)

find /usr/sap/<SID>/MDS<XX>/mdm/distributions/<DBSID>_ORCL/<Repository Name>/Inbound/…… -name ‘*’ -mtime +30 -exec rm {} \;

find /usr/sap/<SID>/MDS<XX>/mdm/distributions/<DBSID>_ORCL/<Repository Name>/Outbound/…… -name ‘*’ -mtime +30 -exec rm {} \;

          • Cron job can be configure through crontab -e. Use following command to delete logs older than 90 Days. And this job will run on weekly basis

02 09 * * * find /usr/sap/<SID>/MDS<XX>/mdm/distributions/<DBSID>_ORCL/<Repository Name>/Inbound/…… -name ‘*’ -mtime +30 -exec rm {} \;

02 09 * * * find /usr/sap/<SID>/MDS<XX>/mdm/distributions/<DBSID>_ORCL/<Repository Name>/Outbound/…… -name ‘*’ -mtime +30 -exec rm {} \;

o   CLIX Monitoring

§  Constant Clix monitoring enabled via OS Level.

§  Command to be executed for Clix Monitoring:

nohup clix mdsMonitor <hostname> Admin:sapmdm –W –C –T 5 >> clix_mon.out 2>&1 &

§  File “clix_mon.out” is stored on “/usr/sap/<SID>/user/<sid>adm”

Note: This monitoring runs in the background, upon anticipating that high volume of file or completion of 2 weeks, whichever earlier. Clix monitoring process to be killed, rename the filename and process to be re executed.

§  File “clix_mon.out*” to be maintained for last 90 days.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply