[rancid] Netscreen: nlogin file 'set console page 0'

Atif.SIDDIQUI at HydroOne.com Atif.SIDDIQUI at HydroOne.com
Mon Nov 10 20:48:59 UTC 2008


Hi,

 

The netscreen login script sets the 'console page to 0' to get the
config snapshot at once, but this command is not removed when it exists
the box. Can anyone help changing it? Although it is saying that do not
save the config; but still config is not removed. 

 

Which files are used for Netscreens:

 

nlogin

nrancid

nrancid.back

nslogin

nsrancid

 

Appreciate your help. 

 

Here is the portion of config: nlogin

 

    set in_proc 1

 

    send "set console page 0\r"

    expect $prompt {}

 

    # Is this a multi-command?

    if [ string match "*\;*" "$command" ] {

        set commands [split $command \;]

        set num_commands [llength $commands]

 

        for {set i 0} {$i < $num_commands} { incr i} {

            send "[subst [lindex $commands $i]]\r"

            expect {

                -re "$prompt"   {}

            }

        }

    } else {

        send "[subst $command]\r"

        expect {

                -re "$prompt"   {}

        }

    }

    send "exit\r"

    expect {

        "\n" { exp_continue }

        -re "$prompt" {

                send "exit\r"

                exp_continue }

        -re "Configuration modified, save?" {

                send "n\r"

                exp_continue }

        timeout { return 0 }

        eof { return 0 }

    }

    set in_proc 0

}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20081110/20191d7f/attachment.html 


More information about the Rancid-discuss mailing list