08-07-2019 07:50 AM
I am in need of running debug for a long time (several days). I found where the new Denali code uses set platform software trace commands for debug of RADIUS and dot1x. Did the set commands, and can see debug messages via show platform software trace command. However, I cannot get those messages to log to a syslog server. I can get the "classic debug" for debug cdp to log to syslog, but not the set commands messages.
TAC is working with me, but am hoping someone in the community can get me an answer sooner.
1) Does the new set commands support logging to syslog?
2) Is there a command that needs to be used to get the set platform command messages to log to syslog?
TIA
08-07-2019 08:25 AM
It appears that you can only trace to a local file:
Each process uses btrace infrastructure to log its trace messages. When a process is active, the corresponding in-memory tracelog is found in the directory /tmp/<FRU>/trace/, where <FRU> refers to the location where the process is running (rp, fp, or cc).
When a tracelog file has reached the maximum file size limit allowed for the process, or if the process ends, it gets rotated into the following directory:
/crashinfo/tracelogs, if the crashinfo: partition is available on the switch
/harddisk/tracelogs, if the crashinfo: partition is not available on the switch
The tracelog files are compressed before being stored in the directory.
HTH
08-09-2019 04:35 AM - edited 08-09-2019 04:47 AM
Thanks Reza Sharifi for the link. Sort of what I had found before opening a TAC case. TAC keeps asking for more data, but has not come back saying that it is not possible to log to syslog. Somewhere I found something about a 25 log compressed limit and there was a hard limit of 1 meg for the "running" logs before they are compress and filed. The "request platform software trace archive ...... target" does not allow for an "off device" target such as FTP/TFTP/SCP etc. at least on the code we are running. But I also see with the TAC case that this command is in flux with different versions of IOS.
Link to limits, on page 2 under "tracelog size limit and rotation policy":
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