Mellanox MLNX-OS User Manual for SX1018HP Ethernet Managed Blade Switch
Rev 2.10
Mellanox Technologies
195
Mellanox Technologies Confidential
logging files rotation
logging files rotation {criteria { frequency <freq> | size <size-mb>| size-pct <size-
percentage>} | force | max-number <number-of-files>}
Sets the rotation criteria of the logging files.
Syntax Description freq Sets rotation criteria according to time. Possible
options are:
•Daily
• Weekly
• Monthly
size-mb Sets rotation criteria according to size in mega bytes.
The range is 1-9999.
size-percentage Sets rotation criteria according to size in percentage of
the partition where the logging files are kept in. The
percentage given is truncated to three decimal points
(thousandths of a percent).
force Forces an immediate rotation of the log files. This does
not affect the schedule of auto-rotation if it was done
based on time: the next automatic rotation will still
occur at the same time for which it was previously
scheduled. Naturally, if the auto-rotation was based on
size, this will delay it somewhat as it reduces the size of
the active log file to zero.
number-of-files The number of log files will be kept. If the number of
log files ever exceeds this number (either at rotation
time, or when this setting is lowered), the system will
delete as many files as necessary to bring it down to
this number, starting with the oldest.
Default 10 files are kept by default with rotation criteria of 5% of the log partition size
Configuration Mode Config
History 3.1.0000
Role admin










