cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4123
Views
0
Helpful
6
Replies

Cannot delete the data.bin file that resides in the Crashinfo directory Catalyst 4500

michael brock
Level 1
Level 1

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.

 

 

1 Accepted Solution

Accepted Solutions

michael brock
Level 1
Level 1

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.

View solution in original post

6 Replies 6

Leo Laohoo
Hall of Fame
Hall of Fame
delete /f /r flash:crashinfo/data

michael brock
Level 1
Level 1

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 

michael brock
Level 1
Level 1

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.

The erase command does not delete crashinfo which means it does not erase everything foreign. According to this link,

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/12-2/15-02SG/configuration/guide/config.pdf

 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.

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.

anyone know which OS version the erase /all non-default command clears the crashinfo. The older version dont clear them.

Review Cisco Networking for a $25 gift card