- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2019 04:07 AM - edited 03-08-2019 04:56 PM
Hi all,
When trying to find out the reason of a crash on a router or due to another reason on an IOS-XE device, I was able to view the tracelog files of the different processess of the router (fman, hman, and so on) using the more command: more bootflash:tracelogs/<name_of_file>
But lately I've seen the files are being compressed in gz format, thus now allowing me to print it on the screen. Is it possible to uncompress and print it on the screen using another command or the only way is to export the files to a PC and uncompressing it there? I'm just asking because it is faster and easier for me to print the files "live" rather than having to export it to a laptop. Thanks,
Best regards.
José Manuel.
Solved! Go to Solution.
- Labels:
-
LAN Switching
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2019 05:12 AM
Hello,
I looked around some more, it doesn't work in XE apparently...
--> Extraction of files cannot be performed at the IOS prompt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2020 05:03 PM - edited 03-03-2020 05:05 PM
Starting 16.7, you can do a show log file crashinfo:tracelogs/filename to look at the contents.
For a router, the file will be in bootflash or harddisk instead of the crashinfo directory, so change the path accordingly.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2019 04:18 AM
Hello,
I don't have an XE device available to test this on, but I think if you use the 'gunzip' command, you can uncompress a file, and then use the command you previously used to view the file:
gunzip bootflash:tracelogs/trace1.gz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2019 04:26 AM
Thanks Georg for the fast reply.
Unfortunately, I believe this is a command for NX-OS, not for IOS-XE:
https://www.cisco.com/c/m/en_us/techdoc/dc/reference/cli/n5k/commands/gunzip.html
On my device (ISR 1100 series):
Router#sh ver
Cisco IOS XE Software, Version 16.07.02
Router#g?
% Unrecognized command
Router#gunzip bootflash:tracelogs/cmcc_0-0.27448_901.20191231102411.bin.gz
^
% Invalid input detected at '^' marker.
Best regards.
José Manuel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2019 05:12 AM
Hello,
I looked around some more, it doesn't work in XE apparently...
--> Extraction of files cannot be performed at the IOS prompt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2019 12:14 AM
So I guess there's no other way than exporting it to a PC. Thanks for your help. Best regards,
José Manuel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2020 05:03 PM - edited 03-03-2020 05:05 PM
Starting 16.7, you can do a show log file crashinfo:tracelogs/filename to look at the contents.
For a router, the file will be in bootflash or harddisk instead of the crashinfo directory, so change the path accordingly.
