Discussion:
[rancid] fortigate paging suppression
Hinote, Scotty (MSFC-IS40)[NICS]
2014-04-03 20:39:19 UTC
Permalink
Hi All,

I have some new fortigates that I need to backup with RANCID. They are running config-version FW60C-5.00. When I back them up the paging lines show up in the config on the same line as some part of the config eg. "--More-- next". I have tried patching the original fnlogin with the following.

- -gl "--More--" { send " "
+ -gl "--More--\[^\n\r]*" { send " "
exp_continue
- -re "\[\n\r]+" { exp_continue }
}
+ -re "\[^\r\n]*\[\n\r]+" { send_user -- "$expect_out(buffer)"
+ exp_continue }
+ }

I still get the pages in the config. I tried a newer version of fnlogin from https://github.com/renard/rancid/blob/master/bin/fnlogin.in but have the same result. I am currently running RANCID 2.3.6-1.el5 and will not be upgrading to a newer version for at least another month or two. Is there a way to make this work with my current fnlogin and RANCID version?

Regards,
Scotty
Hinote, Scotty (MSFC-IS40)[NICS]
2014-04-14 15:57:01 UTC
Permalink
I am still looking for assistance with this issue if anyone has a found a way to remove the paging messages from backed up device configurations.

Thank you,
Scotty

From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Hinote, Scotty (MSFC-IS40)[NICS]
Sent: Thursday, April 03, 2014 3:39 PM
To: rancid-***@shrubbery.net
Subject: [rancid] fortigate paging suppression

Hi All,

I have some new fortigates that I need to backup with RANCID. They are running config-version FW60C-5.00. When I back them up the paging lines show up in the config on the same line as some part of the config eg. "--More-- next". I have tried patching the original fnlogin with the following.

- -gl "--More--" { send " "
+ -gl "--More--\[^\n\r]*" { send " "
exp_continue
- -re "\[\n\r]+" { exp_continue }
}
+ -re "\[^\r\n]*\[\n\r]+" { send_user -- "$expect_out(buffer)"
+ exp_continue }
+ }

I still get the pages in the config. I tried a newer version of fnlogin from https://github.com/renard/rancid/blob/master/bin/fnlogin.in but have the same result. I am currently running RANCID 2.3.6-1.el5 and will not be upgrading to a newer version for at least another month or two. Is there a way to make this work with my current fnlogin and RANCID version?

Regards,
Scotty

Loading...