[rancid] rancid, netscreens and console page size

Mordechai T. Abzug morty at frakir.org
Wed May 17 03:13:38 UTC 2006


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



More information about the Rancid-discuss mailing list