Monday 18 April 2011

ASE : How to delete all those sybase cfg files

Sybase configuration file is not used properly when Sybase auditing is enabled. every time sybase switches audit trail, it creates a new cfg file. In case there are lots of activities on the server, this could be very messy in the cfg directory.

What one can do is to setup a cronjob to archive the cfg files to backup directory, this will keep the Sybase binary
directory clean.

00 01 * * * find <$SYBASE/$SYBASE_ASE -name ‘$DSQUERY.[0-9][0-9][0-9]’ -exec mv {} backupDirectory \;

No comments:

Post a Comment