Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Logs Deletion

Created: 12 Oct 2012 • Updated: 12 Oct 2012 | 6 comments
This issue has been solved. See solution.

We have a mistakenly specified the " Keep Logs" in master server properties as 500 days and the logs folder shows huge size 

and now we have analysed and change it to 30 days and do

Now i need a cmd line option to delete all the logs content and keeping the last one month logs

Please give me the correct syntax.

Comments 6 CommentsJump to latest comment

mph999's picture

If you are using legacy log found in /usr/openv/netbackup/logs/<process name> just delete the logs with os command but DO NOT delete the log for 'today'

For Unified logs (eg. nbemm, nbpem etc ) run ...

vxlogmgr -F

Regards,

Martin

PS.

If you are unsure where these commands are , please see section A in this post.

https://www-secure.symantec.com/connect/forums/netbackup-basics-and-how-make-your-life-easier

 

Regards,  Martin
 
Setting Logs in NetBackup:
http://www.symantec.com/docs/TECH75805
 
Yuvi's picture

And thats fine i need to delete all the logs respective to the date as i have told earlier in the 

<install path>\veritas\netbackup\ogs\

like bptm,bpbrm,bprd,nbemm...and respective logs inside the above path not folder only logs

 

Anshu Pathak's picture

NetBackup checks the retention value for the logs and automatically deletes them once rentention is over hence in your case you dont have to do anything ..... just wait for a day or restart NetBackup services ... logs older than 30 days will be automatically deleted.

Anshu Pathak

SOLUTION
Yuvi's picture

Sounds Great...

Ohhh That was a great point i just changed  the value to 30 days and restarted the services it deleted the data. 

i have also doubt on this thanks for your clarification.

mph999's picture

Ahh good point - vxlogmgr -F would delete the logs up until the ones being written at the moment.

OK, this would delete the vx logs up until a certain date .

vxlogmgr --del -e "01/10/2012 09:00:00 AM"

Anshu above has also pointed out that NBU should clean up utomatically if you wait.

Persoanlly, I back logs up using a policy and then use the bpnotify end script to clear them out 'manually'.  So, I never have more than one days worth of logs on the server, but have any log available for xx days back, I just have to restore it ...

 

Martin

 

Regards,  Martin
 
Setting Logs in NetBackup:
http://www.symantec.com/docs/TECH75805
 
Yuvi's picture

Thanks Ji for your cmd line option issue resoved by the above solution....