on 09-09-2013 9:05 AM
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.