12-19-2012 01:42 PM - edited 07-03-2021 11:15 PM
Is there a way from the console or from the web interface to dump a list/inventory of LAP's tied to a particular controller, including IP's and serial #'s?
Trying to save myself a ton of work...
Solved! Go to Solution.
12-27-2018 01:40 PM
Thank you for the information, that was very helpful, I will have to explore Python scripting some more.
11-12-2019 04:18 PM
Can you tell me what version of Notepadd++ ? I'm not seeing that plugin.
06-16-2020 04:01 PM
Patrick,
I know this was several years ago, but I was wondering if this script can be modified to pull that Mac Address as well.
Here is what I came up with, but it doesn't seem to work, any ideas?
editor.rereplace(r"(^AP Serial Number.*)", r"\1\r\n#")
editor.rereplace(r"^Cisco AP Name\.+ (.*)|^IP Address\.+ (.*)|^Mac Address\.+ (.*)|^AP Serial Number\.+ (.*)|(?:\w|[-,:./\_()~*$@<>?% ])+", r"\1\2\3\4")
editor.selectAll()
notepad.runMenuCommand("TextFX Edit", "Delete Blank Lines")
editor.rereplace(r"(\w)\r\n", r"\1;")
editor.replace(r";#","")
notepad.runMenuCommand("TextFX Edit", "Delete Blank Lines")
07-01-2020 09:46 AM
Hi,
This script will include the Mac Address:
editor.rereplace(r"(^AP Serial Number.*)", r"\1\r\n#")
editor.rereplace(r"^Cisco AP Name\.+ (.*)|^IP Address\.+ (.*)|^Mac Address\.+ (.*)|^AP Serial Number\.+ (.*)|(?:\w|[-,:./\_()~*$@<>?% ])+", r"\1\2\3\4\5")
editor.selectAll()
notepad.runMenuCommand("TextFX Edit", "Delete Blank Lines")
editor.rereplace(r"(\w)\r\n", r"\1;")
editor.replace(r";#","")
notepad.runMenuCommand("TextFX Edit", "Delete Blank Lines")
11-22-2022 09:27 AM
Still helping 10 years later, thanks Patrick
06-20-2019 03:04 PM
I used grep include "Cisco AP Name|AP Model|AP Serial Number" "show access-point-config" to get the results that I needed. Logged it to a file in my terminal application and then used that file to get the data into Excel.
10-10-2019 01:05 PM
12-19-2020 01:37 AM - edited 12-19-2020 01:49 AM
Hello team,
I know this is an old post but it helped me a lot.
I am trying to get "Vlan support" from all APs.
Is there any way to get all the output at once?
(Cisco Controller) >
(Cisco Controller) >
(Cisco Controller) >config paging disable
(Cisco Controller) >grep include "FlexConnect Vlan mode|Cisco AP Name|AP Model" "show access-point-config"
Press any key to continue..
Cisco AP Name.................................... Hiper_Lucena_Flex_AP13
AP Model......................................... AIR-CAP1702I-E-K9
FlexConnect Vlan mode :.......................... Enabled
Press Enter to continue or <ctrl-z> to abort
Cisco AP Name.................................... Market_Ramblas_Flex_AP05
AP Model......................................... AIR-CAP1702I-E-K9
FlexConnect Vlan mode :.......................... Enabled
Press Enter to continue or <ctrl-z> to abort
Cisco AP Name.................................... Market_Leyre_Flex_AP03
AP Model......................................... AIR-CAP1702I-E-K9
FlexConnect Vlan mode :.......................... Enabled
Press Enter to continue or <ctrl-z> to abort
I have more than 4500 devices and I am trying to get this output and parse it from a script.
Could I disable that "Press enter to continue" in every AP?
12-19-2020 02:19 AM
12-19-2020 03:35 AM
Hello Scott,
I am so sad to hear that.
I have written a script ant it took 288s to check just 10 APs (testing for now).
I will deploy it to check all our devices (as I said more than 4500) and I guess it will take a few hours.
Is there any other way to check this (any other command on WLC)?
I don't know if someone could me to improve this code (by using python 3 and netmiko library):
def chequeo(): # Chequeo de logg print(f"Chequeando equipos") output = "Press Enter" max_loops = 10 contador = 1 while "Press Enter" in output and contador < max_loops: print(f"Chequeando antena {contador}") output = connection.send_command_w_enter('grep include "FlexConnect Vlan mode|Cisco AP Name|IP Address|AP Model" "show access-point-config"') if "Disabled" in output: lineas = output.splitlines() for linea in lineas: if linea.startswith("Cisco AP Name"): antena = linea.split()[-1] elif linea.startswith("AP Model"): modelo = linea.split()[-1] elif linea.startswith("IP Address....."): ip = linea.split()[-1] diccionario = {"antena": antena, "modelo": modelo, "ip": ip} fallos.append(diccionario) print(f"Añadiendo {antena} en la lista") contador += 1
The problem is checking that answer from wlc is so so so so slow.
My goal is to get an output file as this (which I am getting, just need to do it faster):
Fecha antena ip modelo
2020-12-19 Hiper_Lucena_Flex_AP13 10.84.199.33 AIR-CAP1702I-E-K9
2020-12-19 Market_Alcala396_Flex_AP02 10.200.210.232 AIR-CAP1702I-E-K9
12-19-2020 09:53 AM
12-22-2020 09:00 AM
Hello Scott,
When you send that command without greps, you need to press enter after every AP too.
Even when paging disable is enabled.
Believe me, I would love that this device did not work in that way.
I got the output file manually and then I could parse that output, but I am trying to make a full automatic job.
12-22-2020 10:08 AM
12-22-2020 10:45 AM
Hello Scott,
I would love if you could share how can you take all the output.
I am not able to get it., as I said I have to press a key after every configuration AP.
And my script always stop when I have taken 2256 APs (35 minutes).
Can't understand why.
Is there any way to get all AP configuration with just one command?
I could parse that output after, no problem.
12-22-2020 01:44 PM
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