01-18-2018 07:39 AM - edited 03-08-2019 01:28 PM
We are getting rid of some C4500's and I am clearing all configurations from the switch, but I cannot figure out how to delete the DATA and the DATA.BIN files out of the Crashinfo directory.
Any help is greatly appreciated.
Solved! Go to Solution.
02-02-2018 08:09 AM
Thank you all for the help. Since we are running fairly old Supervisor modules, the recommended commands will not work, as the files are Read Only. I opened a case with Cisco TAC and the had the solution:
SW1#erase /all non-default
Take in to account that this command should erase everything foreign to the switch including the iOS code and configurations.
01-18-2018 12:25 PM
01-18-2018 01:16 PM
Thank you for that, but no dice. Here are the current directories, notice that crashinfo is its own directory.
Switch#dir ?
/all List all files
/recursive List files recursively
all-filesystems List files on all filesystems
bootflash: Directory or file name
cat4000_flash: Directory or file name
cns: Directory or file name
crashinfo: Directory or file name
null: Directory or file name
nvram: Directory or file name
profiler: Directory or file name
slot0: Directory or file name
system: Directory or file name
tar: Directory or file name
tmpsys: Directory or file name
I get this output when i type delete /f /r ?
Switch#del /f /r ?
bootflash: File to be deleted
cat4000_flash: File to be deleted
nvram: File to be deleted
slot0: File to be deleted
Notice that the Crashinfo directory is not present.
I modified the command above just in case to
delete /f /r bootflash:crashinfo/data.bin
No go.
I then tried to delete the crashinfo directory. No go still
delete /f /r crashinfo:/data.bin
Seriously there as to be a way to delete the Data.BIN file, its contain ip addresses and other information
02-02-2018 08:09 AM
Thank you all for the help. Since we are running fairly old Supervisor modules, the recommended commands will not work, as the files are Read Only. I opened a case with Cisco TAC and the had the solution:
SW1#erase /all non-default
Take in to account that this command should erase everything foreign to the switch including the iOS code and configurations.
01-04-2022 07:46 AM
The erase command does not delete crashinfo which means it does not erase everything foreign. According to this link,
the show platform crashdump lists the log buffer (I'm guessing at the time of the crash) which can show change logs such as domain name changes. if anyone comes across a way to remove the crashinfo files please reply.
01-13-2022 09:11 AM
Here is how I was able to remove the old crash files. I did a full factory reset by deleting everything but the bin file and then reset the switch so that logs are cleared. Change longs can show identifiable info if you don't do a reset and then reboot.
Switch#conf t
Switch(config)# exception crashinfo maximum-files 1
Switch(config)# exception coredump maximum-files 1
Switch(config)# exit
Switch# test crash
WARNING: Command selections marked with '(crash router)' will crash router when issued. However a selection 'C' will need tobe issued IMMEDIATELY before these selections to enable them.
Type the number for the selected crash:
--------------------------------------
1 (crash router) Bus Error, due to invalid address access
2 (crash router) Bus Error, due to parity error in Main memory
3 (crash router) Bus Error, due to parity error in I/O memory
4 (crash router) Address Error, due to fetching code from odd address
5 (crash router) Jump to zero
6 (crash router) Software forced crash
? C
Type the number for the selected crash:
--------------------------------------
1 (crash router) Bus Error, due to invalid address access
2 (crash router) Bus Error, due to parity error in Main memory
3 (crash router) Bus Error, due to parity error in I/O memory
4 (crash router) Address Error, due to fetching code from odd address
5 (crash router) Jump to zero
6 (crash router) Software forced crash
? 6
Causing a software forced crash...
Hope this works.
07-06-2023 06:38 AM
anyone know which OS version the erase /all non-default command clears the crashinfo. The older version dont clear them.
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