Map cron

De MappingDoc
Révision datée du 23 novembre 2018 à 11:38 par imported>Rdal (map_cron)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

map_cron

Mapping clean-up command

 -date                  : Delete all SAVED spool files the retention period of which is over
 -dateall               : Delete all spool files in any state (ready, saved, held, error) the retention period of which is over
 -cleanlog -delete      : Delete log files
 -cleanlog -folder:XXXX : Back up log files in specified folder
     [ -nozip      ]    : The log files are not zipped
     [ -format:XXX ]    : The log files are converted (TXT or XML) before backing up
-cleanid                : Delete temporary application files
-cleanspool OPTIONS     : Delete spool files
       with OPTIONS     : TYPE | DATE | USER | STATE | QNAME
                          TYPE  = [ -entry | -queue ]
                          DATE  = [ -before_date:dd/mm/yyyy | -relative_date:d/m/y ]
                          USER  = -user:XXXX
                          STATE = -state:XXXX (ready, saved, held, error)
                          QNAME = -queue_name:XXXX
-verbose                : Verbose mode
-debug                  : Debug mode

Examples :

1. Delete all spool files :

       map_cron -cleanspool

2. Delete spool files owned by user "mapadmin" :

       map_cron -cleanspool -user:mapadmin

3. Delete "saved" spool files owned by user "mapadmin" :

       map_cron -cleanspool -user:mapadmin -state:saved

4. Delete "saved" spool files owned by user "mapadmin" in entry points :

       map_cron -cleanspool -user:mapadmin -state:saved -entry

5. Delete "saved" spool files owned by user "mapadmin" in entry points prior to 01 july 2005 :

       map_cron -cleanspool -user:mapadmin -state:saved -entry -before_date:01/07/2005

6. Delete "saved" spool files older than 10 days owned by user "mapadmin" in entry point :

       map_cron -cleanspool -user:mapadmin -state:saved -entry -relative_date:10/0/0

7. Delete "saved" spool files older than 10 days owned by user "mapadmin" in entry point "MY_ENTRY" :

       map_cron -cleanspool -user:mapadmin -state:saved -entry -relative_date:10/0/0 -queue_name:MY_ENTRY