04-11-2019 05:02 AM - edited 07-05-2021 10:14 AM
Hello Team,
So we are about to upgrade a wlc pair for our customer and as a pre-requisite we are following the instructions of this document:https://www.cisco.com/c/en/us/support/docs/wireless-mobility/wireless-lan-wlan/213317-understanding-various-ap-ios-flash-corru.html#anc22
The python/pip are successfully installed, edited the config.ini to match our information and gave it a shot.
After a while, the results are printed but It seems that we are facing a fundamental error for all APS:
<snip>
Errors
============================================================
AP connection error: Telnet instance has no attribute 'get_transport': 92
AP connection error: timed out : 15
AP connection error: telnet connection closed: 2
============================================================
Has anyone faced the same error? Any tips/ideas ?
To note, we are using windows server 2012-64bit instead of the Win10 purely because this is the only available server to access the management network of the WLC. Also, telnet client is enabled on the Windows Server.
Thank you
Panayiotis
04-11-2019 06:55 AM
04-11-2019 11:51 PM
Hello Ric,
Yes, thats doable..something else must be causing this behavior but i cant tell for sure...
thanks
04-11-2019 11:46 PM
04-11-2019 11:52 PM
Hello Leo,
Its actually an old one, under 8.2.x, thats why we would like to run the script and then proceed with the upgrade.
Does the script support the 8.2.x releases?
Thanks
04-12-2019 02:04 AM - edited 04-12-2019 02:05 AM
Yes it should. Please note, the script tries to login via ssh or telnet (I think you must configure this first) to each AP and then run some tests. After that you have to restart the script again and it runs some other tests. I can't remember if I run it a third time in total, but I think running it twice is enough.
The testing server should be in the same VLAN as the AP management interface. Make sure telnet/ssh is enabled on the APs (by default it's disabled) and also make sure that the user/pass you configured in the script is identical to the one you have set for the AP management.
And most importantly, use Python 2.x and not version 3. Scripts written for 2.x aren't compatible with 3.x.
04-12-2019 02:17 AM
Hello Patobeli,
The server is indeed in the same vlan as the management vlan of the WLC, not the APs though...
I dont think its a telnet/ssh problem, the credentials are correct.
Please see the log output for a specific ap (all the other APs have the same log )
<snip>
2019-04-08 21:37:26,867 wlanpoller INFO: WLC processing complete; waiting for AP data collection to complete
2019-04-08 21:37:29,253 wlanpoller INFO: KXXXX : AIR-CAP1602I-E-K9 - Connected - IP addr: a.b.c.d
2019-04-08 21:37:29,253 wlanpoller INFO: KXXXX : AIR-CAP1602I-E-K9 - Collecting poller output
..
..
..
2019-04-08 21:38:18,674 wlanpoller CRITICAL: KXXXX : AIR-CAP1602I-E-K9 - Connection error (telnet://a.b.c.d) Telnet instance has no attribute 'get_transport'
<snip>
What do you think?
Thanks
04-12-2019 02:16 AM
04-16-2019 01:18 AM
Hi Leo,
Is there any way to enable additional debugging information for the script?
The failure reason doesnt make any sense and i dont really know how to troubleshoot this further.
Thanks
04-16-2019 01:51 AM
04-16-2019 02:12 AM
Hello Leo,
We have about 500 Access points in total.
Access points failures are not frequent and of course not sure even if the low number of failures is associated with the flash corruption issue.
We are just eager to run the script, identify the candidate Access Points to fail and proceed with the WLC upgrade.
But, the script fails so we are in the dark.
04-16-2019 02:54 AM
04-16-2019 05:36 AM
Hello Patoberli,
checks performed:
from server to wlc:
the script logs-in and retrieves the AP list successfully
from server to APs:
using native telnet on Windows server we can telnet to the AP(s) and log in using the credentials defined in config.ini
I think that this is also depicted below but it doesnt make sense because the script initially reports that its connecting to the AP(s) but then it reports error in connecting using telnet:
snip>
2019-04-08 21:37:26,867 wlanpoller INFO: WLC processing complete; waiting for AP data collection to complete
2019-04-08 21:37:29,253 wlanpoller INFO: KXXXX : AIR-CAP1602I-E-K9 - Connected - IP addr: a.b.c.d
2019-04-08 21:37:29,253 wlanpoller INFO: KXXXX : AIR-CAP1602I-E-K9 - Collecting poller output
..
..
..
2019-04-08 21:38:18,674 wlanpoller CRITICAL: KXXXX : AIR-CAP1602I-E-K9 - Connection error (telnet://a.b.c.d) Telnet instance has no attribute 'get_transport'
<snip>
The way i interpret the Critical error is that the script cant allocate the necessary telnet resource as such it fails, but this is only my understanding...
Thanks
04-16-2019 06:21 AM
04-17-2019 06:59 AM
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