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

Atif.SIDDIQUI at HydroOne.com Atif.SIDDIQUI at HydroOne.com
Tue Nov 11 22:57:41 UTC 2008


I found this patch: config change;

 

 but we should be able to put in the page only for that vty sessionnot
affecting all the users and config;

As RANCID does not save the config after doing the following steps;
other users always get a message to save the config or not; even though
they have not change anything; it was because RANCID added "set console
0" then unset it cause the config changes. Can we have a workaround.

 

 

http://www.shrubbery.net/pipermail/rancid-discuss/2006-May/001488.html

 

I'm using the latest nrancid and nlogin for netscreens.  Seems to work

nicely, with one caveat: every time we run rancid, paging gets turned

off.  On netscreens, paging is a global parameter which can only be

changed by admin users.  This can be very annoying for non-admin

users.

 

Patch:

 

*** /tmp/T0EMaOJJ       Wed May 17 03:12:01 2006

--- nlogin      Wed May 17 02:36:55 2006

***************

*** 412,417 ****

--- 412,419 ----

                                        }

        }

      }

+     send "unset console page\r"

+     expect -re "$prompt" {}

      send "exit\r"

      expect {

        -re "$prompt"                   {

***************

*** 511,516 ****

--- 513,520 ----

        send "set console page 0\r"

        expect -re $prompt      {}

        source $sfile

+         send "unset console page\r"

+         expect -re "$prompt" {}

        close

      } else {

        label $firewall

 

 

Thanks!

 

- Morty

 

 

 

-----Original Message-----
From: john heasley [mailto:heas at shrubbery.net] 
Sent: Tuesday, November 11, 2008 5:25 PM
To: SIDDIQUI Atif
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Netscreen: nlogin file 'set console page 0'

 

Most devices accept (negotiate) the terminal length sent by telnet/ssh
and

most allow the pager to essentially be disabled by setting the terminal

length to zero.  Some (broken) devices, like Foundry, have a global
setting

to disable/enable the pager that is permanent and affects all users.

 

So, what flavour is the netscreen?  Do you have the latest firmware?  Do

you have a properly functioning/configured client?  

 

Mon, Nov 10, 2008 at 08:20:04PM -0500, Atif.SIDDIQUI at HydroOne.com:

> Not sure about that. 

> 

> I see in the script 'nlogin' that it is setting it to zero, which

> causing issue for us as get commands keep scrolling. When techs login
to

> the FW for troubleshooting. 

> 

> Anyone using netscreen expereinced this issue?

>  

> -----Original Message-----

> From: john heasley [mailto:heas at shrubbery.net] 

> Sent: Monday, November 10, 2008 6:49 PM

> To: SIDDIQUI Atif

> Cc: rancid-discuss at shrubbery.net

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

> 

> Mon, Nov 10, 2008 at 03:48:59PM -0500, Atif.SIDDIQUI at HydroOne.com:

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

> 

> isn't the terminal length negotiated by telnet/ssh when you connect?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20081111/7cccb962/attachment.html 


More information about the Rancid-discuss mailing list