cancel
Showing results for 
Search instead for 
Did you mean: 

BusinessObjects Housekeeping activities Automation

Former Member
0 Kudos

Hi Experts,


We all know that as a part of housekeeping activities, we have to clear the below things.

Click the below link to have complete details about Monitoring and housekeeping

http://scn.sap.com/community/bi-platform/blog/2012/10/22/businessobjects-monitoring-and-housekeeping...

  1. Delete the contents under the Local host folder in order to clear Tomcat Cache
  2. Delete contents under the Data Folder in order to clear Web Intelligence Cache

BusinessObjects Monitoring and Housekeeping activities

do anyone have  automated the above two process by using any script or batch file or OS level scripting.

If yes, Could  you please share?

Thanks in Advance.

Regards,

Prasad

View Entire Topic
Former Member
0 Kudos

Hey JRK Prasad,

Got it to work, this is the final batch file that I used. However, it did say that the path to 'PlatformSearchScheduleDurationBean.java' was too long, so it couldn't be deleted. If you share out that drive, map the drive to about half way down, you can delete half the folders yourself, and then disconnect the shared drive to delete the other half.

At any rate, here is the final batch file that I used:

net stop Tomcat7&&rename "D:\www\Tomcat 7.0\work\Catalina" %Date:~-10,2%_%Date:~-7,2%_%Date:~-4,4%.Catalina&&net start Tomcat7&&rmdir "D:\www\Tomcat 7.0\work\"%Date:~-10,2%_%Date:~-7,2%_%Date:~-4,4%.Catalina /S /Q

Again, outside of the above file that couldn't be deleted, it works as expected. Also, I'm on Windows Server 2008 R2, thus I had to run this as an administrator.

Try running the above script and see if it works as you expect it to. If it doesn't, let me know what, if any, error messages you got and I'll help you work through it.

EDIT: I changed around the batch file, as if I'm just going to automatically delete it, no need to date it. I changed it and I was able to delete the entire directory without having the fore mentioned error:

net stop Tomcat7&&rename "D:\www\Tomcat 7.0\work\Catalina" old.Catalina&&net start Tomcat7&&rmdir "D:\www\Tomcat 7.0\work\old.Catalina" /S /Q

Hopefully that gets you going. Let me know if it doesn't and I'll continue to help you get it going. Thanks,

-Victor