[rancid] .cloginrc question. How to use wild card?
Sam Munzani
smunzani at comcast.net
Fri Feb 15 18:27:21 UTC 2008
Team,
I have my devices named like this. xxx-rtr01, xxx-rtr02, xxx-rtr03 etc
all the way up to 10. routers 1 through 6 supports telnet method only
while 7 through 10 supports ssh only. Is there a clean way to define
these 2 groups in .cloginrc? I tried following and captured the error
messages.
*Experiment # 1: .cloginrc section*
add user test*[1-2] {admin}
add password test*[1-2] {password}
add method test*[1-2] telnet
add autoenable test*[1-2] 1
$ clogin test-rtr01
Error: invalid command name "1-2"
*Experiment # 2: *
add user test*{*\[1-6]} {admin}
add password test*{*\[1-6]} {password}
add method test*{*\[1-6]} telnet
add autoenable test*{*\[1-6]} 1
$ clogin test-rtr01
test-rtr01
Error: no password for test-rtr01 in /opt/rancid/.cloginrc.
*Experiment # 3: *
add user test{*\[1-6]} {admin}
add password test{*\[1-6]} {password}
add method test{*\[1-6]} telnet
add autoenable test{*\[1-6]} 1
$ clogin test-rtr01
test-rtr01
Error: no password for test-rtr01 in /opt/rancid/.cloginrc.
Any help is greatly appreciated.
Thanks,
sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20080215/5e1c4422/attachment.html
More information about the Rancid-discuss
mailing list