Discussion:
[rancid] How do i downgrade from 2.3.2a9 to 2.3.2a8
Mina Eskander
2009-02-25 19:09:24 UTC
Permalink
I am having problems contacting my catos switches, I have 2 6509's
I have the type in my router.db as cat5, and clogin works fine, but when I run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.

I read in another post that somebody downgraded to 2.3.2a8 and it works, but I need some help downgrading.
I am running
Linux version 2.6.23.12-52.fc7 (***@xenbuilder4.fedora.phx.redhat.com) (gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))

Please help

Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
***@perimeterwatch.com<mailto:***@perimeterwatch.com>

Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106
Lance Vermilion
2009-02-26 15:55:25 UTC
Permalink
6509's typically run IOS now not CATOS. Paste back to us the version
of your software that you are running on the 6509s.

On Wed, Feb 25, 2009 at 12:09 PM, Mina Eskander
I am having problems contacting my catos switches, I have 2 6509’s
I have the type in my router.db as cat5, and clogin works fine, but when I
run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.
I read in another post that somebody downgraded to 2.3.2a8 and it works, but
I need some help downgrading.
I am running
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))
Please help
Mina Eskander
Perimeterwatch Technologies
Direct:   +1 (347) 448-2845
Mobile:   +1 (347) 510-4102
Network Security | Disaster Recovery | Business Continuity | IT Projects |
Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street – 2nd Floor - Astoria, NY
11106
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Mina Eskander
2009-02-26 16:21:32 UTC
Permalink
The 6509 is running in hybrid mode, the switching modules are running catos 6.4(11) and the routing modules are polling just fine.

switch> (enable) sh ver
WS-C6509 Software, Version NmpSW: 6.4(11)

Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
***@perimeterwatch.com

Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106

-----Original Message-----
From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Lance Vermilion
Sent: Thursday, February 26, 2009 10:55 AM
To: rancid-***@shrubbery.net
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8

6509's typically run IOS now not CATOS. Paste back to us the version
of your software that you are running on the 6509s.

On Wed, Feb 25, 2009 at 12:09 PM, Mina Eskander
Post by Mina Eskander
I am having problems contacting my catos switches, I have 2 6509's
I have the type in my router.db as cat5, and clogin works fine, but when I
run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.
I read in another post that somebody downgraded to 2.3.2a8 and it works, but
I need some help downgrading.
I am running
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))
Please help
Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
Network Security | Disaster Recovery | Business Continuity | IT Projects |
Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Lance Vermilion
2009-02-26 16:30:04 UTC
Permalink
When you login do you start off at the (enable) prompt? If so do you
have autoenable 1 in your .cloginrc for that host?

On Thu, Feb 26, 2009 at 9:21 AM, Mina Eskander
Post by Mina Eskander
The 6509 is running in hybrid mode, the switching modules are running catos 6.4(11) and the routing modules are polling just fine.
switch> (enable) sh ver
WS-C6509 Software, Version NmpSW: 6.4(11)
Mina Eskander
Perimeterwatch Technologies
Direct:   +1 (347) 448-2845
Mobile:   +1 (347) 510-4102
Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106
-----Original Message-----
Sent: Thursday, February 26, 2009 10:55 AM
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
6509's typically run IOS now not CATOS. Paste back to us the version
of your software that you are running on the 6509s.
On Wed, Feb 25, 2009 at 12:09 PM, Mina Eskander
Post by Mina Eskander
I am having problems contacting my catos switches, I have 2 6509's
I have the type in my router.db as cat5, and clogin works fine, but when I
run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.
I read in another post that somebody downgraded to 2.3.2a8 and it works, but
I need some help downgrading.
I am running
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))
Please help
Mina Eskander
Perimeterwatch Technologies
Direct:   +1 (347) 448-2845
Mobile:   +1 (347) 510-4102
Network Security | Disaster Recovery | Business Continuity | IT Projects |
Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Mina Eskander
2009-02-26 16:38:32 UTC
Permalink
I have autoenable set to 0, so rancid has to manually enter the enable password, when I do a clogin <switchname> it logs in and gets into enable mode just fine.
But when I run rancid -d <switchname> I get the following output

[***@pwsecLX bin]$ rancid -d <switchname>
executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" <switchname>
<switchname> clogin error: Error: TIMEOUT reached
<switchname> clogin error: Error: TIMEOUT reached
<switchname>: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin show version,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,admin show variables boot,show redundancy secondary,show running-config,show c7200,dir /all slot1:
<switchname>: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin show version,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,admin show variables boot,show redundancy secondary,show running-config,show c7200,dir /all slot1:
<switchname>: End of run not found
<switchname>: End of run not found
!
[***@pwsecLX bin]$


-----Original Message-----
From: Lance Vermilion [mailto:***@gheek.net]
Sent: Thursday, February 26, 2009 11:30 AM
To: Mina Eskander; rancid-***@shrubbery.net
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8

When you login do you start off at the (enable) prompt? If so do you
have autoenable 1 in your .cloginrc for that host?

On Thu, Feb 26, 2009 at 9:21 AM, Mina Eskander
Post by Mina Eskander
The 6509 is running in hybrid mode, the switching modules are running catos 6.4(11) and the routing modules are polling just fine.
switch> (enable) sh ver
WS-C6509 Software, Version NmpSW: 6.4(11)
-----Original Message-----
Sent: Thursday, February 26, 2009 10:55 AM
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
6509's typically run IOS now not CATOS. Paste back to us the version
of your software that you are running on the 6509s.
On Wed, Feb 25, 2009 at 12:09 PM, Mina Eskander
Post by Mina Eskander
I am having problems contacting my catos switches, I have 2 6509's
I have the type in my router.db as cat5, and clogin works fine, but when I
run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.
I read in another post that somebody downgraded to 2.3.2a8 and it works, but
I need some help downgrading.
I am running
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))
Please help
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Lance Vermilion
2009-02-26 16:54:33 UTC
Permalink
You might want to source the conf file in "<rancid
home>/etc/rancid.conf" to make sure you have all the same environment
variables when you use clogin by default.

It is timing out for a reason and I am not 100% sure why. I would
think because it can't recognize the prompt correctly, or maybe you
have some characters like "#" in your login/banner motd that it is
seeing.

paste back to the list

clogin -c "show time" <host>

On Thu, Feb 26, 2009 at 9:38 AM, Mina Eskander
Post by Mina Eskander
I have autoenable set to 0, so rancid has to manually enter the enable password, when I do a clogin <switchname> it logs in and gets into enable mode just fine.
But when I run rancid -d <switchname> I get the following output
executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" <switchname>
<switchname> clogin error: Error: TIMEOUT reached
<switchname> clogin error: Error: TIMEOUT reached
<switchname>: End of run not found
<switchname>: End of run not found
!
-----Original Message-----
Sent: Thursday, February 26, 2009 11:30 AM
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
When you login do you start off at the (enable) prompt? If so do you
have autoenable 1 in your .cloginrc for that host?
On Thu, Feb 26, 2009 at 9:21 AM, Mina Eskander
Post by Mina Eskander
The 6509 is running in hybrid mode, the switching modules are running catos 6.4(11) and the routing modules are polling just fine.
switch> (enable) sh ver
WS-C6509 Software, Version NmpSW: 6.4(11)
-----Original Message-----
Sent: Thursday, February 26, 2009 10:55 AM
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
6509's typically run IOS now not CATOS. Paste back to us the version
of your software that you are running on the 6509s.
On Wed, Feb 25, 2009 at 12:09 PM, Mina Eskander
Post by Mina Eskander
I am having problems contacting my catos switches, I have 2 6509's
I have the type in my router.db as cat5, and clogin works fine, but when I
run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.
I read in another post that somebody downgraded to 2.3.2a8 and it works, but
I need some help downgrading.
I am running
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))
Please help
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Mina Eskander
2009-02-26 17:03:26 UTC
Permalink
[***@pwsecLX bin]$ clogin -c "show time" <switchname>
<switchname>
spawn telnet <switchname>
Trying <ipadd>...
Connected to <switchname>.
Escape character is '^]'.


Cisco Systems Console


WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.



Username: <username>

Password:
switch> enable

