Discussion:
[rancid] Rancid WLC - no command after login
k***@centrum.cz
2010-12-11 17:29:40 UTC
Permalink
Hello,

I´m trying to set up RANCID to collect my WLC device configurations.

I placed wlogin, ciscowlc and ciscowlc5 in bin directory of the RANCID, then edit /bin/rancid-fe file:

'cisco-wlc' => 'ciscowlc',
'cisco-wlc5' => 'ciscowlc5',

mydevice:ciscowlc:up added to router.db

In log file I found this:

Trying to get all of the configs.
10.0.0.100: error: Error: TIMEOUT reached
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found
10.0.0.100: wlogin error: Error: TIMEOUT reached
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found

After this result I try to test function of wlogin script:

wlogin 10.0.0.100 -> "succesfully" log in to device, but I could not use any command as usually (show, ...)

Any suggestions what is wrong?

Thanks and best regards,

Martin
Ryan West
2010-12-11 20:27:11 UTC
Permalink
Martin,

What version of WLC are you trying to backup?

-ryan

-----Original Message-----
From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of ***@centrum.cz
Sent: Saturday, December 11, 2010 12:30 PM
To: rancid-***@shrubbery.net
Subject: [rancid] Rancid WLC - no command after login


Hello,

I´m trying to set up RANCID to collect my WLC device configurations.

I placed wlogin, ciscowlc and ciscowlc5 in bin directory of the RANCID, then edit /bin/rancid-fe file:

'cisco-wlc' => 'ciscowlc',
'cisco-wlc5' => 'ciscowlc5',

mydevice:ciscowlc:up added to router.db

In log file I found this:

Trying to get all of the configs.
10.0.0.100: error: Error: TIMEOUT reached
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found
10.0.0.100: wlogin error: Error: TIMEOUT reached
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found

After this result I try to test function of wlogin script:

wlogin 10.0.0.100 -> "succesfully" log in to device, but I could not use any command as usually (show, ...)

Any suggestions what is wrong?

Thanks and best regards,

Martin
_______________________________________________
Rancid-discuss mailing list
Rancid-***@shrubbery.net
http://www.shrubbery.net/mailman/listinfo.
k***@centrum.cz
2010-12-12 00:58:56 UTC
Permalink
Hello Ryan,

WLC SW version is 5.2.193.0

Martin

______________________________________________________________
Datum: 11.12.2010 21:27
Předmět: RE: [rancid] Rancid WLC - no command after login
Martin,
What version of WLC are you trying to backup?
-ryan
-----Original Message-----
Sent: Saturday, December 11, 2010 12:30 PM
Subject: [rancid] Rancid WLC - no command after login
Hello,
I´m trying to set up RANCID to collect my WLC device configurations.
'cisco-wlc' => 'ciscowlc',
'cisco-wlc5' => 'ciscowlc5',
mydevice:ciscowlc:up added to router.db
Trying to get all of the configs.
10.0.0.100: error: Error: TIMEOUT reached
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found
10.0.0.100: wlogin error: Error: TIMEOUT reached
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found
wlogin 10.0.0.100 -> "succesfully" log in to device, but I could not use any command as usually (show, ...)
Any suggestions what is wrong?
Thanks and best regards,
Martin
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Ryan West
2010-12-12 14:18:09 UTC
Permalink
Martin,

I assume you're using ciscowlc5? What you're seeing is the timeout when it tries to run one of the variations of show running-config / show running-config all.

Try adding the -d switch and should see where it times out.

-ryan

-----Original Message-----
From: ***@centrum.cz [mailto:***@centrum.cz]
Sent: Saturday, December 11, 2010 7:59 PM
To: Ryan West; rancid-***@shrubbery.net
Subject: RE: [rancid] Rancid WLC - no command after login


Hello Ryan,

WLC SW version is 5.2.193.0

Martin

