Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

unable to delete valan info from the dir

Hi All,

I try to delete the vlan.dat from the dir. It comes up with permission delete. Your inputs on this is very helpful.

Thank you,

Siva

7 REPLIES
Hall of Fame Super Bronze

Re: unable to delete valan info from the dir

Siva,

We need more information.

Hardware in question and the exact command being executed.

Can you copy and paste the output while trying to delete the file?

In some platforms, you may need to use the erase command instead of the delete command while removing objects from the file system

Regards

Edison

New Member

Re: unable to delete valan info from the dir

The information follows,

Cisco 4948 Switch. Cisco IOS.

Switch#delete cat4500:vlan.dat

error% permission denied

Thank you,

Siva

Hall of Fame Super Bronze

Re: unable to delete valan info from the dir

Siva,

As I suspected, the command is erase cat4000_flash:

Please refer to the documentation:

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12.2/52sg/command/reference/ch2a_ins.html#wp1736308

New Member

Re: unable to delete valan info from the dir

1. I see that the directory is available with Vlan info:

Switch#dir cat4000_flash:

Directory of cat4000_flash:/

1 -rw- 0 vlan.dat

524280 bytes total (524280 bytes free)

2. I use erase command and it is successful

Switch#erase cat4000_flash:

Erasing the cat4000_flash filesystem will remove all files! Continue? [confirm]y

[OK]

Erase of cat4000_flash: complete

3. It still has the vlan information. how can i delete those vlan info.

Switch#show vlan

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Gi1/1, Gi1/2, Gi1/3, Gi1/4

Gi1/5, Gi1/6, Gi1/7, Gi1/8

Gi1/9, Gi1/10, Gi1/11, Gi1/12

Gi1/13, Gi1/14, Gi1/15, Gi1/16

Gi1/17, Gi1/18, Gi1/19, Gi1/20

Gi1/21, Gi1/22, Gi1/23, Gi1/24

Gi1/25, Gi1/26, Gi1/27, Gi1/28

Gi1/29, Gi1/30, Gi1/31, Gi1/32

Gi1/33, Gi1/34, Gi1/35, Gi1/36

Gi1/37, Gi1/38, Gi1/39, Gi1/40

Gi1/41, Gi1/42, Gi1/43, Gi1/44

Gi1/45, Gi1/46, Gi1/47, Gi1/48

2 Interconnect active

15 VLAN15 active

16 VLAN16 active

1002 fddi-default act/unsup

1003 token-ring-default act/unsup

1004 fddinet-default act/unsup

1005 trnet-default act/unsup

Thank you,

Siva

Hall of Fame Super Silver

Re: unable to delete valan info from the dir

Hello Siva,

reload the switch now that the file is empty

>> 1 -rw- 0 vlan.dat

vlan.dat is read at startup

Hope to help

Giuseppe

New Member

Re: unable to delete valan info from the dir

Thank you for your inputs. YOu are right. When I reload the Switch, it again comes with VLAN.dat information. It seems I am loading the Customised Cisco IOS. How can I load the fresh OS from my desktop to 4948 Switch using Console port. I can access Switch# prompt also rommon>. Please provide steps to load Cisco IOS via Console port. I do not have the Ethernet port connected with the computer to perform tftp.

Thank you,

Siva

Hall of Fame Super Bronze

Re: unable to delete valan info from the dir

If you are getting the Vlan information again, you must verify you aren't connected to other switches where this information is stored. You must understand, the default setting is VTP server where information from other switches will be copied to this switch.

If you want to have a clear vlan.dat file (you will always have one, btw) - you need to shut down all inter-switch links - perform the erase command as I instructed then reboot.

After a reboot, you will have a new vlan.dat and no vlan information after typing 'show vlan' other than the default vlans.

Regards,

Edison.

239
Views
20
Helpful
7
Replies
CreatePlease login to create content