netdisco-rancid-export - Generate RANCID Group Configuration
This script requires some configuration to be added to your Netdisco "~/environments/deployment.yml" file, for example:
~/environments/deployment.yml
rancid: rancid_home: /var/lib/rancid down_age: '1 day' by_ip: [ other ] groups: switch: [ 'name:.*[Ss][Ww].*' ] rtr: [ 'name:[rR]tr.*' ] ap: [ 'name:[aA][pP].*' ]
rancid_home
The location to write RANCID Group configuration files into. A subdirectory for each Group will be created.
down_age
This should be the same or greater than the interval between regular discover jobs on your network. Devices which have not been discovered within this time will be marked as "down" to RANCID.
down
groups
This dictionary maps RANCID Group names with configuration which will match devices in the Netdisco database. The configuration is the same as any of Netdisco's "*_only" settings, and accepts IP, prefix, device property.
*_only
by_ip
List of RANCID Groups which will have Device IPs written to the RANCID configuration file, instead of DNS or SNMP host names.
App::Netdisco
To install App::Netdisco, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Netdisco
CPAN shell
perl -MCPAN -e shell install App::Netdisco
For more information on module installation, please visit the detailed CPAN module installation guide.