[rancid] CIDR Ranges in .clogit file

heasley heas at shrubbery.net
Mon Jun 26 18:34:34 UTC 2017


Mon, Jun 26, 2017 at 04:38:46PM +0000, Remsik,Robert:
> Hello!
> 
> 
> I'm trying to setup entries in the .clogit file per credentials aligned with CIDR ranges.  Can rancid handle CIDR ranges?  It looks like RANCID just does globbing, but I'm having trouble setting the up the globs properly. 

globs only.

> I'm using the globtester ( http://www.globtester.com/#p=eJwz1DPSM9aLNtA1NIutMYRxLGPBBABh%2BwbV&r=eJzNldEKgjAUhl9leFVQ6o5aU%2BfeRc1CEBUnUT19hhkES6nYYTe7OMP%2F%2BzzCLz%2BUZ5JXqZSJZQlqg%2B3ZlDvDVPC3Ky7btCayv1ZFYuVN1XQR6U7ZisGGUMaGI2TrmBybut%2FK8lZEw8CG9hJPqcCdR4TgWSe0ALwJ8HvQ6Dam6FD0zVcMzFfcma%2B4N1%2BRma8Yald8Fp67qP9ZktJvim0mB1Rv%2B%2B%2FaZ3jKvtTIU5afRp6yyTTylLWkjwfIvBCZR11sIPYXpNgrBeyVgo8NDNBaZun519%2FgDnPzhow%3D& ) to help debug the syntax.  For example the x.y.z.2-16 use {abc creds} and x.y.z.17-254 use {def creds}.
> 

https://www.tcl.tk/man/tcl/TclCmd/glob.htm

[] matches a single character

[2-9] 2 thru 9
[2-17] 2-1 (no idea if that works) or 7



More information about the Rancid-discuss mailing list