ONYX - 9.0 - Exploitation - Guide d'exploitation ONYX Server sur Windows/en

Différence entre versions

De MappingDoc
(Page créée avec « *To create a log archive (ZIP) before deletion: C:\M-ProcessingServer\Applications\map_cron.exe -cleanlog »)
(Page créée avec « By default, the archive is saved at the root of the Onyx Server log folder (PATH_LOG variable) and named according to the date/time when the command was run. Example: 2019... »)
Ligne 23 : Ligne 23 :
 
  C:\M-ProcessingServer\Applications\map_cron.exe -cleanlog
 
  C:\M-ProcessingServer\Applications\map_cron.exe -cleanlog
  
L’archive est conservée par défaut à la racine du répertoire des logs M-Processing Server (variable PATH_LOG de la configuration), nommée en fonction de la date/heure d’exécution de la commande.
+
By default, the archive is saved at the root of the Onyx Server log folder (PATH_LOG variable) and named according to the date/time when the command was run.
Exemple : 2014_07_25_15_16.zip
+
Example: 2019_07_25_15_16.zip
  
 
*Suppression des journaux sans sauvegarde :
 
*Suppression des journaux sans sauvegarde :

Version du 9 décembre 2019 à 15:56

Autres langues :
English • ‎français

Clearing Spooler files

The Spooler creates and keeps a certain number of files which we advise you clear on a regular basis: saved jobs, log files, statistics. This can be done using an ONYX Server command map_cron.exe.

Clearing jobs

All the jobs in the Spooler have a specific retention time attribute (in days). The solution uses this attribute to clear the "expired" jobs in the Spooler, in other words, those with an exceeded retention time.

There are two commands:

  • Delete saved jobs (already processed) where retention time is exceeded:
Windows: C:\M-ProcessingServer\Applications\map_cron.exe -date
  • Delete all jobs (any status) where retention time is exceeded:
Windows: C:\M-ProcessingServer\Applications\map_cron.exe -dateall

Note: For them to carried out be correctly, these commands must be run when the Spooler is also running. Only the Spooler can interact with its jobs, the previous commands can only send deletion queries to the Spooler.

Clearing log files

The map_cron command clears the ONYX Server log files. Options can be set to keep archived copies of each log file before they are deleted, if necessary.

  • To create a log archive (ZIP) before deletion:
C:\M-ProcessingServer\Applications\map_cron.exe -cleanlog

By default, the archive is saved at the root of the Onyx Server log folder (PATH_LOG variable) and named according to the date/time when the command was run. Example: 2019_07_25_15_16.zip

  • Suppression des journaux sans sauvegarde :
C:\M-ProcessingServer\Applications\map_cron.exe -cleanlog -delete

Epuration des statistiques

Sur le même principe que précédemment, les fichiers correspondants aux statistiques et rapports d’utilisation de M-Processing Server peuvent être nettoyés :

C:\M-ProcessingServer\Applications\map_cron.exe -cleanstats [ -delete ]

Nettoyage des fichiers temporaires

En fonctionnement normal, un certain nombre de fichiers sont créés dans le répertoire temporaire de M-Processing Server (variable PATH_TEMP dans la configuration) : fichiers « cookie » de connexion à l’interface Web, fichiers issus des traitements de Workflows, etc.

La commande map_cron permet de supprimer tous les fichiers cookies, en ne conservant qu’un historique d’un jour :

C:\M-ProcessingServer\Applications\map_cron.exe -cleanid

La commande map_del permet de nettoyer le contenu d’un répertoire, en filtrant sur un nom ou sur une extension. Les exemples de commandes suivants seront fréquemment utilisés dans un script d’épuration ‘standard’ pour M-Processing Server :

C:\M-ProcessingServer\Applications\map_del.exe -path:E:\M-ProcessingServer\Applications\Temp -filter_ext:tmp
C:\M-ProcessingServer\Applications\map_del.exe -path:E:\M-ProcessingServer\Applications\Temp -filter_ext:ttf
C:\M-ProcessingServer\Applications\map_del.exe -path:E:\M-ProcessingServer\Applications\Temp -filter_ext:xps
C:\M-ProcessingServer\Applications\map_del.exe -path:E:\M-ProcessingServer\Applications\Temp -filter_name:*.0
C:\M-ProcessingServer\Applications\map_del.exe -path:E:\M-ProcessingServer\Applications\Temp -filter_name:*.1
C:\M-ProcessingServer\Applications\map_del.exe -path:E:\M-ProcessingServer\Applications\Temp -filter_name:*.2
C:\M-ProcessingServer\Applications\map_del.exe -path:E:\M-ProcessingServer\Applications\Temp -filter_name:*.3
C:\M-ProcessingServer\Applications\map_del.exe -path:E:\M-ProcessingServer\Applications\Temp -filter_name:*.4
C:\M-ProcessingServer\Applications\map_del.exe -path:E:\M-ProcessingServer\Applications\Temp -filter_name:*.5