sonic-utilities
sonic-utilities copied to clipboard
Add sonic-clear logging command
###What I did Added command sonic-clear logging - delete syslog & syslog.1 sonic-clear logging -a/--all - delete syslog* files
###How I did it Equivalent to "show logging" command, working on files at /var/log or at /var/log.tmpfs delete relevant syslog* files
###How to verify it clear logging when no syslog files exist clear logging when only syslog file exist clear logging when syslog & syslog.1 files exits clear logging when syslog, syslog.1 and syslog2.gz files exits Repeat 1-4 with Clear logging --all
verify also that show logging behave correctly after clear
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)
@mihirpat1 would you be able to review?