Logging Files Rotation - Mellanox Technologies Mellanox SX1018 Command Reference Manual

Ethernet managed blade switch
Hide thumbs Also See for Mellanox SX1018:
Table of Contents

Advertisement

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
size-mb
size-percentage
force
number-of-files
Default
10 files are kept by default with rotation criteria of 5% of the log partition size
Modes/Context
Config
History
3.1.0000
Role
admin
Sets rotation criteria according to time. Possible
options are:
Daily
Weekly
Monthly
Sets rotation criteria according to size in mega bytes.
The range is 1-9999.
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).
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.
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.
Mellanox Technologies
Rev 1.6.2
122

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sx1018hp

Table of Contents