Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash

Status
Not open for further replies.

Flyers01

Technical User
May 19, 2008
62
US
How can this happen a rename configs in the flash


Directory of flash:/

88 drwx 192 Feb 28 1993 19:22:48 -05:00 c3550-i5k2l2q3-mz.121-22.EA4
3 -rwx 0 Feb 28 1993 19:23:04 -05:00 env_vars
4 -rwx 346 Feb 28 1993 19:23:04 -05:00 system_env_vars
2 -rwx 616 Feb 28 1993 19:00:52 -05:00 vlan.dat
5 -rwx 616 Mar 16 2009 01:37:31 -05:00 vlan.dat.renamed
6 -rwx 13223 Mar 16 2009 10:26:39 -05:00 config.text
7 -rwx 1530 Mar 16 2009 10:26:39 -05:00 private-config.text
8 -rwx 1048 Mar 16 2009 10:26:39 -05:00 multiple-fs
9 -rwx 13397 Feb 25 2009 14:16:40 -05:00 config.text.renamed
10 -rwx 1956 Feb 25 2009 14:16:40 -05:00 private-config.text.renamed
 
Dude anyone who logs in with the priviledged access can do that.

the commands I used in my lab to do this were:

rename flash:vlan.dat flash:vlan.dat.renamed

then when I created a set of new vlans, I got a new vlan.dat file.

I would guess maybe you are looking at a switch that has had other duties in it's life and someone tried to save off the configs or maybe just wanted to start fresh without completely wiping them out.
 
I also rename config file while doing the recover password.
 
The IOS can create these .renamed files.

If you have express-setup enabled, and you press and hold the mode button. The switch renames the config and vlan files then reboots.

 
Exacty---just do a more...

switch#more flash:/config.text.renamed

and compare it to

switch#more flash:/config.text

Same with any other file that does not have the "d" in the mods (for directory). It does not support many more UNIX type commands like grep, cat, chmod, etc.

Burt
 
One more note---if you want to pipe for a grep, just use the "incl" keyword instead of grep.

Burt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top