summaryrefslogtreecommitdiffstats
path: root/cloginrc.sample
diff options
context:
space:
mode:
authorTar Committer <tar@ocjtech.us>2000-11-19 22:01:05 +0000
committerTar Committer <tar@ocjtech.us>2000-11-19 22:01:05 +0000
commit1651adc35224e149715bd85af4ba108c5ee184bc (patch)
treef83b6af44ffb10f2c042b822b2f3469582a129ca /cloginrc.sample
parent3861ba4cf180eb01fd98a16f4502702ab217e56f (diff)
downloadrancid-1651adc35224e149715bd85af4ba108c5ee184bc.tar.gz
rancid-1651adc35224e149715bd85af4ba108c5ee184bc.tar.xz
rancid-1651adc35224e149715bd85af4ba108c5ee184bc.zip
Imported from rancid-2.0.tar.gz.rancid-2.0
Diffstat (limited to 'cloginrc.sample')
-rw-r--r--cloginrc.sample19
1 files changed, 16 insertions, 3 deletions
diff --git a/cloginrc.sample b/cloginrc.sample
index b8368a2..2e17025 100644
--- a/cloginrc.sample
+++ b/cloginrc.sample
@@ -5,6 +5,7 @@
# userprompt
# userpassword
# passprompt
+# method
# noenable
# enauser
# enableprompt
@@ -31,6 +32,14 @@
# What the router prints to prompt for the password.
# Default: "\[Pp]assword:"
#
+# add method <router name regexp> {ssh} [...]
+# Defines, in order, which connection method(s) to use for a device
+# from the set {ssh,telnet,rsh}. eg: add method * {ssh} {telnet} {rsh}
+# will attempt ssh connection first. if ssh fails with connection
+# refused (ie: not due to authentication failure), then try telnet,
+# then rsh.
+# Default: {telnet} {ssh}
+#
# add noenable <router name regexp>
# equivalent of -noenable on the cmd line to not enable at login.
#
@@ -63,7 +72,7 @@
#add password * anything
#
#add user sl-gw*-dc twit
-#add user sdn* sdn_auto
+#add user sdn* sdn_auto
#add user sdn-bb* ops_eng
#add user * $env(USER)
@@ -76,13 +85,17 @@ add autoenable *.custx.net 1
# customer y
# this is the normal cisco login. a password followed by and enable password.
+# try ssh first, then rlogin.
add password *.custy.net {vector} {victor}
+add method *.custy.net ssh rlogin
-# customer z
+# customer z; they use ssh only.
add user *.custz.net shirley
add password *.custz.net {jive} {surely}
+add method *.custz.net ssh
-# the route-server's do provide enable access. cmdline -noenable equivalent.
+# the route-server's do not provide enable access. cmdline -noenable
+# equivalent.
add noenable route-server* 1
# all our routers, ie: everything else