Network Troubleshooting

TOR Cisco CLI Logs Truncated


📚 Troubleshooting TicketsPart 4 of 4
  1. 1. Cisco 9500 Switch Stack ISSU Role Change
  2. 2. Nexus 9k Switch Reload due to Kernal Panic
  3. 3. Unable to Launch ASDM
  4. 4. TOR Cisco CLI Logs Truncated

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