[rancid] Radware/Alteon Interactive Commands

Robert Franzke bob.franzke at altn.com
Tue Mar 17 15:38:00 UTC 2015


OK I tried the additional code. It did not seem to work. Getting “couldn't compile regular expression pattern: quantifier operand invalid” error testing. While looking through this however this it's becoming clear that I just have a way outdated version of the alogin code and this has been fixed long ago. I found an updated script on GitHub and added it to my system. It's working correctly now and I can once again keep config revisions for my Alteon gear. I should have looked for this prolly before posting here but I had assumed the updated scripts would be included in RANCID updates via the ports tree. Clearly this is wrong. Without researching I am sure this info is one of those 'read UPDATING' BSD things I skipped. Gets me every time. Stupid stupid. Sorry for the bother and thanks for the help.



-----Original Message-----
From: heasley [mailto:heas at shrubbery.net] 
Sent: Monday, March 16, 2015 6:57 PM
To: Bob Franzke
Cc: heasley; rancid-discuss at shrubbery.net
Subject: Re: [rancid] Radware/Alteon Interactive Commands

Thu, Feb 26, 2015 at 06:20:56AM -0600, Bob Franzke:
> There is not unfortunately. You could remove the certificate and it would no longer prompt but those are needed.
> 

looking at alogin, there is already code there to send 'y'.  for the purposes of automation, this is likely the right choice.  although, it looks like the prompt has changed in your new version and the match needs to be updated as
follows:

Index: bin/alogin.in
===================================================================
--- bin/alogin.in       (revision 3061)
+++ bin/alogin.in       (working copy)
@@ -456,7 +459,7 @@
            -re "^\[^\n\r]*$reprompt"           {}
            -re "^\[^\n\r ]*>>.*$reprompt"      { exp_continue }
            -re "\[\n\r]+"                      { exp_continue }
-           -re "^\*Display private keys? \[y/n]:" {
+           -re "^\*?Display private keys? \[y/n]:" {
                                                 send "y\r"
                                                 exp_continue
                                                }

please lmk if that works.

> > On Feb 26, 2015, at 3:39 AM, heasley <heas at shrubbery.net> wrote:
> > 
> > Wed, Feb 25, 2015 at 04:39:00PM -0600, Robert Franzke:
> >> So I recently upgraded the code on my Alteon 4408 Load Balancers. Since this upgrade, when running the /c/dump command listed in arancid to print out the current config while having some type of SSL certificate installed on the device, the device asks you if you want to Display the Private Keys and expects the user to reply with a ‘y’ or ‘n’ like so:
> >> 
> >>>> ALTEON-A - Standalone ADC - Main# /c/d
> >> Display private keys? [y/n]:
> >> 
> >> This hangs RANCID up and causes the device config to not be retrieved. Is there some way to fix this in the list of commands in alogin/arancid such that the script would catch the “Display private keys? [y/n]:” and then send a ‘n’? I am not too sure which file I would add this too to fix this. 
> > 
> > is there a configuration knob or argument to /c/dump to tell it not to prompt?



More information about the Rancid-discuss mailing list