[rancid] clogin needs this line to support exit error on Cisco CSS

Lance Vermilion rancid at gheek.net
Wed Oct 4 18:05:58 UTC 2006


All,
    
Please add this to clogin so it will support the prompt that the CSS spits out when a config is changed and you
+attempt to exit.
    
        -re "Configuration changes have occurred*" {               
                                                  send "n\r"
                                                  exp_continue
                                                }                      
   
   
   
It should look like this when updated.
   
    expect {
        -re "^\[^\n\r *]*$reprompt"             {
                                                  # the Cisco CE and Jnx ERX
                                                  # return to non-enabled mode
                                                  # on exit in enabled mode.
                                                  send "exit\r"
                                                  exp_continue;
                                                }
        -re "Configuration changes have occurred*" {
                                                  send "n\r"
                                                  exp_continue
                                                }
        "Do you wish to save your configuration changes" {
                                                  send "n\r"
                                                  exp_continue
                                                }
        -re "\[\n\r]+"                          { exp_continue }
        timeout                                 { return 0 }
        eof                                     { return 0 }
    }


--

-Lance <rancid at gheek.net>



More information about the Rancid-discuss mailing list