Rancid support for Fortinet devices using the scp interface.
License: same as whatever license rancid version 3 uses
-
Enable scp on your Fortinet devices:
config system global set admin-scp enable end
-
Copy the 'fnrancid-scp' script to the location where the other rancid scripts are located. On FreeBSD it is /usr/local/libexec/rancid.
-
Make sure that it is executable:
chmod +x /usr/local/libexec/rancid/fnrancid-scp
-
Edit the file rancid.types.conf (located in /etc/rancid or /usr/local/etc/rancid) and add the following line:
fortiscp;script;fnrancid-scp
-
Make sure that you have user and password stored in ~rancid/.cloginrc:
add user myhostname.mydomain {admin} add password myhostname.mydomain {mypassword}
(note that hostname matching with wildcards doesn't work here, so put your full hostname in .cloginrc)
-
Add your devices to router.db and use the type 'fortiscp'. For example:
myhostname.mydomain;fortiscp;up