<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
That did it. Thanks a lot John,<br>
<br>
Sam<br>
<blockquote cite="mid:20080215183244.GN7912@shrubbery.net" type="cite">
<pre wrap="">Fri, Feb 15, 2008 at 12:27:21PM -0600, Sam Munzani:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
its a glob & first match.
add method xxx-rtr0\[1-6]        {telnet}
add method xxx-rtr*                {ssh}
the quoting is necessary to avoid tcl's [] grammar.
</pre>
<blockquote type="cite">
<pre wrap="">*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
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">_______________________________________________
Rancid-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a>
<a class="moz-txt-link-freetext" href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>