[rancid] Radware/Alteon Interactive Commands

Robert Franzke bob.franzke at altn.com
Tue Mar 17 13:50:00 UTC 2015


Thanks for the reply here. My version of alogin does not contain any of the automation code for this prompt. 

expect {
            -re "^\[^\n\r]*$reprompt"           {}
            -re "^\[^\n\r ]*>>.*$reprompt"      { exp_continue }
            -re "\[\n\r]+"                      { exp_continue }
        }
    }

Perhaps that’s all that’s needed here is to get the latest version of the alogin script. Apologies but I am not sure I know how this is done and would appreciate someone pointing me in the right direction on how I can do that. Running this on FreeBSD 9.1-RELEASE and RANCID 2.3.8_2. Does updating RANCID not get the latest login scripts?

In the meantime I am going to try and just add the code for this and see how it goes. Will report back. Thanks again.


-----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