<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Team,<br>
<br>
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.<br>
<br>
<b><big>Experiment # 1: .cloginrc section</big></b><br>
add user test*[1-2] {admin} <br>
add password test*[1-2] {password} <br>
add method test*[1-2] telnet <br>
add autoenable test*[1-2] 1<br>
<br>
$ clogin test-rtr01 <br>
<br>
Error: invalid command name "1-2"<br>
<br>
<b><big>Experiment # 2: </big></b><br>
add user test*{*\[1-6]} {admin}<br>
add password test*{*\[1-6]} {password}<br>
add method test*{*\[1-6]} telnet<br>
add autoenable test*{*\[1-6]} 1<br>
<br>
$ clogin test-rtr01<br>
test-rtr01<br>
<br>
Error: no password for test-rtr01 in /opt/rancid/.cloginrc.<br>
<br>
<b><big>Experiment # 3: </big></b><br>
add user test{*\[1-6]} {admin}<br>
add password test{*\[1-6]} {password}<br>
add method test{*\[1-6]} telnet<br>
add autoenable test{*\[1-6]} 1<br>
<br>
$ clogin test-rtr01<br>
test-rtr01<br>
<br>
Error: no password for test-rtr01 in /opt/rancid/.cloginrc.<br>
<br>
Any help is greatly appreciated.<br>
<br>
Thanks,<br>
sam<br>
</body>
</html>