Enter password:
switch> (enable)
switch> (enable) set length 0
Screen length for this session set to 0.
switch> (enable)
Error: TIMEOUT reached
[***@pwsecLX bin]$

Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
***@perimeterwatch.com

Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106


-----Original Message-----
From: Lance Vermilion [mailto:***@gheek.net]
Sent: Thursday, February 26, 2009 11:55 AM
To: Mina Eskander
Cc: rancid-***@shrubbery.net
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8

You might want to source the conf file in "<rancid
home>/etc/rancid.conf" to make sure you have all the same environment
variables when you use clogin by default.

It is timing out for a reason and I am not 100% sure why. I would
think because it can't recognize the prompt correctly, or maybe you
have some characters like "#" in your login/banner motd that it is
seeing.

paste back to the list

clogin -c "show time" <host>

On Thu, Feb 26, 2009 at 9:38 AM, Mina Eskander
Post by Mina Eskander
I have autoenable set to 0, so rancid has to manually enter the enable password, when I do a clogin <switchname> it logs in and gets into enable mode just fine.
But when I run rancid -d <switchname> I get the following output
executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" <switchname>
<switchname> clogin error: Error: TIMEOUT reached
<switchname> clogin error: Error: TIMEOUT reached
<switchname>: End of run not found
<switchname>: End of run not found
!
-----Original Message-----
Sent: Thursday, February 26, 2009 11:30 AM
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
When you login do you start off at the (enable) prompt? If so do you
have autoenable 1 in your .cloginrc for that host?
On Thu, Feb 26, 2009 at 9:21 AM, Mina Eskander
Post by Mina Eskander
The 6509 is running in hybrid mode, the switching modules are running catos 6.4(11) and the routing modules are polling just fine.
switch> (enable) sh ver
WS-C6509 Software, Version NmpSW: 6.4(11)
-----Original Message-----
Sent: Thursday, February 26, 2009 10:55 AM
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
6509's typically run IOS now not CATOS. Paste back to us the version
of your software that you are running on the 6509s.
On Wed, Feb 25, 2009 at 12:09 PM, Mina Eskander
Post by Mina Eskander
I am having problems contacting my catos switches, I have 2 6509's
I have the type in my router.db as cat5, and clogin works fine, but when I
run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.
I read in another post that somebody downgraded to 2.3.2a8 and it works, but
I need some help downgrading.
I am running
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))
Please help
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Lance Vermilion
2009-02-26 17:14:11 UTC
Permalink
Mina,

I am assuming with user interaction it works just fine versus running
the command as a passed in argument.

John,

Any idea why it would recognize the prompt enough to send set term
length 0 but not recognize it afterwards?

On Thu, Feb 26, 2009 at 10:03 AM, Mina Eskander
Post by Mina Eskander
<switchname>
spawn telnet <switchname>
Trying <ipadd>...
Connected to <switchname>.
Escape character is '^]'.
Cisco Systems Console
WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.
Username: <username>
switch> enable
switch> (enable)
switch> (enable) set length 0
Screen length for this session set to 0.
switch> (enable)
Error: TIMEOUT reached
Mina Eskander
Perimeterwatch Technologies
Direct:   +1 (347) 448-2845
Mobile:   +1 (347) 510-4102
Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106
-----Original Message-----
Sent: Thursday, February 26, 2009 11:55 AM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
You might want to source the conf file in "<rancid
home>/etc/rancid.conf" to make sure you have all the same environment
variables when you use clogin by default.
It is timing out for a reason and I am not 100% sure why. I would
think because it can't recognize the prompt correctly, or maybe you
have some characters like "#" in your login/banner motd that it is
seeing.
paste back to the list
 clogin -c "show time" <host>
On Thu, Feb 26, 2009 at 9:38 AM, Mina Eskander
Post by Mina Eskander
I have autoenable set to 0, so rancid has to manually enter the enable password, when I do a clogin <switchname> it logs in and gets into enable mode just fine.
But when I run rancid -d <switchname> I get the following output
executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" <switchname>
<switchname> clogin error: Error: TIMEOUT reached
<switchname> clogin error: Error: TIMEOUT reached
<switchname>: End of run not found
<switchname>: End of run not found
!
-----Original Message-----
Sent: Thursday, February 26, 2009 11:30 AM
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
When you login do you start off at the (enable) prompt? If so do you
have autoenable 1 in your .cloginrc for that host?
On Thu, Feb 26, 2009 at 9:21 AM, Mina Eskander
Post by Mina Eskander
The 6509 is running in hybrid mode, the switching modules are running catos 6.4(11) and the routing modules are polling just fine.
switch> (enable) sh ver
WS-C6509 Software, Version NmpSW: 6.4(11)
-----Original Message-----
Sent: Thursday, February 26, 2009 10:55 AM
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
6509's typically run IOS now not CATOS. Paste back to us the version
of your software that you are running on the 6509s.
On Wed, Feb 25, 2009 at 12:09 PM, Mina Eskander
Post by Mina Eskander
I am having problems contacting my catos switches, I have 2 6509's
I have the type in my router.db as cat5, and clogin works fine, but when I
run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.
I read in another post that somebody downgraded to 2.3.2a8 and it works, but
I need some help downgrading.
I am running
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))
Please help
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Mina Eskander
2009-02-26 17:18:43 UTC
Permalink
If I run clogin -c "show time" <switch> it will do the set length 0 and it looks like its waiting for something.
While its waiting I try to type show run, and it just freezes on me and times out.

If I just do clogin <switch> than I can enter whatever I want and there are no timeouts

Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
***@perimeterwatch.com

Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106


-----Original Message-----
From: Lance Vermilion [mailto:***@gheek.net]
Sent: Thursday, February 26, 2009 12:14 PM
To: Mina Eskander
Cc: rancid-***@shrubbery.net
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8

Mina,

I am assuming with user interaction it works just fine versus running
the command as a passed in argument.

John,

Any idea why it would recognize the prompt enough to send set term
length 0 but not recognize it afterwards?

On Thu, Feb 26, 2009 at 10:03 AM, Mina Eskander
Post by Mina Eskander
<switchname>
spawn telnet <switchname>
Trying <ipadd>...
Connected to <switchname>.
Escape character is '^]'.
Cisco Systems Console
WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.
Username: <username>
switch> enable
switch> (enable)
switch> (enable) set length 0
Screen length for this session set to 0.
switch> (enable)
Error: TIMEOUT reached
Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106
-----Original Message-----
Sent: Thursday, February 26, 2009 11:55 AM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
You might want to source the conf file in "<rancid
home>/etc/rancid.conf" to make sure you have all the same environment
variables when you use clogin by default.
It is timing out for a reason and I am not 100% sure why. I would
think because it can't recognize the prompt correctly, or maybe you
have some characters like "#" in your login/banner motd that it is
seeing.
paste back to the list
clogin -c "show time" <host>
On Thu, Feb 26, 2009 at 9:38 AM, Mina Eskander
Post by Mina Eskander
I have autoenable set to 0, so rancid has to manually enter the enable password, when I do a clogin <switchname> it logs in and gets into enable mode just fine.
But when I run rancid -d <switchname> I get the following output
executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" <switchname>
<switchname> clogin error: Error: TIMEOUT reached
<switchname> clogin error: Error: TIMEOUT reached
<switchname>: End of run not found
<switchname>: End of run not found
!
-----Original Message-----
Sent: Thursday, February 26, 2009 11:30 AM
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
When you login do you start off at the (enable) prompt? If so do you
have autoenable 1 in your .cloginrc for that host?
On Thu, Feb 26, 2009 at 9:21 AM, Mina Eskander
Post by Mina Eskander
The 6509 is running in hybrid mode, the switching modules are running catos 6.4(11) and the routing modules are polling just fine.
switch> (enable) sh ver
WS-C6509 Software, Version NmpSW: 6.4(11)
-----Original Message-----
Sent: Thursday, February 26, 2009 10:55 AM
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
6509's typically run IOS now not CATOS. Paste back to us the version
of your software that you are running on the 6509s.
On Wed, Feb 25, 2009 at 12:09 PM, Mina Eskander
Post by Mina Eskander
I am having problems contacting my catos switches, I have 2 6509's
I have the type in my router.db as cat5, and clogin works fine, but when I
run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.
I read in another post that somebody downgraded to 2.3.2a8 and it works, but
I need some help downgrading.
I am running
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))
Please help
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Mina Eskander
2009-02-26 17:32:13 UTC
Permalink
[***@pwsecLX ~]$ source etc/rancid.conf
[***@pwsecLX ~]$ echo $TERM
network

