02-18-2024 03:40 AM
Hello,
When we command "show accounting log" , we see 3-4 days ago log of commands. To do see more detailed, we accessed to bash, directory /logflash/controller/accounting.log file, it is 0 byte.
Do you have any experience about this?
regardsi
Solved! Go to Solution.
02-18-2024 04:39 AM
Hello @mahmutaydin90 ,
the accounting logs are located in logflash://sup-active/vdc_1
nx9000-1# dir logflash://sup-active/vdc_1
58281 Feb 18 12:27:46 2024 accounting_log
65419 Feb 18 12:06:21 2024 event_archive_1
If you want to see show commands, you will have to configure:
nx9000-1(config)# terminal log-all
nx9000-1(config)# show accounting log all
Hope this helps.
02-18-2024 04:39 AM
Hello @mahmutaydin90 ,
the accounting logs are located in logflash://sup-active/vdc_1
nx9000-1# dir logflash://sup-active/vdc_1
58281 Feb 18 12:27:46 2024 accounting_log
65419 Feb 18 12:06:21 2024 event_archive_1
If you want to see show commands, you will have to configure:
nx9000-1(config)# terminal log-all
nx9000-1(config)# show accounting log all
Hope this helps.
02-18-2024 04:49 AM
thank you so much. it works. But do you know why I dont see 3 days ago? this log is persistent right?
02-18-2024 05:38 AM
You could use the command show accounting log start-time 2024 Feb 1 00:00:00 for example to see logs begining with Feb 1.
When you issue the command dir logflash://sup-active/vdc_1, you should have some accounting files:
nx9000-1# dir logflash://sup-active/vdc_1
58281 Feb 18 12:27:46 2024 accounting_log
65419 Feb 18 12:06:21 2024 accounting_log.1
Just like you see in linux which uses a log rotation algorithm - the current log is called accounting_log and older logs are saved with accounting_log.1, accounting_log.2, etc.
You could use then the command show file logflash://sup-active/vdc_1/accounting_log.1 to see older events.
02-18-2024 05:55 AM
Actually, when I check log files under vdc_1, there are two log files. However they are also showing as much ac in CLI.
So, I am suspicious why there is not log before 3-4 days.
02-18-2024 08:31 AM
I started my Nexus 9000v in CML on Friday for some testing, so I don't have either logs older than 3 days. I will keep an eye on it for a few days and get back to you with an update.
And Yes, the logs are written to flash so they are persistent across reloads.
02-18-2024 01:23 PM
thank you so much
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide