[rancid] francid on MLX and edge case behaviors.
Nick Buraglio
buraglio at illinois.edu
Wed Feb 25 23:28:09 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This began on the f-nsp list here: http://www.mail-archive.com/foundry-nsp@puck.nether.net/msg01603.html
Anyway, I was having trouble getting flogin to work against MLX code
3.9.00a over ssh. Long story short, the user I had set up had lower
privilege and couldn't support the "skip-page-display" command that
francid was expecting. Since I have more experience with pretty much
every network vendor other than foundry, I thought this may just be
what I like to call a "foundry-ism". Anyway, I solved this (possibly
not the best way) by just changing flogin to call "terminal length 0"
since the MLX code supports it and there are no foundries managed by
this instance of rancid that don't.
If anyone happens to have the one-off problems that I had, here is a
simple fix:
- --- flogin.orig 2009-02-25 17:07:12.000000000 -0600
+++ flogin 2009-02-25 15:58:49.000000000 -0600
@@ -506,7 +506,8 @@
global in_proc
set in_proc 1
- - send "skip-page-display\r"
+# send "skip-page-display\r"
+ send "terminal length 0\r"
expect -re "$prompt" {}
set commands [split $command \;]
@@ -677,7 +678,8 @@
}
} elseif { $do_script } {
# fucking foundry
- - send "skip-page-display\r"
+ #send "skip-page-display\r"
+ send "terminal length 0\r"
expect -re $prompt {}
source $sfile
catch {close};
I thought I'd just post what I did, even if it is suboptimal, just in
case it could help someone else down the line.
- ---
Nick Buraglio
Network Engineer, CITES, University of Illinois
GPG key 0x2E5B44F4
Phone: 217.244.6428
buraglio at illinois.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkml1AkACgkQFOm2Sy5bRPQ9AQCfQER1BpUjn0RALvuwa+yVWXBi
nmoAn1fccXtm0dIVjR4OG7ug4OZsLrGF
=Ue0S
-----END PGP SIGNATURE-----
More information about the Rancid-discuss
mailing list