-----Original Message-----
From: Lance Vermilion [mailto:***@gheek.net]
Sent: Thursday, February 26, 2009 12:30 PM
To: Mina Eskander
Cc: rancid-***@shrubbery.net
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8

I would guess it is something with how the passed ARGs is being
understood. "source <rancid home>/etc/rancid.conf" and do a "echo
$TERM" and see what that returns. it should return "network" if you
actually loaded the "rancid.conf" file.

On Thu, Feb 26, 2009 at 10:18 AM, Mina Eskander
Post by Mina Eskander
If I run clogin -c "show time" <switch> it will do the set length 0 and it looks like its waiting for something.
While its waiting I try to type show run, and it just freezes on me and times out.
If I just do clogin <switch> than I can enter whatever I want and there are no timeouts
-----Original Message-----
Sent: Thursday, February 26, 2009 12:14 PM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
Mina,
I am assuming with user interaction it works just fine versus running
the command as a passed in argument.
John,
Any idea why it would recognize the prompt enough to send set term
length 0 but not recognize it afterwards?
On Thu, Feb 26, 2009 at 10:03 AM, Mina Eskander
Post by Mina Eskander
<switchname>
spawn telnet <switchname>
Trying <ipadd>...
Connected to <switchname>.
Escape character is '^]'.
Cisco Systems Console
WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.
Username: <username>
switch> enable
switch> (enable)
switch> (enable) set length 0
Screen length for this session set to 0.
switch> (enable)
Error: TIMEOUT reached
Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106
-----Original Message-----
Sent: Thursday, February 26, 2009 11:55 AM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
You might want to source the conf file in "<rancid
home>/etc/rancid.conf" to make sure you have all the same environment
variables when you use clogin by default.
It is timing out for a reason and I am not 100% sure why. I would
think because it can't recognize the prompt correctly, or maybe you
have some characters like "#" in your login/banner motd that it is
seeing.
paste back to the list
clogin -c "show time" <host>
On Thu, Feb 26, 2009 at 9:38 AM, Mina Eskander
Post by Mina Eskander
I have autoenable set to 0, so rancid has to manually enter the enable password, when I do a clogin <switchname> it logs in and gets into enable mode just fine.
But when I run rancid -d <switchname> I get the following output
executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" <switchname>
<switchname> clogin error: Error: TIMEOUT reached
<switchname> clogin error: Error: TIMEOUT reached
<switchname>: End of run not found
<switchname>: End of run not found
!
-----Original Message-----
Sent: Thursday, February 26, 2009 11:30 AM
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
When you login do you start off at the (enable) prompt? If so do you
have autoenable 1 in your .cloginrc for that host?
On Thu, Feb 26, 2009 at 9:21 AM, Mina Eskander
Post by Mina Eskander
The 6509 is running in hybrid mode, the switching modules are running catos 6.4(11) and the routing modules are polling just fine.
switch> (enable) sh ver
WS-C6509 Software, Version NmpSW: 6.4(11)
-----Original Message-----
Sent: Thursday, February 26, 2009 10:55 AM
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
6509's typically run IOS now not CATOS. Paste back to us the version
of your software that you are running on the 6509s.
On Wed, Feb 25, 2009 at 12:09 PM, Mina Eskander
Post by Mina Eskander
I am having problems contacting my catos switches, I have 2 6509's
I have the type in my router.db as cat5, and clogin works fine, but when I
run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.
I read in another post that somebody downgraded to 2.3.2a8 and it works, but
I need some help downgrading.
I am running
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))
Please help
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Lance Vermilion
2009-02-26 17:33:37 UTC
Permalink
now run the

clogin -c "show time" <host>

On Thu, Feb 26, 2009 at 10:32 AM, Mina Eskander
Post by Mina Eskander
network
-----Original Message-----
Sent: Thursday, February 26, 2009 12:30 PM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
I would guess it is something with how the passed ARGs is being
understood. "source <rancid home>/etc/rancid.conf" and do a "echo
$TERM" and see what that returns. it should return "network" if you
actually loaded the "rancid.conf" file.
On Thu, Feb 26, 2009 at 10:18 AM, Mina Eskander
Post by Mina Eskander
If I run clogin -c "show time" <switch> it will do the set length 0 and it looks like its waiting for something.
While its waiting I try to type show run, and it just freezes on me and times out.
If I just do clogin <switch> than I can enter whatever I want and there are no timeouts
-----Original Message-----
Sent: Thursday, February 26, 2009 12:14 PM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
Mina,
I am assuming with user interaction it works just fine versus running
the command as a passed in argument.
John,
Any idea why it would recognize the prompt enough to send set term
length 0 but not recognize it afterwards?
On Thu, Feb 26, 2009 at 10:03 AM, Mina Eskander
Post by Mina Eskander
<switchname>
spawn telnet <switchname>
Trying <ipadd>...
Connected to <switchname>.
Escape character is '^]'.
Cisco Systems Console
WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.
Username: <username>
switch> enable
switch> (enable)
switch> (enable) set length 0
Screen length for this session set to 0.
switch> (enable)
Error: TIMEOUT reached
Mina Eskander
Perimeterwatch Technologies
Direct:   +1 (347) 448-2845
Mobile:   +1 (347) 510-4102
Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106
-----Original Message-----
Sent: Thursday, February 26, 2009 11:55 AM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
You might want to source the conf file in "<rancid
home>/etc/rancid.conf" to make sure you have all the same environment
variables when you use clogin by default.
It is timing out for a reason and I am not 100% sure why. I would
think because it can't recognize the prompt correctly, or maybe you
have some characters like "#" in your login/banner motd that it is
seeing.
paste back to the list
 clogin -c "show time" <host>
On Thu, Feb 26, 2009 at 9:38 AM, Mina Eskander
Post by Mina Eskander
I have autoenable set to 0, so rancid has to manually enter the enable password, when I do a clogin <switchname> it logs in and gets into enable mode just fine.
But when I run rancid -d <switchname> I get the following output
executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" <switchname>
<switchname> clogin error: Error: TIMEOUT reached
<switchname> clogin error: Error: TIMEOUT reached
<switchname>: End of run not found
<switchname>: End of run not found
!
-----Original Message-----
Sent: Thursday, February 26, 2009 11:30 AM
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
When you login do you start off at the (enable) prompt? If so do you
have autoenable 1 in your .cloginrc for that host?
On Thu, Feb 26, 2009 at 9:21 AM, Mina Eskander
Post by Mina Eskander
The 6509 is running in hybrid mode, the switching modules are running catos 6.4(11) and the routing modules are polling just fine.
switch> (enable) sh ver
WS-C6509 Software, Version NmpSW: 6.4(11)
-----Original Message-----
Sent: Thursday, February 26, 2009 10:55 AM
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
6509's typically run IOS now not CATOS. Paste back to us the version
of your software that you are running on the 6509s.
On Wed, Feb 25, 2009 at 12:09 PM, Mina Eskander
Post by Mina Eskander
I am having problems contacting my catos switches, I have 2 6509's
I have the type in my router.db as cat5, and clogin works fine, but when I
run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.
I read in another post that somebody downgraded to 2.3.2a8 and it works, but
I need some help downgrading.
I am running
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))
Please help
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Mina Eskander
2009-02-26 17:40:53 UTC
Permalink
[***@pwsecLX ~]$ echo $TERM
network
[***@pwsecLX ~]$ clogin -c "show time" <switch>
nyswt09a
spawn telnet <switch>
Trying <ipadd>
Connected to <switch>
Escape character is '^]'.


Cisco Systems Console


WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.



Username: pwatch

Password:
switch> enable

Enter password:
switch> (enable)
switch> (enable) set length 0
Screen length for this session set to 0.
switch> (enable) show run

Error: TIMEOUT reached
[***@pwsecLX ~]$ show run
-bash: show: command not found
[***@pwsecLX ~]$


