Page 1 of 1
Automating the clearing of logs within the GAS
Posted: 06 Jun 2007 8:15
by Andrew
How can we set the parameter for the GAS to keep alerts for max 3 months then delete anything after 3 months or can we automate this via a job in control-m.
Posted: 06 Jun 2007 4:04
by fyot
Hi Andrew
There is a script existing in the download part to clean al messages in the GAS.
Delalarm V1.00
I'm going to see if the parameter to keep a max of 3 months exist.
Posted: 08 Jun 2007 6:05
by philmalmaison
faire 1 job (delalertes) avec un calc
![Sad :(](./images/smilies/icon_sad.gif)
ul de date en param
ex :
PARM1=%%$CALCDATE %%$DATE -180
delalertes.ksh
#!/bin/ksh
for i in $*
do
erase_alerts -U ecs -P sybase -D $i -F
done
Automating the clearing of logs within the GAS
Posted: 11 Jun 2007 9:09
by Walty
Hi ,
i use same method (erase_alerts) and i add this command in the script after delete alerts for refresh GAS:
ecs ctl -U <emuser> -P <Password> -C GAS -M <Computer_Name> -cmdstr refresh
Regards
Walty
Posted: 11 Jun 2007 1:22
by philmalmaison
-cmdstr REFRESH (en majuscule pour la 6.3.01