______________________________________________________________
Datum: 11.12.2010 21:27
Předmět: RE: [rancid] Rancid WLC - no command after login
Martin,
What version of WLC are you trying to backup?
-ryan
-----Original Message-----
Sent: Saturday, December 11, 2010 12:30 PM
Subject: [rancid] Rancid WLC - no command after login
Hello,
I´m trying to set up RANCID to collect my WLC device configurations.
'cisco-wlc' => 'ciscowlc',
'cisco-wlc5' => 'ciscowlc5',
mydevice:ciscowlc:up added to router.db
Trying to get all of the configs.
10.0.0.100: error: Error: TIMEOUT reached
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found
10.0.0.100: wlogin error: Error: TIMEOUT reached
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found
wlogin 10.0.0.100 -> "succesfully" log in to device, but I could not use any command as usually (show, ...)
Any suggestions what is wrong?
Thanks and best regards,
Martin
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-disc
Christopher DeRemer
2010-12-12 15:39:06 UTC
Permalink
Ah ha! I can actually answer a question!

The ciscowlc5 script uses the command show running-config... but for some reason in the 193 code (5.2.193.0) it doesn't like that and outputs some unwanted text:
(Cisco Controller) >show running-config

Notice: "show running-config" has been changed to be an alias to "show run-config".
Use "show run-config commands" to display the configuration commands.
Press Enter to continue or <Ctrl-Z> to abort...

So to fix this I made a separate script which uses a different command table with using the show run-config commands to output the proper commands.