It still times out at the same point even if I try to enter show run

-----Original Message-----
From: Lance Vermilion [mailto:***@gheek.net]
Sent: Thursday, February 26, 2009 12:34 PM
To: Mina Eskander
Cc: rancid-***@shrubbery.net
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8

now run the

clogin -c "show time" <host>

On Thu, Feb 26, 2009 at 10:32 AM, Mina Eskander
Post by Mina Eskander
network
-----Original Message-----
Sent: Thursday, February 26, 2009 12:30 PM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
I would guess it is something with how the passed ARGs is being
understood. "source <rancid home>/etc/rancid.conf" and do a "echo
$TERM" and see what that returns. it should return "network" if you
actually loaded the "rancid.conf" file.
On Thu, Feb 26, 2009 at 10:18 AM, Mina Eskander
Post by Mina Eskander
If I run clogin -c "show time" <switch> it will do the set length 0 and it looks like its waiting for something.
While its waiting I try to type show run, and it just freezes on me and times out.
If I just do clogin <switch> than I can enter whatever I want and there are no timeouts
-----Original Message-----
Sent: Thursday, February 26, 2009 12:14 PM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
Mina,
I am assuming with user interaction it works just fine versus running
the command as a passed in argument.
John,
Any idea why it would recognize the prompt enough to send set term
length 0 but not recognize it afterwards?
On Thu, Feb 26, 2009 at 10:03 AM, Mina Eskander
Post by Mina Eskander
<switchname>
spawn telnet <switchname>
Trying <ipadd>...
Connected to <switchname>.
Escape character is '^]'.
Cisco Systems Console
WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.
Username: <username>
switch> enable
switch> (enable)
switch> (enable) set length 0
Screen length for this session set to 0.
switch> (enable)
Error: TIMEOUT reached
Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106
-----Original Message-----
Sent: Thursday, February 26, 2009 11:55 AM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
You might want to source the conf file in "<rancid
home>/etc/rancid.conf" to make sure you have all the same environment
variables when you use clogin by default.
It is timing out for a reason and I am not 100% sure why. I would
think because it can't recognize the prompt correctly, or maybe you
have some characters like "#" in your login/banner motd that it is
seeing.
paste back to the list
clogin -c "show time" <host>
On Thu, Feb 26, 2009 at 9:38 AM, Mina Eskander
Post by Mina Eskander
I have autoenable set to 0, so rancid has to manually enter the enable password, when I do a clogin <switchname> it logs in and gets into enable mode just fine.
But when I run rancid -d <switchname> I get the following output
executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" <switchname>
<switchname> clogin error: Error: TIMEOUT reached
<switchname> clogin error: Error: TIMEOUT reached
<switchname>: End of run not found
<switchname>: End of run not found
!
-----Original Message-----
Sent: Thursday, February 26, 2009 11:30 AM
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
When you login do you start off at the (enable) prompt? If so do you
have autoenable 1 in your .cloginrc for that host?
On Thu, Feb 26, 2009 at 9:21 AM, Mina Eskander
Post by Mina Eskander
The 6509 is running in hybrid mode, the switching modules are running catos 6.4(11) and the routing modules are polling just fine.
switch> (enable) sh ver
WS-C6509 Software, Version NmpSW: 6.4(11)
-----Original Message-----
Sent: Thursday, February 26, 2009 10:55 AM
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
6509's typically run IOS now not CATOS. Paste back to us the version
of your software that you are running on the 6509s.
On Wed, Feb 25, 2009 at 12:09 PM, Mina Eskander
Post by Mina Eskander
I am having problems contacting my catos switches, I have 2 6509's
I have the type in my router.db as cat5, and clogin works fine, but when I
run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.
I read in another post that somebody downgraded to 2.3.2a8 and it works, but
I need some help downgrading.
I am running
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))
Please help
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Lance Vermilion
2009-02-26 17:56:49 UTC
Permalink
Rancid is not recognizing the prompt for some reason.

Did this work on a8 or any versions before?

On Thu, Feb 26, 2009 at 10:40 AM, Mina Eskander
Post by Mina Eskander
network
nyswt09a
spawn telnet <switch>
Trying <ipadd>
Connected to <switch>
Escape character is '^]'.
Cisco Systems Console
WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.
Username: pwatch
switch> enable
switch> (enable)
switch> (enable) set length 0
Screen length for this session set to 0.
switch> (enable) show run
Error: TIMEOUT reached
-bash: show: command not found
It still times out at the same point even if I try to enter show run
-----Original Message-----
Sent: Thursday, February 26, 2009 12:34 PM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
now run the
clogin -c "show time" <host>
On Thu, Feb 26, 2009 at 10:32 AM, Mina Eskander
Post by Mina Eskander
network
-----Original Message-----
Sent: Thursday, February 26, 2009 12:30 PM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
I would guess it is something with how the passed ARGs is being
understood. "source <rancid home>/etc/rancid.conf" and do a "echo
$TERM" and see what that returns. it should return "network" if you
actually loaded the "rancid.conf" file.
On Thu, Feb 26, 2009 at 10:18 AM, Mina Eskander
Post by Mina Eskander
If I run clogin -c "show time" <switch> it will do the set length 0 and it looks like its waiting for something.
While its waiting I try to type show run, and it just freezes on me and times out.
If I just do clogin <switch> than I can enter whatever I want and there are no timeouts
-----Original Message-----
Sent: Thursday, February 26, 2009 12:14 PM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
Mina,
I am assuming with user interaction it works just fine versus running
the command as a passed in argument.
John,
Any idea why it would recognize the prompt enough to send set term
length 0 but not recognize it afterwards?
On Thu, Feb 26, 2009 at 10:03 AM, Mina Eskander
Post by Mina Eskander
<switchname>
spawn telnet <switchname>
Trying <ipadd>...
Connected to <switchname>.
Escape character is '^]'.
Cisco Systems Console
WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.
Username: <username>
switch> enable
switch> (enable)
switch> (enable) set length 0
Screen length for this session set to 0.
switch> (enable)
Error: TIMEOUT reached
Mina Eskander
Perimeterwatch Technologies
Direct:   +1 (347) 448-2845
Mobile:   +1 (347) 510-4102
Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106
-----Original Message-----
Sent: Thursday, February 26, 2009 11:55 AM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
You might want to source the conf file in "<rancid
home>/etc/rancid.conf" to make sure you have all the same environment
variables when you use clogin by default.
It is timing out for a reason and I am not 100% sure why. I would
think because it can't recognize the prompt correctly, or maybe you
have some characters like "#" in your login/banner motd that it is
seeing.
paste back to the list
 clogin -c "show time" <host>
On Thu, Feb 26, 2009 at 9:38 AM, Mina Eskander
Post by Mina Eskander
I have autoenable set to 0, so rancid has to manually enter the enable password, when I do a clogin <switchname> it logs in and gets into enable mode just fine.
But when I run rancid -d <switchname> I get the following output
executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" <switchname>
<switchname> clogin error: Error: TIMEOUT reached
<switchname> clogin error: Error: TIMEOUT reached
<switchname>: End of run not found
<switchname>: End of run not found
!
-----Original Message-----
Sent: Thursday, February 26, 2009 11:30 AM
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
When you login do you start off at the (enable) prompt? If so do you
have autoenable 1 in your .cloginrc for that host?
On Thu, Feb 26, 2009 at 9:21 AM, Mina Eskander
Post by Mina Eskander
The 6509 is running in hybrid mode, the switching modules are running catos 6.4(11) and the routing modules are polling just fine.
switch> (enable) sh ver
WS-C6509 Software, Version NmpSW: 6.4(11)
-----Original Message-----
Sent: Thursday, February 26, 2009 10:55 AM
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
6509's typically run IOS now not CATOS. Paste back to us the version
of your software that you are running on the 6509s.
On Wed, Feb 25, 2009 at 12:09 PM, Mina Eskander
Post by Mina Eskander
I am having problems contacting my catos switches, I have 2 6509's
I have the type in my router.db as cat5, and clogin works fine, but when I
run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.
I read in another post that somebody downgraded to 2.3.2a8 and it works, but
I need some help downgrading.
I am running
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))
Please help
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Hank Kilmer
2009-02-26 18:09:27 UTC
Permalink
Post by Mina Eskander
network
nyswt09a
spawn telnet <switch>
Trying <ipadd>
Connected to <switch>
Escape character is '^]'.
Cisco Systems Console
WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.
Username: pwatch
switch> enable
switch> (enable)
switch> (enable) set length 0
Screen length for this session set to 0.
switch> (enable) show run
Error: TIMEOUT reached
-bash: show: command not found
This looks like a prompt recognition problem.
Mina Eskander
2009-02-26 18:10:24 UTC
Permalink
Do you have any recommendation on how to resolve it? Or how to troubleshoot it?

Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
***@perimeterwatch.com

Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106


