.\" .\" $Id: rancid.types.conf.5.in 3699 2017-07-18 13:40:55Z heas $ .\" .hys 50 .TH "rancid.types.conf" "5" "18 July 2017" .SH NAME rancid.types.conf \- rancid device type configuration file .SH DESCRIPTION .B rancid.types.conf contains formatted configuration lines that define the device types that are available for use in the field of the .BR router.db (5) configuration file. .PP The .B rancid.types.base configuration file follows the same format but defines the base types described in .IR router.db(5). .PP Users are .B STRONGLY discouraged from altering this file or overriding the base types in .B rancid.types.conf. Instead, copy the type definition to be altered from .B rancid.types.base to .B rancid.types.conf using a different . .\" .SH SYNTAX One directive is listed per-line, where the syntax is one of: .PP .in +1i .nf ;command;; ;inloop; ;login; ;module; ;prescript; XXX temporary knob? add this? ;postscript; XXX temporary knob? add this? ;script; ;timeout; .fi .in -1i .PP For example: .in +1i .nf cisco;login;clogin cisco;timeout;120 cisco;module;rancid::ios cisco;inloop;ios::inloop cisco;command;ShowVersion;show version juniper;login;/usr/local/bin/jlogin juniper;module;rancid::junos juniper;inloop;junos::inloop juniper;command;ShowVersion;show version .fi .in -1i .PP .\" is a lower case name used in the .IR router.db(5) file. Its case is forced to lower case when reading the configuration files. .\" .PP Each may have the following directives defined. The login and script directives are required. .TP .B command Defines commands to run for the and the function that will process the input. .TP .B inloop Intended for .IR rancid(1), .B inloop defines a function to loop over the input from the device. It must have the calling signature f($INPUT, $OUTPUT). .TP .B login Defines the login script used for the , which does not need to be an FQPN, but then must be found in the path. .TP .B module Loads a rancid perl module to supply functions used in the .B command directives for the . Multiple module lines may exist for a device type, they are loaded in the order they appear. .TP .B script Defines the rancid script used for the , which does not need to be an FQPN, but then must be found in the path. .TP .B timeout Defines the rancid login script timeout in seconds. In general, the default 90 seconds, but some modules themselves alter this. .\" .PP .SH FILES .\"Bl -tag -width /etc/rancid/rancid.types.conf -compact .TP .B /etc/rancid/rancid.types.conf Configuration file described here. .TP .B /etc/rancid/rancid.types.base Configuration file described here. .\"El .\" .SH "SEE ALSO" .BR control_rancid (1), .BR rancid (1), .BR rancid-run (1), .BR router.db (5), .BR rancid (3) .\"