I made one file called ciscowlc151 for the normal command table:
@commandtable = (
{'show udi' => 'ShowUdi'},
{'show sysinfo' => 'ShowSysinfo'},
{'show running-config' => 'ShowConfig'}

And made another file called ciscowlc193 for the 5.2.193.0 code:
@commandtable = (
{'show udi' => 'ShowUdi'},
{'show sysinfo' => 'ShowSysinfo'},
{'show running-config' => 'ShowConfig'}

Then I just added some new rancid-fe device types
'cisco-wlc193' => 'ciscowlc193',
'cisco-wlc151' => 'ciscowlc151',
This allows you to have both code versions in the same environment. I have not tested this on any other versions of code but 5.2.151 and 5.2.193 to see if anything else is a problem. I found this by running the rancid in verbose mode so that I saw the error text come up that was causing the timeout.


Christopher DeRemer, CCENT
Network Administrator
Phoebe Services
484.619.2168 (Single # Reach)


-----Original Message-----
From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Ryan West
Sent: Sunday, December 12, 2010 9:18 AM
To: ***@centrum.cz; Ryan West; rancid-***@shrubbery.net
Subject: Re: [rancid] Rancid WLC - no command after login

Martin,

I assume you're using ciscowlc5? What you're seeing is the timeout when it tries to run one of the variations of show running-config / show running-config all.

Try adding the -d switch and should see where it times out.

-ryan

-----Original Message-----
From: ***@centrum.cz [mailto:***@centrum.cz]
Sent: Saturday, December 11, 2010 7:59 PM
To: Ryan West; rancid-***@shrubbery.net
Subject: RE: [rancid] Rancid WLC - no command after login


Hello Ryan,

WLC SW version is 5.2.193.0

Martin

______________________________________________________________
Datum: 11.12.2010 21:27
Předmět: RE: [rancid] Rancid WLC - no command after login
Martin,
What version of WLC are you trying to backup?
-ryan
-----Original Message-----
Sent: Saturday, December 11, 2010 12:30 PM
Subject: [rancid] Rancid WLC - no command after login
Hello,
I´m trying to set up RANCID to collect my WLC device configurations.
'cisco-wlc' => 'ciscowlc',
'cisco-wlc5' => 'ciscowlc5',
mydevice:ciscowlc:up added to router.db
Trying to get all of the configs.
10.0.0.100: error: Error: TIMEOUT reached
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found
10.0.0.100: wlogin error: Error: TIMEOUT reached
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found
wlogin 10.0.0.100 -> "succesfully" log in to device, but I could not use any command as usually (show, ...)
Any suggestions what is wrong?
Thanks and best regards,
Martin
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
Rancid-***@shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

NOTICE: This confidential message/attachment contains information intended for a specific individual(s). Any inappropriate use, distribution or duplication is strictly prohibited. If received in error, notify the sender and immediately del
k***@centrum.cz
2010-12-13 09:36:48 UTC
Permalink
Hi Ryan,

the major problem is in login process to device - see below:

ejpsrvnetmng01:~# su - rancid
***@ejpsrvnetmng01:~$ /opt/rancid/bin/wlogin 10.20.200.100
10.20.200.100
spawn telnet 10.20.200.100
Trying 10.20.200.100...
Connected to 10.20.200.100.
Escape character is '^]'.

(Cisco Controller)
User: Cisco
Password:**********
(Cisco Controller) >

At this time WLC´s command line don´t work correctly, device don´t accept any usual command (show, clear, ...). Same for SSH method.

If I try to list configuration, this happens:

(Cisco Controller) > show run-config

Error: TIMEOUT reached
***@ejpsrvnetmng01:~$ show run-config
-su: show: command not found
***@ejpsrvnetmng01:~$

When I try simple login - telnet or ssh 10.20.200.100 without using "wlogin" and ".cloginrc" - it works.

ejpsrvnetmng01:~# telnet 10.20.200.100
Trying 10.20.200.100...
Connected to 10.20.200.100.
Escape character is '^]'.

(Cisco Controller)
User: Cisco
Password:**********
(Cisco Controller) >?

clear Clear selected configuration elements.
config Configure switch options and settings.
debug Manages system debug options.
help Help
linktest Perform a link test to a specified MAC address.
logout Exit this session. Any unsaved changes are lost.
ping Send ICMP echo packets to a specified IP address.
mping Send Mobility echo packets to a specified mobility peer IP address.
eping Send Ethernet-over-IP echo packets to a specified mobility peer IP address.
reset Reset options.
save Save switch configurations.
show Display switch options and settings.
test Test trigger commands
transfer Transfer a file to or from the switch.

(Cisco Controller) >

Thanks for help

Martin
______________________________________________________________
Datum: 12.12.2010 15:18
Předmět: RE: [rancid] Rancid WLC - no command after login
Martin,
I assume you're using ciscowlc5? What you're seeing is the timeout when it tries to run one of the variations of show running-config / show running-config all.
Try adding the -d switch and should see where it times out.
-ryan
-----Original Message-----
Sent: Saturday, December 11, 2010 7:59 PM
Subject: RE: [rancid] Rancid WLC - no command after login
Hello Ryan,
WLC SW version is 5.2.193.0
Martin
______________________________________________________________
Datum: 11.12.2010 21:27
Předmět: RE: [rancid] Rancid WLC - no command after login
Martin,
What version of WLC are you trying to backup?
-ryan
-----Original Message-----
Sent: Saturday, December 11, 2010 12:30 PM
Subject: [rancid] Rancid WLC - no command after login
Hello,
I´m trying to set up RANCID to collect my WLC device configurations.
'cisco-wlc' => 'ciscowlc',
'cisco-wlc5' => 'ciscowlc5',
mydevice:ciscowlc:up added to router.db
Trying to get all of the configs.
10.0.0.100: error: Error: TIMEOUT reached
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found
10.0.0.100: wlogin error: Error: TIMEOUT reached
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found
wlogin 10.0.0.100 -> "succesfully" log in to device, but I could not use any command as usually (show, ...)
Any suggestions what is wrong?
Thanks and best regards,
Martin
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Alex DEKKER
2010-12-13 20:23:25 UTC
Permalink
Post by k***@centrum.cz
At this time WLC´s command line don´t work correctly, device don´t accept
any usual command (show, clear, ...). Same for SSH method.
(Cisco Controller) > show run-config
Error: TIMEOUT reached
This looks like a classic autoenable problem - it's waiting to see the
privileged prompt and doesn't, so times out. You will probably find that you
get a TIMEOUT even if you don't type anything.

alexd
k***@centrum.cz
2010-12-14 08:15:49 UTC
Permalink
Hi Alex,

this is exactly my problem:

(Cisco Controller)
User: rancid
Password:******
(Cisco Controller) >
Error: TIMEOUT reached
***@ejpsrvnetmng01:~$

How can I fix this problem with expecting autoenable mode?

Martin
______________________________________________________________
Datum: 13.12.2010 21:24
Předmět: Re: [rancid] Rancid WLC - no command after login
Post by k***@centrum.cz
At this time WLC´s command line don´t work correctly, device don´t accept
any usual command (show, clear, ...). Same for SSH method.
(Cisco Controller) > show run-config
Error: TIMEOUT reached
This looks like a classic autoenable problem - it's waiting to see the
privileged prompt and doesn't, so times out. You will probably find that you
get a TIMEOUT even if you don't type anything.
alexd
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
k***@centrum.cz
2010-12-22 08:07:48 UTC
Permalink
Hello Ryan,

I fixed my 1st problem with login to WLC - in "wlogin" I set up "set avenable 0" (default value - "set avenable 1".

***@ejpsrvnetmng01:~$ /opt/rancid/bin/wlogin 10.0.0.100
10.0.0.100
spawn telnet 10.0.0.100
Trying 10.0.0.100...
Connected to 10.0.0.100
Escape character is '^]'.

(Cisco Controller)
User: Cisco
Password:**********
(Cisco Controller) >
(Cisco Controller) >?

clear Clear selected configuration elements.
config Configure switch options and settings.
debug Manages system debug options.
help Help
linktest Perform a link test to a specified MAC address.
logout Exit this session. Any unsaved changes are lost.
ping Send ICMP echo packets to a specified IP address.
mping Send Mobility echo packets to a specified mobility peer IP address.
eping Send Ethernet-over-IP echo packets to a specified mobility peer IP address.
reset Reset options.
save Save switch configurations.
show Display switch options and settings.
test Test trigger commands
transfer Transfer a file to or from the switch.

(Cisco Controller) >logout
The system has unsaved changes.
Would you like to save them now? (y/N) n
Connection closed by foreign host.
***@ejpsrvnetmng01:~$

But problem with collecting configuration continues. yes, I´m using ciscowlc5.

Below is result with -d parametr:

***@ejpsrvnetmng01:~$ /opt/rancid/bin/ciscowlc5 -d 10.0.0.100
executing wlogin -t 90 -c"show udi;show sysinfo;show run-config commands" 10.0.0.100
sh: wlogin: command not found
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found
10.0.0.100: End of run not found

Thanks

Martin
______________________________________________________________
Datum: 12.12.2010 15:18
Předmět: RE: [rancid] Rancid WLC - no command after login
Martin,
I assume you're using ciscowlc5? What you're seeing is the timeout when it tries to run one of the variations of show running-config / show running-config all.
Try adding the -d switch and should see where it times out.
-ryan
-----Original Message-----
Sent: Saturday, December 11, 2010 7:59 PM
Subject: RE: [rancid] Rancid WLC - no command after login
Hello Ryan,
WLC SW version is 5.2.193.0
Martin
______________________________________________________________
Datum: 11.12.2010 21:27
Předmět: RE: [rancid] Rancid WLC - no command after login
Martin,
What version of WLC are you trying to backup?
-ryan
-----Original Message-----
Sent: Saturday, December 11, 2010 12:30 PM
Subject: [rancid] Rancid WLC - no command after login
Hello,
I´m trying to set up RANCID to collect my WLC device configurations.
'cisco-wlc' => 'ciscowlc',
'cisco-wlc5' => 'ciscowlc5',
mydevice:ciscowlc:up added to router.db
Trying to get all of the configs.
10.0.0.100: error: Error: TIMEOUT reached
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found
10.0.0.100: wlogin error: Error: TIMEOUT reached
10.0.0.100: missed cmd(s): show sysinfo,show udi,show run-config commands
10.0.0.100: End of run not found
wlogin 10.0.0.100 -> "succesfully" log in to device, but I could not use any command as usually (show, ...)
Any suggestions what is wrong?
Thanks and best regards,
Martin
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...