ONYX - 9.0 - Exploitation - Guide d'exploitation ONYX Server sur Windows/en
Différence entre versions
(Page créée avec « Similarly, the stats files and usage reports in ONYX Server can be cleared: ») |
(Page créée avec « C:\M-ProcessingServer\Applications\map_cron.exe -cleanstats [ -delete ] ») |
||
Ligne 33 : | Ligne 33 : | ||
Similarly, the stats files and usage reports in ONYX Server can be cleared: | Similarly, the stats files and usage reports in ONYX Server can be cleared: | ||
− | + | C:\M-ProcessingServer\Applications\map_cron.exe -cleanstats [ -delete ] | |
=== Nettoyage des fichiers temporaires === | === Nettoyage des fichiers temporaires === |
Version du 9 décembre 2019 à 15:57
Sommaire
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
- To delete log files without creating a back-up:
C:\M-ProcessingServer\Applications\map_cron.exe -cleanlog -delete
Clearing statistics
Similarly, the stats files and usage reports in ONYX Server can be cleared:
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