-----Original Message-----
From: Hank Kilmer [mailto:***@rem.com]
Sent: Thursday, February 26, 2009 1:09 PM
To: Mina Eskander
Cc: Lance Vermilion; rancid-***@shrubbery.net
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
Post by Mina Eskander
network
nyswt09a
spawn telnet <switch>
Trying <ipadd>
Connected to <switch>
Escape character is '^]'.
Cisco Systems Console
WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.
Username: pwatch
switch> enable
switch> (enable)
switch> (enable) set length 0
Screen length for this session set to 0.
switch> (enable) show run
Error: TIMEOUT reached
-bash: show: command not found
This looks like a prompt recognition problem.
Lance Vermilion
2009-02-26 17:29:43 UTC
Permalink
I would guess it is something with how the passed ARGs is being
understood. "source <rancid home>/etc/rancid.conf" and do a "echo
$TERM" and see what that returns. it should return "network" if you
actually loaded the "rancid.conf" file.

On Thu, Feb 26, 2009 at 10:18 AM, Mina Eskander
Post by Mina Eskander
If I run clogin -c "show time" <switch> it will do the set length 0 and it looks like its waiting for something.
While its waiting I try to type show run, and it just freezes on me and times out.
If I just do clogin <switch> than I can enter whatever I want and there are no timeouts
Mina Eskander
Perimeterwatch Technologies
Direct:   +1 (347) 448-2845
Mobile:   +1 (347) 510-4102
Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106
-----Original Message-----
Sent: Thursday, February 26, 2009 12:14 PM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
Mina,
I am assuming with user interaction it works just fine versus running
the command as a passed in argument.
John,
Any idea why it would recognize the prompt enough to send set term
length 0 but not recognize it afterwards?
On Thu, Feb 26, 2009 at 10:03 AM, Mina Eskander
Post by Mina Eskander
<switchname>
spawn telnet <switchname>
Trying <ipadd>...
Connected to <switchname>.
Escape character is '^]'.
Cisco Systems Console
WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.
Username: <username>
switch> enable
switch> (enable)
switch> (enable) set length 0
Screen length for this session set to 0.
switch> (enable)
Error: TIMEOUT reached
Mina Eskander
Perimeterwatch Technologies
Direct:   +1 (347) 448-2845
Mobile:   +1 (347) 510-4102
Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106
-----Original Message-----
Sent: Thursday, February 26, 2009 11:55 AM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
You might want to source the conf file in "<rancid
home>/etc/rancid.conf" to make sure you have all the same environment
variables when you use clogin by default.
It is timing out for a reason and I am not 100% sure why. I would
think because it can't recognize the prompt correctly, or maybe you
have some characters like "#" in your login/banner motd that it is
seeing.
paste back to the list
 clogin -c "show time" <host>
On Thu, Feb 26, 2009 at 9:38 AM, Mina Eskander
Post by Mina Eskander
I have autoenable set to 0, so rancid has to manually enter the enable password, when I do a clogin <switchname> it logs in and gets into enable mode just fine.
But when I run rancid -d <switchname> I get the following output
executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" <switchname>
<switchname> clogin error: Error: TIMEOUT reached
<switchname> clogin error: Error: TIMEOUT reached
<switchname>: End of run not found
<switchname>: End of run not found
!
-----Original Message-----
Sent: Thursday, February 26, 2009 11:30 AM
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
When you login do you start off at the (enable) prompt? If so do you
have autoenable 1 in your .cloginrc for that host?
On Thu, Feb 26, 2009 at 9:21 AM, Mina Eskander
Post by Mina Eskander
The 6509 is running in hybrid mode, the switching modules are running catos 6.4(11) and the routing modules are polling just fine.
switch> (enable) sh ver
WS-C6509 Software, Version NmpSW: 6.4(11)
-----Original Message-----
Sent: Thursday, February 26, 2009 10:55 AM
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
6509's typically run IOS now not CATOS. Paste back to us the version
of your software that you are running on the 6509s.
On Wed, Feb 25, 2009 at 12:09 PM, Mina Eskander
Post by Mina Eskander
I am having problems contacting my catos switches, I have 2 6509's
I have the type in my router.db as cat5, and clogin works fine, but when I
run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.
I read in another post that somebody downgraded to 2.3.2a8 and it works, but
I need some help downgrading.
I am running
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))
Please help
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2009-02-26 18:40:11 UTC
Permalink
Post by Lance Vermilion
Mina,
I am assuming with user interaction it works just fine versus running
the command as a passed in argument.
John,
Any idea why it would recognize the prompt enough to send set term
length 0 but not recognize it afterwards?
Maybe its running on freebsd? Or someone has altered the script? or
its on Linux and the patch hasnt been applied to expect?

Only expect tracing will tell. clogin -d -c 'show time' hostname
Post by Lance Vermilion
On Thu, Feb 26, 2009 at 10:03 AM, Mina Eskander
Post by Mina Eskander
<switchname>
spawn telnet <switchname>
Trying <ipadd>...
Connected to <switchname>.
Escape character is '^]'.
Cisco Systems Console
WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.
Username: <username>
switch> enable
switch> (enable)
switch> (enable) set length 0
Screen length for this session set to 0.
switch> (enable)
Error: TIMEOUT reached
Mina Eskander
Perimeterwatch Technologies
Direct: ? +1 (347) 448-2845
Mobile: ? +1 (347) 510-4102
Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106
-----Original Message-----
Sent: Thursday, February 26, 2009 11:55 AM
To: Mina Eskander
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
You might want to source the conf file in "<rancid
home>/etc/rancid.conf" to make sure you have all the same environment
variables when you use clogin by default.
It is timing out for a reason and I am not 100% sure why. I would
think because it can't recognize the prompt correctly, or maybe you
have some characters like "#" in your login/banner motd that it is
seeing.
paste back to the list
?clogin -c "show time" <host>
On Thu, Feb 26, 2009 at 9:38 AM, Mina Eskander
Post by Mina Eskander
I have autoenable set to 0, so rancid has to manually enter the enable password, when I do a clogin <switchname> it logs in and gets into enable mode just fine.
But when I run rancid -d <switchname> I get the following output
executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" <switchname>
<switchname> clogin error: Error: TIMEOUT reached
<switchname> clogin error: Error: TIMEOUT reached
<switchname>: End of run not found
<switchname>: End of run not found
!
-----Original Message-----
Sent: Thursday, February 26, 2009 11:30 AM
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
When you login do you start off at the (enable) prompt? If so do you
have autoenable 1 in your .cloginrc for that host?
On Thu, Feb 26, 2009 at 9:21 AM, Mina Eskander
Post by Mina Eskander
The 6509 is running in hybrid mode, the switching modules are running catos 6.4(11) and the routing modules are polling just fine.
switch> (enable) sh ver
WS-C6509 Software, Version NmpSW: 6.4(11)
-----Original Message-----
Sent: Thursday, February 26, 2009 10:55 AM
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
6509's typically run IOS now not CATOS. Paste back to us the version
of your software that you are running on the 6509s.
On Wed, Feb 25, 2009 at 12:09 PM, Mina Eskander
Post by Mina Eskander
I am having problems contacting my catos switches, I have 2 6509's
I have the type in my router.db as cat5, and clogin works fine, but when I
run rancid or cat5rancid it just hangs after getting into enable mode.
I have autoenable set to 0 so it has to enter the enable password.
I read in another post that somebody downgraded to 2.3.2a8 and it works, but
I need some help downgrading.
I am running
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-27))
Please help
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2009-02-26 18:42:42 UTC
Permalink
Post by john heasley
Post by Lance Vermilion
Mina,
I am assuming with user interaction it works just fine versus running
the command as a passed in argument.
John,
Any idea why it would recognize the prompt enough to send set term
length 0 but not recognize it afterwards?
Maybe its running on freebsd? Or someone has altered the script? or
Sorry, to explain the freebsd comment; at one point they imported a
version of expect or patched it or whatever in/into frebssd-ports and
a few things were broken, globs among them and regexes were acting
funny.
Mina Eskander
2009-02-26 19:16:29 UTC
Permalink
I don't really understand regex, but here is the output


