[rancid] Re: Cisco IOS versus Cisco PIX and term width 80

john heasley heas at shrubbery.net
Mon Feb 9 23:13:28 UTC 2009


Sat, Feb 07, 2009 at 04:45:52PM -0600, Jason Ellison:
> About the modification breaking my pix monitoring...
> 
> Here is my modification to clogin
> 
> root at monitor:/usr/local/rancid# diff -uN
> /usr/local/src/rancid-2.3.2a9/bin/clogin bin/clogin
> --- /usr/local/src/rancid-2.3.2a9/bin/clogin    2009-02-03
> 18:19:46.000000000 -0600
> +++ bin/clogin  2009-02-07 15:24:16.000000000 -0600
> @@ -610,6 +610,7 @@
>             set command "set logging session disable;$command"
>         } else {
>             send "terminal length 0\r"
> +           send "terminal width 80\r"
>         }
>         # escape any parens in the prompt, such as "(enable)"
>         regsub -all {[)(]} $prompt {\\&} reprompt
> @@ -875,6 +876,7 @@
>             send "set logging session disable\r"
>         } else {
>             send "terminal length 0\r"
> +           send "terminal width 80\r"
>         }
>         expect -re $prompt      {}
>         source $sfile
> 

because it is important that the login script keep track of prompts to
avoid, among other things, matching things in output that look like
prompts, you must match prompts that you trigger and you haven't done
that here.  this is most likely why it fails.

> TCP stream of rancid connecting to the pix (cleaned)...

*login -d host is normally far more useful output for debugging the
login scripts.


More information about the Rancid-discuss mailing list