Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wtdbclear and wrmdbclear

Status
Not open for further replies.

aofan

Technical User
Jan 23, 2004
25
US
How do you automate the wtdbclear and wrmdbclear in AIX?
I know that I need some kind of script to run cron job so that it will run it periodically.

I need Help.


Thank you


aofan
 
I've not heard of wrmdbclear before but if you script the following and schedule it nightly, it should keep your database under control.
Code:
wtdbclear.pl -a 20 -lt 86400 > /tmp/wtdbclear_rl.log 
wtdbclear.pl -a 20 -et 604800 > /tmp/wtdbclear_er.log
The perl version of wdbclear is more reliable than the standard binary.

Options Explained :
-a is the number of lines to commit after
-l means work on reception log
-e means work on event repository
-t deletes events older than number given (secs)
 
So, I just save the above script in a file and do the cron job? or use the Tivoli Scheduler?


Thanks

aofan
 
Yup, just add the lines to a simple shell script.
It shouldn't matter if you use cron or Tivoli Scheduler so long as you are running it on your TEC server.

Reilus
 
for the cron job, do I need to setup any enviorment variable?

Thanx

aofan
 
Yes,

You have to set the environment

. /etc/Tivoli/setup_env.sh

regards,
Rodney
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top