Mellanox MLNX-OS User Manual for SX1018HP Ethernet Managed Blade Switch
Rev 2.10
Mellanox Technologies
199
Mellanox Technologies Confidential
logging debug-files
logging debug-files {delete {current | oldest} | rotation {criteria | force | max-
num} | update {<number> | current}}
Configures settings for debug log files.
Syntax Description delete {current | oldest} Deletes certain debug-log files.
• current: Deletes the current active debug-log file
• oldest: Deletes some of the oldest debug-log files
rotation {criteria
{frequency {daily |
weekly | monthly} | size
<size> | size-pct
<percentage>} | force |
max-num}
Configures automatic rotation of debug-logging files.
• criteria: Sets how the system decides when to rotate
debug files.
• frequency: Rotate log files on a fixed time-based
schedule
• size: Rotate log files when they pass a size threshold
in megabytes
• size-pct: Rotate logs when they surpass a specified
percentage of disk
• forces: Forces an immediate rotation of the log files
• max-num: Specifies the maximum number of old log files
to keep
update {<number> |
current}
Uploads a local debug-log file to a remote host.
• current: Uploads log file “messages” to a remote host
• number: Uploads compressed log file “debug.<num-
ber>.gz” to a remote host. Range is 1-10.
Default N/A
Configuration Mode Config
History 3.3.4150
Role admin
Example
switch (config) # logging debug-files delete current
switch (config) #
Related Commands
Note