[***@pwsecLX ~]$ clogin -d -c 'show time' <switch>
<switch>
spawn telnet <switch>
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {28516}

expect: does "" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "" (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does "" (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no
Trying <ipadd>...
Connected to <switch>.
Escape character is '^]'.

expect: does "Trying <ipadd>...\r\r\nConnected to <switch>.\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "Trying <ipadd>...\r\r\nConnected to <switch>.\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does "Trying <ipadd>...\r\r\nConnected to <switch>.\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no


Cisco Systems Console


WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.



Username:
expect: does "Trying <ipadd>...\r\r\nConnected to <switch>.\r\r\nEscape character is '^]'.\r\r\n\r\n\r\nCisco Systems Console\r\n\r\n\r\nWARNING!!!\r\nThis system is solely for the use of authorized users for official purposes.\r\nYou have no expectation of privacy in its use and to ensure that the system\r\nis functioning properly, individuals using this computer system are subject\r\nto having all of their activities monitored and recorded by system\r\npersonnel. Use of this system evidences an express consent to such\r\nmonitoring and agreement that if such monitoring reveals evidence of\r\npossible abuse or criminal activity, system personnel may provide the results\r\nof such monitoring to appropriate officials.\r\n\r\n\r\n\r\nUsername: " (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "Trying <ipadd>...\r\r\nConnected to <switch>.\r\r\nEscape character is '^]'.\r\r\n\r\n\r\nCisco Systems Console\r\n\r\n\r\nWARNING!!!\r\nThis system is solely for the use of authorized users for official purposes.\r\nYou have no expectation of privacy in its use and to ensure that the system\r\nis functioning properly, individuals using this computer system are subject\r\nto having all of their activities monitored and recorded by system\r\npersonnel. Use of this system evidences an express consent to such\r\nmonitoring and agreement that if such monitoring reveals evidence of\r\npossible abuse or criminal activity, system personnel may provide the results\r\nof such monitoring to appropriate officials.\r\n\r\n\r\n\r\nUsername: " (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does "Trying <ipadd>...\r\r\nConnected to <switch>.\r\r\nEscape character is '^]'.\r\r\n\r\n\r\nCisco Systems Console\r\n\r\n\r\nWARNING!!!\r\nThis system is solely for the use of authorized users for official purposes.\r\nYou have no expectation of privacy in its use and to ensure that the system\r\nis functioning properly, individuals using this computer system are subject\r\nto having all of their activities monitored and recorded by system\r\npersonnel. Use of this system evidences an express consent to such\r\nmonitoring and agreement that if such monitoring reveals evidence of\r\npossible abuse or criminal activity, system personnel may provide the results\r\nof such monitoring to appropriate officials.\r\n\r\n\r\n\r\nUsername: " (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? yes
expect: set expect_out(0,string) "Username:"
expect: set expect_out(1,string) "Username"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "Trying <ipadd>...\r\r\nConnected to <switch>.\r\r\nEscape character is '^]'.\r\r\n\r\n\r\nCisco Systems Console\r\n\r\n\r\nWARNING!!!\r\nThis system is solely for the use of authorized users for official purposes.\r\nYou have no expectation of privacy in its use and to ensure that the system\r\nis functioning properly, individuals using this computer system are subject\r\nto having all of their activities monitored and recorded by system\r\npersonnel. Use of this system evidences an express consent to such\r\nmonitoring and agreement that if such monitoring reveals evidence of\r\npossible abuse or criminal activity, system personnel may provide the results\r\nof such monitoring to appropriate officials.\r\n\r\n\r\n\r\nUsername:"
send: sending "<username>\r" to { exp6 }
expect: continuing expect

expect: does " " (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " " (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does " " (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no
<username>

Password:
expect: does " <username>\r\r\n\r\nPassword: " (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " <username>\r\r\n\r\nPassword: " (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does " <username>\r\r\n\r\nPassword: " (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? yes
expect: set expect_out(0,string) "Password:"
expect: set expect_out(1,string) "Password"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " <username>\r\r\n\r\nPassword:"
send: sending "<password>\r" to { exp6 }
expect: continuing expect

expect: does " " (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " " (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does " " (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no

expect: does " \r" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " \r" (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does " \r" (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no


expect: does " \r\r\n" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " \r\r\n" (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does " \r\r\n" (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no
N
expect: does " \r\r\nN" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " \r\r\nN" (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does " \r\r\nN" (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no
YSWT09A>
expect: does " \r\r\n<switch>> " (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " \r\r\n<switch>> " (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does " \r\r\n<switch>> " (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? yes
expect: set expect_out(0,string) ">"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " \r\r\n<switch>>"
send: sending "enable\r" to { exp6 }

expect: does " " (spawn_id exp6) match regular expression "(Username|Login|login|user name|User):"? no
"[Pp]assword:"? no
"#"? no
"(enable)"? no
"(denied|Sorry|Incorrect)"? no
"% Error in authentication"? no
"% Bad passwords"? no
enable

Enter password:
expect: does " enable\r\r\n\r\nEnter password: " (spawn_id exp6) match regular expression "(Username|Login|login|user name|User):"? no
"[Pp]assword:"? yes
expect: set expect_out(0,string) "password:"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " enable\r\r\n\r\nEnter password:"
send: sending "<enablePassword>\r" to { exp6 }
expect: continuing expect

expect: does " " (spawn_id exp6) match regular expression "(Username|Login|login|user name|User):"? no
"[Pp]assword:"? no
"#"? no
"(enable)"? no
"(denied|Sorry|Incorrect)"? no
"% Error in authentication"? no
"% Bad passwords"? no

expect: does " \r" (spawn_id exp6) match regular expression "(Username|Login|login|user name|User):"? no
"[Pp]assword:"? no
"#"? no
"(enable)"? no
"(denied|Sorry|Incorrect)"? no
"% Error in authentication"? no
"% Bad passwords"? no


expect: does " \r\r\n" (spawn_id exp6) match regular expression "(Username|Login|login|user name|User):"? no
"[Pp]assword:"? no
"#"? no
"(enable)"? no
"(denied|Sorry|Incorrect)"? no
"% Error in authentication"? no
"% Bad passwords"? no
<switch>> (enable)
expect: does " \r\r\n<switch>> (enable) " (spawn_id exp6) match regular expression "(Username|Login|login|user name|User):"? no
"[Pp]assword:"? no
"#"? no
"(enable)"? yes
expect: set expect_out(0,string) "(enable)"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " \r\r\n<switch>> (enable)"
send: sending "\r" to { exp6 }

expect: does " " (spawn_id exp6) match regular expression "[\r\n]+"? no
"^(.+[:.])1 (> (enable) )"? no
"^.+> (enable) "? no
"^.+> \(enable\)"? no

expect: does " \r" (spawn_id exp6) match regular expression "[\r\n]+"? yes
expect: set expect_out(0,string) "\r"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " \r"
expect: continuing expect

expect: does "" (spawn_id exp6) match regular expression "[\r\n]+"? no
"^(.+[:.])1 (> (enable) )"? no
"^.+> (enable) "? no
"^.+> \(enable\)"? no

<switch>> (enable)
expect: does "\r\n<switch>> (enable) " (spawn_id exp6) match regular expression "[\r\n]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "\r\n"
expect: continuing expect

expect: does "<switch>> (enable) " (spawn_id exp6) match regular expression "[\r\n]+"? no
"^(.+[:.])1 (> (enable) )"? no
"^.+> (enable) "? no
"^.+> \(enable\)"? yes
expect: set expect_out(0,string) "<switch>> (enable)"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "<switch>> (enable)"
send: sending "set length 0\r" to { exp6 }

expect: does " " (spawn_id exp6) match regular expression "<switch>> \\(enable\\)"? no
"[\n\r]+"? no
s
expect: does " s" (spawn_id exp6) match regular expression "<switch>> \\(enable\\)"? no
"[\n\r]+"? no
et length 0
Screen length for this session set to 0.
<switch>> (enable)
expect: does " set length 0\r\r\nScreen length for this session set to 0.\r\n<switch>> (enable) " (spawn_id exp6) match regular expression "<switch>> \\(enable\\)"? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\r\n"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " set length 0\r\r\n"
expect: continuing expect

expect: does "Screen length for this session set to 0.\r\n<switch>> (enable) " (spawn_id exp6) match regular expression "<switch>> \\(enable\\)"? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "Screen length for this session set to 0.\r\n"
expect: continuing expect

expect: does "<switch>> (enable) " (spawn_id exp6) match regular expression "<switch>> \\(enable\\)"? no
"[\n\r]+"? no
expect: timed out

Error: TIMEOUT reached
write() failed to write anything - will sleep(1) and retry...
[***@pwsecLX ~]$


Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
***@perimeterwatch.com

Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106


-----Original Message-----
From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of john heasley
Sent: Thursday, February 26, 2009 1:43 PM
To: Lance Vermilion
Cc: rancid-***@shrubbery.net
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
Post by john heasley
Post by Lance Vermilion
Mina,
I am assuming with user interaction it works just fine versus running
the command as a passed in argument.
John,
Any idea why it would recognize the prompt enough to send set term
length 0 but not recognize it afterwards?
Maybe its running on freebsd? Or someone has altered the script? or
Sorry, to explain the freebsd comment; at one point they imported a
version of expect or patched it or whatever in/into frebssd-ports and
a few things were broken, globs among them and regexes were acting
funny.
Mina Eskander
2009-02-27 18:15:48 UTC
Permalink
So it looks like the problem is with the regular expression matching, can anybody help me as to why and how to fix it?
Here is where it fails, it doesn't know it is in enable mode

expect: does "<switch>> (enable) " (spawn_id exp6) match regular expression "<switch>> \\(enable\\)"? no
"[\n\r]+"? no
expect: timed out

Error: TIMEOUT reached
write() failed to write anything - will sleep(1) and retry...
[***@pwsecLX ~]$


Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
***@perimeterwatch.com

Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106


-----Original Message-----
From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Mina Eskander
Sent: Thursday, February 26, 2009 2:16 PM
To: john heasley; Lance Vermilion
Cc: rancid-***@shrubbery.net
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8

I don't really understand regex, but here is the output


[***@pwsecLX ~]$ clogin -d -c 'show time' <switch>
<switch>
spawn telnet <switch>
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {28516}

expect: does "" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "" (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does "" (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no
Trying <ipadd>...
Connected to <switch>.
Escape character is '^]'.

expect: does "Trying <ipadd>...\r\r\nConnected to <switch>.\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "Trying <ipadd>...\r\r\nConnected to <switch>.\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does "Trying <ipadd>...\r\r\nConnected to <switch>.\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no


Cisco Systems Console


WARNING!!!
This system is solely for the use of authorized users for official purposes.
You have no expectation of privacy in its use and to ensure that the system
is functioning properly, individuals using this computer system are subject
to having all of their activities monitored and recorded by system
personnel. Use of this system evidences an express consent to such
monitoring and agreement that if such monitoring reveals evidence of
possible abuse or criminal activity, system personnel may provide the results
of such monitoring to appropriate officials.



Username:
expect: does "Trying <ipadd>...\r\r\nConnected to <switch>.\r\r\nEscape character is '^]'.\r\r\n\r\n\r\nCisco Systems Console\r\n\r\n\r\nWARNING!!!\r\nThis system is solely for the use of authorized users for official purposes.\r\nYou have no expectation of privacy in its use and to ensure that the system\r\nis functioning properly, individuals using this computer system are subject\r\nto having all of their activities monitored and recorded by system\r\npersonnel. Use of this system evidences an express consent to such\r\nmonitoring and agreement that if such monitoring reveals evidence of\r\npossible abuse or criminal activity, system personnel may provide the results\r\nof such monitoring to appropriate officials.\r\n\r\n\r\n\r\nUsername: " (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "Trying <ipadd>...\r\r\nConnected to <switch>.\r\r\nEscape character is '^]'.\r\r\n\r\n\r\nCisco Systems Console\r\n\r\n\r\nWARNING!!!\r\nThis system is solely for the use of authorized users for official purposes.\r\nYou have no expectation of privacy in its use and to ensure that the system\r\nis functioning properly, individuals using this computer system are subject\r\nto having all of their activities monitored and recorded by system\r\npersonnel. Use of this system evidences an express consent to such\r\nmonitoring and agreement that if such monitoring reveals evidence of\r\npossible abuse or criminal activity, system personnel may provide the results\r\nof such monitoring to appropriate officials.\r\n\r\n\r\n\r\nUsername: " (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does "Trying <ipadd>...\r\r\nConnected to <switch>.\r\r\nEscape character is '^]'.\r\r\n\r\n\r\nCisco Systems Console\r\n\r\n\r\nWARNING!!!\r\nThis system is solely for the use of authorized users for official purposes.\r\nYou have no expectation of privacy in its use and to ensure that the system\r\nis functioning properly, individuals using this computer system are subject\r\nto having all of their activities monitored and recorded by system\r\npersonnel. Use of this system evidences an express consent to such\r\nmonitoring and agreement that if such monitoring reveals evidence of\r\npossible abuse or criminal activity, system personnel may provide the results\r\nof such monitoring to appropriate officials.\r\n\r\n\r\n\r\nUsername: " (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? yes
expect: set expect_out(0,string) "Username:"
expect: set expect_out(1,string) "Username"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "Trying <ipadd>...\r\r\nConnected to <switch>.\r\r\nEscape character is '^]'.\r\r\n\r\n\r\nCisco Systems Console\r\n\r\n\r\nWARNING!!!\r\nThis system is solely for the use of authorized users for official purposes.\r\nYou have no expectation of privacy in its use and to ensure that the system\r\nis functioning properly, individuals using this computer system are subject\r\nto having all of their activities monitored and recorded by system\r\npersonnel. Use of this system evidences an express consent to such\r\nmonitoring and agreement that if such monitoring reveals evidence of\r\npossible abuse or criminal activity, system personnel may provide the results\r\nof such monitoring to appropriate officials.\r\n\r\n\r\n\r\nUsername:"
send: sending "<username>\r" to { exp6 }
expect: continuing expect

expect: does " " (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " " (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does " " (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no
<username>

Password:
expect: does " <username>\r\r\n\r\nPassword: " (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " <username>\r\r\n\r\nPassword: " (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does " <username>\r\r\n\r\nPassword: " (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? yes
expect: set expect_out(0,string) "Password:"
expect: set expect_out(1,string) "Password"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " <username>\r\r\n\r\nPassword:"
send: sending "<password>\r" to { exp6 }
expect: continuing expect

expect: does " " (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " " (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does " " (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no

expect: does " \r" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " \r" (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does " \r" (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no


expect: does " \r\r\n" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " \r\r\n" (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does " \r\r\n" (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no
N
expect: does " \r\r\nN" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " \r\r\nN" (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does " \r\r\nN" (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no
YSWT09A>
expect: does " \r\r\n<switch>> " (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " \r\r\n<switch>> " (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does " \r\r\n<switch>> " (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd):"? no
">"? yes
expect: set expect_out(0,string) ">"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " \r\r\n<switch>>"
send: sending "enable\r" to { exp6 }

expect: does " " (spawn_id exp6) match regular expression "(Username|Login|login|user name|User):"? no
"[Pp]assword:"? no
"#"? no
"(enable)"? no
"(denied|Sorry|Incorrect)"? no
"% Error in authentication"? no
"% Bad passwords"? no
enable

Enter password:
expect: does " enable\r\r\n\r\nEnter password: " (spawn_id exp6) match regular expression "(Username|Login|login|user name|User):"? no
"[Pp]assword:"? yes
expect: set expect_out(0,string) "password:"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " enable\r\r\n\r\nEnter password:"
send: sending "<enablePassword>\r" to { exp6 }
expect: continuing expect

expect: does " " (spawn_id exp6) match regular expression "(Username|Login|login|user name|User):"? no
"[Pp]assword:"? no
"#"? no
"(enable)"? no
"(denied|Sorry|Incorrect)"? no
"% Error in authentication"? no
"% Bad passwords"? no

expect: does " \r" (spawn_id exp6) match regular expression "(Username|Login|login|user name|User):"? no
"[Pp]assword:"? no
"#"? no
"(enable)"? no
"(denied|Sorry|Incorrect)"? no
"% Error in authentication"? no
"% Bad passwords"? no


expect: does " \r\r\n" (spawn_id exp6) match regular expression "(Username|Login|login|user name|User):"? no
"[Pp]assword:"? no
"#"? no
"(enable)"? no
"(denied|Sorry|Incorrect)"? no
"% Error in authentication"? no
"% Bad passwords"? no
<switch>> (enable)
expect: does " \r\r\n<switch>> (enable) " (spawn_id exp6) match regular expression "(Username|Login|login|user name|User):"? no
"[Pp]assword:"? no
"#"? no
"(enable)"? yes
expect: set expect_out(0,string) "(enable)"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " \r\r\n<switch>> (enable)"
send: sending "\r" to { exp6 }

expect: does " " (spawn_id exp6) match regular expression "[\r\n]+"? no
"^(.+[:.])1 (> (enable) )"? no
"^.+> (enable) "? no
"^.+> \(enable\)"? no

expect: does " \r" (spawn_id exp6) match regular expression "[\r\n]+"? yes
expect: set expect_out(0,string) "\r"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " \r"
expect: continuing expect

expect: does "" (spawn_id exp6) match regular expression "[\r\n]+"? no
"^(.+[:.])1 (> (enable) )"? no
"^.+> (enable) "? no
"^.+> \(enable\)"? no

<switch>> (enable)
expect: does "\r\n<switch>> (enable) " (spawn_id exp6) match regular expression "[\r\n]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "\r\n"
expect: continuing expect

expect: does "<switch>> (enable) " (spawn_id exp6) match regular expression "[\r\n]+"? no
"^(.+[:.])1 (> (enable) )"? no
"^.+> (enable) "? no
"^.+> \(enable\)"? yes
expect: set expect_out(0,string) "<switch>> (enable)"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "<switch>> (enable)"
send: sending "set length 0\r" to { exp6 }

expect: does " " (spawn_id exp6) match regular expression "<switch>> \\(enable\\)"? no
"[\n\r]+"? no
s
expect: does " s" (spawn_id exp6) match regular expression "<switch>> \\(enable\\)"? no
"[\n\r]+"? no
et length 0
Screen length for this session set to 0.
<switch>> (enable)
expect: does " set length 0\r\r\nScreen length for this session set to 0.\r\n<switch>> (enable) " (spawn_id exp6) match regular expression "<switch>> \\(enable\\)"? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\r\n"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " set length 0\r\r\n"
expect: continuing expect

expect: does "Screen length for this session set to 0.\r\n<switch>> (enable) " (spawn_id exp6) match regular expression "<switch>> \\(enable\\)"? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "Screen length for this session set to 0.\r\n"
expect: continuing expect

expect: does "<switch>> (enable) " (spawn_id exp6) match regular expression "<switch>> \\(enable\\)"? no
"[\n\r]+"? no
expect: timed out

Error: TIMEOUT reached
write() failed to write anything - will sleep(1) and retry...
[***@pwsecLX ~]$


Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
***@perimeterwatch.com

Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106


-----Original Message-----
From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of john heasley
Sent: Thursday, February 26, 2009 1:43 PM
To: Lance Vermilion
Cc: rancid-***@shrubbery.net
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
Post by john heasley
Post by Lance Vermilion
Mina,
I am assuming with user interaction it works just fine versus running
the command as a passed in argument.
John,
Any idea why it would recognize the prompt enough to send set term
length 0 but not recognize it afterwards?
Maybe its running on freebsd? Or someone has altered the script? or
Sorry, to explain the freebsd comment; at one point they imported a
version of expect or patched it or whatever in/into frebssd-ports and
a few things were broken, globs among them and regexes were acting
funny.
john heasley
2009-02-27 19:58:05 UTC
Permalink
Post by Mina Eskander
So it looks like the problem is with the regular expression matching, can anybody help me as to why and how to fix it?
Here is where it fails, it doesn't know it is in enable mode
expect: does "<switch>> (enable) " (spawn_id exp6) match regular expression "<switch>> \\(enable\\)"? no
"[\n\r]+"? no
expect: timed out
Error: TIMEOUT reached
write() failed to write anything - will sleep(1) and retry...
thats right; but i need to look it more close before I can suggest the
proper fix.
john heasley
2009-03-02 18:44:36 UTC
Permalink
Post by Mina Eskander
So it looks like the problem is with the regular expression matching, can anybody help me as to why and how to fix it?
Here is where it fails, it doesn't know it is in enable mode
expect: does "<switch>> (enable) " (spawn_id exp6) match regular expression "<switch>> \\(enable\\)"? no
\\(enable\\)

the double \s are wrong, those should be single \s, escaping the ()s. I
believe i broke it trying to deal with CSR's funky prompts.

would you try the attached patch?
Mina Eskander
2009-03-02 18:46:09 UTC
Permalink
How do I do install the patch? Just replace those files?

Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
***@perimeterwatch.com

Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106


-----Original Message-----
From: john heasley [mailto:***@shrubbery.net]
Sent: Monday, March 02, 2009 1:45 PM
To: Mina Eskander
Cc: john heasley; Lance Vermilion; rancid-***@shrubbery.net
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
Post by Mina Eskander
So it looks like the problem is with the regular expression matching, can anybody help me as to why and how to fix it?
Here is where it fails, it doesn't know it is in enable mode
expect: does "<switch>> (enable) " (spawn_id exp6) match regular
expression "<switch>> \\(enable\\)"? no
\\(enable\\)

the double \s are wrong, those should be single \s, escaping the ()s. I believe i broke it trying to deal with CSR's funky prompts.

would you try the attached patch?
Mina Eskander
2009-03-03 20:53:02 UTC
Permalink
I changed to the directory where clogin is located /usr/local/rancid/bin
And ran the following command:
patch -b -p0 < clogin.in.diff

here is the output

[***@pwsecLX bin]# patch -b -p0 < clogin.in.diff
patching file clogin.in
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n] y
Hunk #1 FAILED at 572.
Hunk #2 FAILED at 611.
Hunk #3 FAILED at 852.
3 out of 3 hunks FAILED -- saving rejects to file clogin.in.rej

Did I do something wrong?

Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
***@perimeterwatch.com

Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106


-----Original Message-----
From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Mina Eskander
Sent: Monday, March 02, 2009 1:46 PM
To: john heasley
Cc: rancid-***@shrubbery.net
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8

How do I do install the patch? Just replace those files?

Mina Eskander
Perimeterwatch Technologies
Direct: +1 (347) 448-2845
Mobile: +1 (347) 510-4102
***@perimeterwatch.com

Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106


-----Original Message-----
From: john heasley [mailto:***@shrubbery.net]
Sent: Monday, March 02, 2009 1:45 PM
To: Mina Eskander
Cc: john heasley; Lance Vermilion; rancid-***@shrubbery.net
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8
Post by Mina Eskander
So it looks like the problem is with the regular expression matching, can anybody help me as to why and how to fix it?
Here is where it fails, it doesn't know it is in enable mode
expect: does "<switch>> (enable) " (spawn_id exp6) match regular
expression "<switch>> \\(enable\\)"? no
\\(enable\\)

the double \s are wrong, those should be single \s, escaping the ()s. I believe i broke it trying to deal with CSR's funky prompts.

would you try the attached patch?
john heasley
2009-03-04 22:47:24 UTC
Permalink
Wed, Mar 04, 2009 at 08:46:58AM -0500, Mina Eskander:
...
I didn't modify the other lines, and it seems like its working
The complete patch is attached for anyone who needs it.

Loading...