This was an issue I had a long time about regarding a network switch where the logs were truncated. TAC resolved the issue using the below commands on the device. If I recall correctly this was a TOR switch
run bash bash-4.4$ cd /var/volatile/log/hawkey.log bash: cd: /var/volatile/log/hawkey.log: Not a directory bash-4.4
$ cd /var/volatile/log bash-4.4
$ truncate -s 0 hawkey.log truncate: cannot open 'hawkey.log' for writing: Permission denied bash-4.4
$ sudo truncate -s 0 hawkey.log bash-4.4
$ ls -l hawkey.log -rw-r–r-- 1 root root 0 Dec 4 10:42 hawkey.log
Comments