cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1180
Views
0
Helpful
4
Replies

WLAN Poller Tool times out for 5520 WLC

girish_gavandi
Level 1
Level 1

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

4 Replies 4

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

Haydn Andrews
VIP Alumni
VIP Alumni

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.

*****Help out other by using the rating system and marking answered questions as "Answered"*****
*** Please rate helpful posts ***

girish_gavandi
Level 1
Level 1

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.

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.

Review Cisco Networking for a $25 gift card