From afort at staff.webcentral.com.au Fri Mar 30 06:34:38 2001 From: afort at staff.webcentral.com.au (Andrew Fort) Date: Fri, 30 Mar 2001 16:34:38 +1000 Subject: alogin, arancid, anyone? Message-ID: <415DD4BF903BD311A3D900A0C99F902209606A75@bnc.webcentral.com.au> Okay, I've got a working arancid/alogin for testing, based on rancid-2.1 (2.1 final, not 2.1b). At the moment, it only does a measley '/info/sys' and a '/cfg/dump'. If you notice any other useful info that should go into the CVS, please let me know what commmand you use to get that (perhaps the iSD-SSL stuff, I dont have one of those) and some sample output if it's from something other than a SLB-software AD3. Please note, I would expect this will stall the rancid processes every now and then when it comes across input it doesn't expect. If you notice it do so (check the logs), can you send me what input is causing to stall? (and if the same occurs with alogin alone, let me know this also). The following is a patch against the rancid-2.1 source. Rename the dir to rancid-2.1-alteon, then apply the patch from the /usr/local/src dir, if you extracted your source into /usr/local/src (patch -p0 < patchfile). In addition, you need to take the two files attached and place them in the /usr/local/src/rancid-2.1-alteon/bin dir. Then run autoconf in /usr/local/src/rancid-2.1-alteon directory, then configure. The only files that have changed are alogin, arancid (new) and rancid-fe (changed), so install them manually if you like. If doing a 'make install', backup your $PREFIX/bin/env first. To use it, add hosts to the relevant groups router.db files like so: csw4.bne:alteon:up and place a .cloginrc entry like so add password csw4.bne {adminpass} The password needs to be the 'administrator' level user password (the only userlevel who is allowed to /cfg/dump). I haven't tested with ssh yet; it probably doesn't work at this point, even if you have a client which sends a SSH_VERSION that the 8.1 series SSH software likes (it doesn't like SSH-1.5-OpenBSD.* , for instance, in 8.1.18-SSH). RADIUS auth is likely broken also - I dont use a radius server so I may require some help in testing this, or someone who can hack it to work from my patches. If you run into any other problems, or have badly handled input problems, please let me know. Also, please let me know what hardware it does run on out of the box- I've only tested on the AD3, but a 180 series I hope it would work fine running 8.x software. It may even work on an old AceSwitch 110 running 4.x software for all i know. I'm on holidays for the next week (yay), the best way to reach me is at afort at choqolat.org the patch: diff -ru rancid-2.1/bin/rancid-fe.in rancid-2.1-alteon/bin/rancid-fe.in --- rancid-2.1/bin/rancid-fe.in Tue Feb 6 03:47:12 2001 +++ rancid-2.1-alteon/bin/rancid-fe.in Fri Mar 30 13:58:21 2001 @@ -37,6 +37,8 @@ exec('francid', $router); } elsif ($vendor =~ /^redback$/i) { exec('rrancid', $router); +} elsif ($vendor =~ /^alteon$/i) { + exec('arancid', $router); } printf(STDERR "unknown router manufacturer for $router: $vendor\n"); diff -ru rancid-2.1/configure rancid-2.1-alteon/configure --- rancid-2.1/configure Mon Jan 29 09:06:27 2001 +++ rancid-2.1-alteon/configure Fri Mar 30 13:58:21 2001 @@ -1508,7 +1508,7 @@ # RD_BIN_PROGS are bin/ .in's that need to be installed with execute perms. RD_BIN_PROGS="cat5rancid control_rancid \ -clogin create_cvs do-diffs elogin erancid \ +alogin arancid clogin create_cvs do-diffs elogin erancid \ flogin francid jlogin jrancid par rancid-fe \ rancid rename rrancid" diff -ru rancid-2.1/configure.in rancid-2.1-alteon/configure.in --- rancid-2.1/configure.in Mon Jan 29 09:04:44 2001 +++ rancid-2.1-alteon/configure.in Fri Mar 30 13:58:21 2001 @@ -157,7 +157,7 @@ # RD_BIN_PROGS are bin/ .in's that need to be installed with execute perms. RD_BIN_PROGS="cat5rancid control_rancid \ -clogin create_cvs do-diffs elogin erancid \ +alogin arancid clogin create_cvs do-diffs elogin erancid \ flogin francid jlogin jrancid par rancid-fe \ rancid rename rrancid" AC_SUBST(RD_BIN_PROGS) > Hi, > > I've hacked an alogin - for the Alteon WebOS switches (i'm > testing it using > Alteon AceDirector 3's), but I haven't gotten around to > modifying up all the > regexp parsers to make the 'arancid'. > > Has anyone already done this? > -------------- next part -------------- A non-text attachment was scrubbed... Name: alogin.in Type: application/octet-stream Size: 12552 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20010330/e39f118a/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: arancid.in Type: application/octet-stream Size: 7857 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20010330/e39f118a/attachment-0001.obj