Automating the clearing of logs within the GAS

Tools and several solutions to manage Control-M products
Post Reply
User avatar
Andrew
Nouveau
Nouveau
Posts: 6
Joined: 08 Jan 2007 12:00

Automating the clearing of logs within the GAS

Post by Andrew » 06 Jun 2007 8:15

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.

User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Post by fyot » 06 Jun 2007 4:04

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.

User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

Post by philmalmaison » 08 Jun 2007 6:05

faire 1 job (delalertes) avec un calc :( 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

User avatar
Walty
Nouveau
Nouveau
Posts: 473
Joined: 20 Jan 2006 12:00

Automating the clearing of logs within the GAS

Post by Walty » 11 Jun 2007 9:09

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

User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

Post by philmalmaison » 11 Jun 2007 1:22

-cmdstr REFRESH (en majuscule pour la 6.3.01

Post Reply