12-14-2019 08:54 AM - edited 07-05-2021 11:25 AM
Hi,
I am trying to run the WLAN poller tool against WLC 5520. User authentication is via ACS. I am using AAA credentials for the poller tool to authenticate for WLC and AP. But when I run the tool, i see error message that the WLC failed to respond.
Is there any way to increase timeout for the WLC authentication in the poller tool .ini file?
Any help is much appreciated.
Many Thanks,
Girish
12-16-2019 11:36 PM
Hi,
Can't change the timeout, but make sure that you have the WLCs information correct in the file. Check if the IP is set correctly, the poller might just not be able to reach it. See if the ACS is able to register someone attempting to authenticate to the WLC.
Cheers
12-18-2019 01:18 PM
ran it against a WLC with TACACS auth and it works fine with no tweeks to the script other than the WLC details and credentials.
02-12-2020 05:59 AM
Hello All,
Update:
While working with the TAC engineer, I found that the logon timer is set for 15 secs in the libCuwn.py file. Our issue was the WLC would expect an additional new line character to be entered manually before it could accept the credentials for successful logon.
TAC engineer suggested for a little modification within the libCuwn.py file to get around the problem. This new script will be tested soon. Will post the outcome accordingly.
04-19-2020 01:35 PM
Sorry for the late response but just to close the thread with a solution.
We used the debugging command "wlanpoller --cli-d", and it was showing continuous "Login timeout:".
The extra enter is needed after first login:
Same behavior happens with secureCRT and putty
Same behavior with and without banner.
Performed below changes to the login function under libcuwn.py library, this way 2 enters will be sent before getting the “User/Password” prompt:
def login(self): login_status = False # initialize login status attempts = 0 if self.wlc.mode == 'telnet': while not login_status: data = self.session.expect(self.login_match) if data[0] == 0: # username prompt self.session.write(self.wlc.username+"\n") elif data[0] == 1: # password prompt self.session.write(self.wlc.password+'\n') elif data[0] == 2: # exec, go to enable login_status = True else: self.session.write("\n") elif self.wlc.mode == 'ssh': data = self.cli.recv(512) # print data[2] try: self.cli.send("\n") time.sleep(5) self.cli.send("\n") time.sleep(5) print("slept 10 secs") data = self.cli.recv(2048) if verbose: print(data) if "User:" in data: # username prompt self.cli.send(self.wlc.username+"\n") print ("Entered user section") time.sleep(5) data = self.cli.recv(512) if data.endswith(self.login_match[1]): # password prompt self.cli.send(self.wlc.password+'\n') print ("Entered Password section") time.sleep(5) data = self.cli.recv(512) if data.endswith(self.login_match[2]): print("Logged in to WLC") login_status = True return login_status except: raise if not self.paging: self.sendcommand("config paging disable") return login_status
Hope this helps for those who still have the issue.
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