ONYX - 9.0 - Exploitation - Guide d'exploitation ONYX Server sur Windows/en
Différence entre versions
(Page créée avec « Under normal operation, a number of files are created in the Temp folder (PATH_TEMP variable) such as Web connection files i.e. "cookies", Workflow files, etc. ») |
(Page créée avec « Using the map_cron command you can delete all cookies, while keeping the cookies of the day only: C:\M-ProcessingServer\Applications\map_cron.exe -cleanid ») |
||
Ligne 39 : | Ligne 39 : | ||
Under normal operation, a number of files are created in the Temp folder (PATH_TEMP variable) such as Web connection files i.e. "cookies", Workflow files, etc. | Under normal operation, a number of files are created in the Temp folder (PATH_TEMP variable) such as Web connection files i.e. "cookies", Workflow files, etc. | ||
− | + | Using the map_cron command you can delete all cookies, while keeping the cookies of the day only: | |
C:\M-ProcessingServer\Applications\map_cron.exe -cleanid | C:\M-ProcessingServer\Applications\map_cron.exe -cleanid | ||
Version du 9 décembre 2019 à 16:01
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 ]
Clearing temporary files
Under normal operation, a number of files are created in the Temp folder (PATH_TEMP variable) such as Web connection files i.e. "cookies", Workflow files, etc.
Using the map_cron command you can delete all cookies, while keeping the cookies of the day only:
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