I am using Symantec 12.1R2 with the embedded databse. I noticed that the drive that had SEPM installed was running out of diskspace.
On investigation it was observed that the file sem5.log [D:\Program Files\Symantec\Symantec Endpoint Protection Manager\db] was increasing in size.
To resolve the issue we need to delete the sem5.log file. This process can be automated by using the following script:
net stop semsrv
net stop SQLANYs_sem5
attrib -r "D:\Program Files\Symantec\Symantec Endpoint Protection Manager\db\sem5.log"
del "D:\Program Files\Symantec\Symantec Endpoint Protection Manager\db\sem5.log"
CD D:\Program Files\Symantec\Symantec Endpoint Protection Manager\ASA\win32\
dbsrv12 -f "D:\Program Files\Symantec\Symantec Endpoint Protection Manager\db\sem5.db
net start SQLANYs_sem5
net start semsrv
I have referred to the following post:
http://www.symantec.com/connect/forums/sem5log-keeps-growing
Purpose of this post is to consolidate to the process into a single script.