Hi, <br><br>What does your .cloginrc file look like? I'd hazard a guess that something is missing in there. <br><br>The following config should work for your device<br><br>add user <a href="http://10.10.10.7">10.10.10.7</a> username<br>
add password <a href="http://10.10.10.7">10.10.10.7</a> {password}<br>add autoenable <a href="http://10.10.10.7">10.10.10.7</a> 1<br><br>You can always run clogin <a href="http://10.10.10.7">10.10.10.7</a> (without all the options) to see if your .cloginrc file is being used correctly. <br>
<br>Cheers, <br><br>Gabba<br><br><div class="gmail_quote">On Tue, Jun 17, 2008 at 9:58 PM, Victor Breen <<a href="mailto:victor@impulse.net">victor@impulse.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello!<br>
<br>
I am having some pretty aggravating issues getting a Cisco Cat switch working in Rancid. Perhaps I'm missing something dumb? I'm hoping someone out there can hit me with the clue-by-four.<br>
<br>
I am using Rancid 2.3.1 on a FreeBSD box. The "cisco" devices I have set up poll just fine. This is the only cat5 device I'm attempting to poll so I can't say I've ever gotten one to work before. Just the same, clogin seems to work when I run it manually.<br>
<br>
Here's an example of clogin working fine with the cat5 switch. It does complete but I've snipped the output for less noise:<br>
<br>
<br>
<br>
rancid$ /usr/local/rancid/bin/clogin -autoenable -c "write term" -f<br>
/home/rancid/.cloginrc -u rancid -p (masked) -t 30<br>
<a href="http://10.10.10.7" target="_blank">10.10.10.7</a><br>
<br>
spawn telnet <a href="http://10.10.10.7" target="_blank">10.10.10.7</a><br>
Trying 10.10.10.7...<br>
Connected to <a href="http://10.10.10.7" target="_blank">10.10.10.7</a>.<br>
Escape character is '^]'.<br>
<br>
<br>
Cisco Systems, Inc. Console<br>
<br>
<br>
<br>
<br>
Username: rancid<br>
<br>
<br>
Password:<br>
sw2> (enable)<br>
sw2> (enable) set length 0<br>
Screen length for this session set to 0.<br>
sw2> (enable) set logging session disable<br>
System logging messages will not be sent to the current login session.<br>
sw2> (enable)<br>
sw2> (enable)write term<br>
This command shows non-default configurations only.<br>
Use 'write terminal all' to show both default and non-default<br>
configurations.<br>
.................<br>
<br>
.............................<br>
.............................<br>
..<br>
<br>
begin<br>
!<br>
# ***** NON-DEFAULT CONFIGURATION *****<br>
!<br>
!<br>
#time: Mon Jun 16 2008, 23:43:28<br>
!<br>
#version 8.4(11)GLX<br>
<br>
<snip snip><br>
<br>
<br>
When I run /usr/local/rancid/bin/rancid-run to test the automated method, I see this show up in the log output:<br>
<br>
<br>
<br>
starting: Mon Jun 16 17:09:03 PDT 2008<br>
<br>
<br>
<br>
Trying to get all of the configs.<br>
<a href="http://10.10.10.7" target="_blank">10.10.10.7</a>: missed cmd(s): write term all<br>
=====================================<br>
Getting missed routers: round 1.<br>
<a href="http://10.10.10.7" target="_blank">10.10.10.7</a>: missed cmd(s): write term all<br>
=====================================<br>
Getting missed routers: round 2.<br>
<a href="http://10.10.10.7" target="_blank">10.10.10.7</a>: missed cmd(s): write term all<br>
=====================================<br>
Getting missed routers: round 3.<br>
<a href="http://10.10.10.7" target="_blank">10.10.10.7</a>: missed cmd(s): write term all<br>
=====================================<br>
Getting missed routers: round 4.<br>
<a href="http://10.10.10.7" target="_blank">10.10.10.7</a>: missed cmd(s): write term all<br>
<br>
cvs diff: Diffing .<br>
cvs diff: Diffing configs<br>
cvs commit: Examining .<br>
cvs commit: Examining configs<br>
done<br>
<br>
ending: Mon Jun 16 17:14:02 PDT 2008<br>
<br>
<br>
<br>
<br>
Any help would be greatly appreciated!<br>
<br>
<br>
--<br>
============================================|<br>
Victor Breen<br>
victor at <a href="http://impulse.net" target="_blank">impulse.net</a><br>
|==========================================*|<br>
<br>
<br>
_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><br>
</blockquote></div><br>