Wireless Access

Reply
Occasional Contributor II

How to delete 100 VLANs from the controller the efficient way? CLI?

Hi guys,

A newbie here with Aruba.

We took over the wireless management of one of our buildings. It has Aruba Wireless (3600 controller w/ AP105) deployed there and now need some of your expertise so I can integrate it to our network.

 

First, I need to delete 100s of unused VLANs from the controller.

Is there an easy way to do it from the CLI instead of the GUI since the GUI is basically one-click-at-a-time method that's time consuming?

I've been researching all over and the only thing that I found is how to add 100s VLAN through the CLI but zero article about deleting them.

I could reset it to default and start over but since it's in a production environment, I'd prefer to do it slowly.

 

TIA for the help.

Guru Elite

Re: How to delete 100 VLANs from the controller the efficient way? CLI?

no vlan range x-y



Colin Joseph
Aruba Customer Engineering

Looking for an Answer? Search the Community Knowledge Base Here: Community Knowledge Base

Guru Elite

Re: How to delete 100 VLANs from the controller the efficient way? CLI?

The CLI command would be
no vlan x



Thanks,
Tim

Tim Cappalli | Aruba Security TME
@timcappalli | timcappalli.me | ACMX #367 / ACCX #480
Occasional Contributor II

Re: How to delete 100 VLANs from the controller the efficient way? CLI?

Holy Crap! That was superfast respond.

 

Thank you!

Contributor I

Re: How to delete 100 VLANs from the controller the efficient way? CLI?

Hi guys, i have ip addresses attached to 300+ vlans i need to delete.  Is there a more efficient way to delete ips from the vlans?  The controller will not let me delete a vlan without removing the ip attached to the vlan interface.

 

tks!

Contributor I

Re: How to delete 100 VLANs from the controller the efficient way? CLI?

Hi Guys,

Any idea is theres a to delete the multiple ip address associated to the vlans at mass?  I have 300+ vlans to delete from 2 controllers each and each one of those vlans have ips on them.

 

thanks,

Alfredo

Occasional Contributor II

Re: How to delete 100 VLANs from the controller the efficient way? CLI?

Hopefully, Collin could help you with that. I'm not an expert with the Aruba stuff. :( 

Re: How to delete 100 VLANs from the controller the efficient way? CLI?

Notepad++ is great for that type of stuff:

First you need to remove the IP under the Layer 3 VLAN to be able to remove the Layer 2 VLAN

REMOVE IP ADDRESS:

The easiest way is to go into the CLI run the show running-config | begin interface
Once you obtain all the information already configured, just copy and paste in Notepad ++

For example
Interface vlan 2
Ip address x.x.x.x x.x.x.x

Grab the “ip address” and replace it with “no ip address” and that will replace all the IPs under each Layer 3 VLAN

Interface vlan 2
No ip address

And the copy and paste

REMOVE VLAN:

Then go back to the CLI and do a show vlan and that will provide all the VLANs configured in the controller, just copy and paste in Notepad ++

For example
vlan 2

And grab the “v” and replace it with “no v” and then that will remove all the VLANs.

No vlan 2

And the copy and paste
Thank you

Victor Fabian
Lead Mobility Engineer @ Integration Partners
AMFX | ACMX | ACDX | ACCX | CWAP | CWDP | CWNA
Contributor I

Re: How to delete 100 VLANs from the controller the efficient way? CLI?

Here's what helped for me.  Sorry I cross posted in another thread as well.

 

 Another method I found was with the use of excel and notepad ++.  the cli command i was after interms of scripting was

 

interface vlan <ID> no ip address

but i needed to do this 600 times per controller x 4 :-)

 

- On an Excel spread sheet. I did the following;

  - column 1 : interface vlan

  - column 2 : <vlan id>

  - column 3 : no ip address

I did a file down from so i was able to get vlan id's 10-11 for instanace

so essentially it looked like this

 

no vlan 10 ipaddress

no vlan 11 ip address

no vlan 12 ip address

etc......

 

Copied and pasted all the filled cells in notepadd++

select all, edit -> Blank operations -> TAB to Space

copied the text/cli commands from notepad ++

 

pated in cli via putty and and voila.

 

It seems more convuleded than it really is.  It took roughly 5 minutes to get rid of 600 vlans on each of our 4 of my controllers.

 

I attached a test excel sheet along with the test txt file that has had the TAB converted in notepadd++.

NOTE: You will need to convert the TAB to spaces so the cli commands will work properly.  If you have not converted the TAB to spaces the controller will not like the pasted commands :-) 

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: