Discussion:
[rancid] It appears that Rancid is working now!
Wagner Pereira
2010-03-09 20:16:04 UTC
Permalink
Hey, Rancid's guys!

Can I start to celebrate? See below:

rancid-server# cat switches-PoP-SP.20100309.170101

starting: Tue Mar 9 17:01:01 BRT 2010

cvs add: scheduling file `200.133.192.254' for addition
cvs add: use `cvs commit' to add this file permanently
/home/rancid/var/rancid/CVS/switches-PoP-SP/configs/200.133.192.254,v
<-- 200.133.192.254
initial revision: 1.1
Added 200.133.192.254



Trying to get all of the configs.
200.133.192.254 clogin error: Error: password file (/root/.cloginrc)
does not exist
200.133.192.254: missed cmd(s): admin show diag,dir /all
slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all
disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir
/all disk2:,dir /all sec-bootflash:,show spe version,dir /all
slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all
slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all
slavenvram:,show flash,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show
variables boot,show boot,show inventory raw,dir /all slavedisk1:,show
env all,show module,admin show env all,show controllers,admin show
version,show diagbus,more system:running-config,dir /all
slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir
/all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all
sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir
/all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
running-config,show c7200,dir /all slot1:
200.133.192.254: End of run not found
!
=====================================
Getting missed routers: round 1.
200.133.192.254 clogin error: Error: password file (/root/.cloginrc)
does not exist
200.133.192.254: missed cmd(s): admin show diag,dir /all
slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all
disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir
/all disk2:,dir /all sec-bootflash:,show spe version,dir /all
slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all
slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all
slavenvram:,show flash,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show
variables boot,show boot,show inventory raw,dir /all slavedisk1:,show
env all,show module,admin show env all,show controllers,admin show
version,show diagbus,more system:running-config,dir /all
slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir
/all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all
sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir
/all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
running-config,show c7200,dir /all slot1:
200.133.192.254: End of run not found
!
=====================================
Getting missed routers: round 2.
200.133.192.254 clogin error: Error: password file (/root/.cloginrc)
does not exist
200.133.192.254: missed cmd(s): admin show diag,dir /all
slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all
disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir
/all disk2:,dir /all sec-bootflash:,show spe version,dir /all
slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all
slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all
slavenvram:,show flash,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show
variables boot,show boot,show inventory raw,dir /all slavedisk1:,show
env all,show module,admin show env all,show controllers,admin show
version,show diagbus,more system:running-config,dir /all
slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir
/all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all
sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir
/all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
running-config,show c7200,dir /all slot1:
200.133.192.254: End of run not found
!
=====================================
Getting missed routers: round 3.
200.133.192.254 clogin error: Error: password file (/root/.cloginrc)
does not exist
200.133.192.254: missed cmd(s): admin show diag,dir /all
slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all
disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir
/all disk2:,dir /all sec-bootflash:,show spe version,dir /all
slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all
slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all
slavenvram:,show flash,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show
variables boot,show boot,show inventory raw,dir /all slavedisk1:,show
env all,show module,admin show env all,show controllers,admin show
version,show diagbus,more system:running-config,dir /all
slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir
/all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all
sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir
/all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
running-config,show c7200,dir /all slot1:
200.133.192.254: End of run not found
!
=====================================
Getting missed routers: round 4.
200.133.192.254 clogin error: Error: password file (/root/.cloginrc)
does not exist
200.133.192.254: missed cmd(s): admin show diag,dir /all
slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all
disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir
/all disk2:,dir /all sec-bootflash:,show spe version,dir /all
slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all
slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all
slavenvram:,show flash,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show
variables boot,show boot,show inventory raw,dir /all slavedisk1:,show
env all,show module,admin show env all,show controllers,admin show
version,show diagbus,more system:running-config,dir /all
slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir
/all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all
sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir
/all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
running-config,show c7200,dir /all slot1:
200.133.192.254: End of run not found
!

cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
/home/rancid/var/rancid/CVS/switches-PoP-SP/router.db,v <-- router.db
new revision: 1.2; previous revision: 1.1

ending: Tue Mar 9 17:01:04 BRT 2010
--
Wagner Pereira

PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901
Ryan West
2010-03-09 20:27:32 UTC
Permalink
Wagner,
-----Original Message-----
Sent: Tuesday, March 09, 2010 3:16 PM
To: Rancid Mailing List
Subject: [rancid] It appears that Rancid is working now!
Hey, Rancid's guys!
rancid-server# cat switches-PoP-SP.20100309.170101
starting: Tue Mar 9 17:01:01 BRT 2010
cvs add: scheduling file `200.133.192.254' for addition
cvs add: use `cvs commit' to add this file permanently
/home/rancid/var/rancid/CVS/switches-PoP-SP/configs/200.133.192.254,v
<-- 200.133.192.254
initial revision: 1.1
Added 200.133.192.254
Trying to get all of the configs.
200.133.192.254 clogin error: Error: password file (/root/.cloginrc)
does not exist
su - rancid && cat .cloginrc && rancid-run

-ryan
Wagner Pereira
2010-03-09 20:33:55 UTC
Permalink
Ryan,

I did that:

su - rancid && cat .cloginrc && rancid-run
***@servicos2:~$

and I did run this:

/home/rancid/bin/clogin -c "sh run" 200.133.192.254

This is the result:

Error: password file (/home/rancid/.cloginrc) does not exist
--
Wagner Pereira

PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901
Post by Ryan West
Wagner,
-----Original Message-----
Sent: Tuesday, March 09, 2010 3:16 PM
To: Rancid Mailing List
Subject: [rancid] It appears that Rancid is working now!
Hey, Rancid's guys!
rancid-server# cat switches-PoP-SP.20100309.170101
starting: Tue Mar 9 17:01:01 BRT 2010
cvs add: scheduling file `200.133.192.254' for addition
cvs add: use `cvs commit' to add this file permanently
/home/rancid/var/rancid/CVS/switches-PoP-SP/configs/200.133.192.254,v
<-- 200.133.192.254
initial revision: 1.1
Added 200.133.192.254
Trying to get all of the configs.
200.133.192.254 clogin error: Error: password file (/root/.cloginrc)
does not exist
su - rancid && cat .cloginrc && rancid-run
-ryan
Ryan West
2010-03-09 21:09:11 UTC
Permalink
Locate .cloginrc

Have you created it yet or copied the sample that comes with the install to your environment. I hate to say this again, but ALL of this is covered in the tutorials that were posted.

-ryan
-----Original Message-----
Sent: Tuesday, March 09, 2010 3:34 PM
To: Ryan West
Cc: Rancid Mailing List
Subject: Re: [rancid] It appears that Rancid is working now!
Ryan,
su - rancid && cat .cloginrc && rancid-run
/home/rancid/bin/clogin -c "sh run" 200.133.192.254
Error: password file (/home/rancid/.cloginrc) does not exist
--
Wagner Pereira
PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901
Post by Ryan West
Wagner,
-----Original Message-----
Sent: Tuesday, March 09, 2010 3:16 PM
To: Rancid Mailing List
Subject: [rancid] It appears that Rancid is working now!
Hey, Rancid's guys!
rancid-server# cat switches-PoP-SP.20100309.170101
starting: Tue Mar 9 17:01:01 BRT 2010
cvs add: scheduling file `200.133.192.254' for addition
cvs add: use `cvs commit' to add this file permanently
/home/rancid/var/rancid/CVS/switches-PoP-SP/configs/200.133.192.254,v
<-- 200.133.192.254
initial revision: 1.1
Added 200.133.192.254
Trying to get all of the configs.
200.133.192.254 clogin error: Error: password file (/root/.cloginrc)
does not exist
su - rancid && cat .cloginrc && rancid-run
-ryan
Wagner Pereira
2010-03-09 21:37:41 UTC
Permalink
Hi, Ryan.

I did read ALL the README file, believe me!

And that's my .cloginrc file, copied from the cloginrc.sample:

=====================
add password 10.0.0.1 {vty_pass} {ena_pass}

add user 10.0.0.1 admin

add userprompt 10.0.0.1 {"Username:"}

add passprompt 10.0.0.1 {"Password:"}

add method 10.0.0.1 {telnet} {ssh}

add enableprompt 10.0.0.1 {"Password:"}

add cyphertype 10.0.0.1 {3des}

#add password sl-bb*-dc cow24
#add password sl-gw*-dc geeks
#add password sl* hank dog
#add password at* pete cow
#add password sdn* mujahid horse
#add password icm* peter
#add password * anything
#
#add user sl-gw*-dc twit
#add user sdn* sdn_auto
#add user sdn-bb* ops_eng
#add user * $env(USER)

# customer x
# these routers ask for a username and password. we automatically get
# enable access after successful authentication.
add user *.custx.net roger
add password *.custx.net {doger}
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; 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 not provide enable access. cmdline -noenable
# equivalent.
add noenable route-server* 1

# all our routers, i.e.: everything else
add password * {clearance} {clarence}

# set ssh encryption type, dflt: 3des
add cyphertype * {3des}

# set the username prompt to "router login:"
#add userprompt * {"router login:"}

# ssh identity for a juniper; used with jlogin
add identity my.juniper $env(HOME)/.ssh/juniper

# riverstone / enterasys / cabletron (rivlogin) example
# these boxes are 'back-to-front' from cisco (i.e., ask
# for vty password always, then tac+/radius if configured).
#
# vty password and last resort (enable) password for rivlogin
add password rs3000 {vtypass} {lastresort}
# if using tac+ or radius login, include these lines
add user rs3000 {monster}
add userpassword rs3000 {scary}
=====================
--
Wagner Pereira

PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901
Post by Ryan West
Locate .cloginrc
Have you created it yet or copied the sample that comes with the install to your environment. I hate to say this again, but ALL of this is covered in the tutorials that were posted.
-ryan
-----Original Message-----
Sent: Tuesday, March 09, 2010 3:34 PM
To: Ryan West
Cc: Rancid Mailing List
Subject: Re: [rancid] It appears that Rancid is working now!
Ryan,
su - rancid && cat .cloginrc && rancid-run
/home/rancid/bin/clogin -c "sh run" 10.0.0.1
Error: password file (/home/rancid/.cloginrc) does not exist
--
Wagner Pereira
PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901
Post by Ryan West
Wagner,
-----Original Message-----
Sent: Tuesday, March 09, 2010 3:16 PM
To: Rancid Mailing List
Subject: [rancid] It appears that Rancid is working now!
Hey, Rancid's guys!
rancid-server# cat switches-PoP-SP.20100309.170101
starting: Tue Mar 9 17:01:01 BRT 2010
cvs add: scheduling file `10.0.0.1' for addition
cvs add: use `cvs commit' to add this file permanently
/home/rancid/var/rancid/CVS/switches-PoP-SP/configs/10.0.0.1,v
<-- 10.0.0.1
initial revision: 1.1
Added 10.0.0.1
Trying to get all of the configs.
10.0.0.1 clogin error: Error: password file (/root/.cloginrc)
does not exist
su - rancid && cat .cloginrc && rancid-run
-ryan
Wagner Pereira
2010-03-09 22:00:52 UTC
Permalink
Lance,

Below it is what I did. Is there some additional test that I can make?

cp /usr/local/rancid/tar/rancid-2.3.2/.cloginrc /home/rancid/

And i did run
/home/rancid/bin/clogin -c "sh run" 10.0.0.1

10.0.0.1
spawn telnet 10.0.0.1
Trying 10.0.0.1...
telnet: Unable to connect to remote host: Connection refused
spawn ssh -c 3des -x -l rancid 10.0.0.1
ssh: connect to host 10.0.0.1 port 22: Connection refused

Error: Connection Refused (ssh): 10.0.0.1
--
Wagner Pereira

PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901
Post by Ryan West
Wagner,
I echo what I said before. make sure the .cloginrc is in the home
directory for the rancid user (sometimes: /home/rancid/) and you ONLY
need the following in your .cloginrc
add user 10.0.0.1 admin
add password 10.0.0.1 {vty_pass} {ena_pass}
add method 10.0.0.1 {telnet} {ssh}
best of luck from here.
Hi, Ryan.
I did read ALL the README file, believe me!
=====================
add password 10.0.0.1 {vty_pass} {ena_pass}
add user 10.0.0.1 admin
add userprompt 10.0.0.1 {"Username:"}
add passprompt 10.0.0.1 {"Password:"}
add method 10.0.0.1 {telnet} {ssh}
add enableprompt 10.0.0.1 {"Password:"}
add cyphertype 10.0.0.1 {3des}
#add password sl-bb*-dc cow24
#add password sl-gw*-dc geeks
#add password sl* hank dog
#add password at* pete cow
#add password sdn* mujahid horse
#add password icm* peter
#add password * anything
#
#add user sl-gw*-dc twit
#add user sdn* sdn_auto
#add user sdn-bb* ops_eng
#add user * $env(USER)
# customer x
# these routers ask for a username and password. we automatically get
# enable access after successful authentication.
add user *.custx.net <http://custx.net> roger
add password *.custx.net <http://custx.net> {doger}
add autoenable *.custx.net <http://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 <http://custy.net> {vector}
{victor}
add method *.custy.net <http://custy.net> ssh rlogin
# customer z; they use ssh only.
add user *.custz.net <http://custz.net> shirley
add password *.custz.net <http://custz.net> {jive}
{surely}
add method *.custz.net <http://custz.net> ssh
# the route-server's do not provide enable access. cmdline -noenable
# equivalent.
add noenable route-server* 1
# all our routers, i.e.: everything else
add password * {clearance} {clarence}
# set ssh encryption type, dflt: 3des
add cyphertype * {3des}
# set the username prompt to "router login:"
#add userprompt * {"router login:"}
# ssh identity for a juniper; used with jlogin
add identity my.juniper $env(HOME)/.ssh/juniper
# riverstone / enterasys / cabletron (rivlogin) example
# these boxes are 'back-to-front' from cisco (i.e., ask
# for vty password always, then tac+/radius if configured).
#
# vty password and last resort (enable) password for rivlogin
add password rs3000 {vtypass} {lastresort}
# if using tac+ or radius login, include these lines
add user rs3000 {monster}
add userpassword rs3000 {scary}
=====================
--
Wagner Pereira
PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901
Post by Ryan West
Locate .cloginrc
Have you created it yet or copied the sample that comes with the
install to your environment. I hate to say this again, but ALL of
this is covered in the tutorials that were posted.
Post by Ryan West
-ryan
-----Original Message-----
Sent: Tuesday, March 09, 2010 3:34 PM
To: Ryan West
Cc: Rancid Mailing List
Subject: Re: [rancid] It appears that Rancid is working now!
Ryan,
su - rancid && cat .cloginrc && rancid-run
/home/rancid/bin/clogin -c "sh run" 10.0.0.1
Error: password file (/home/rancid/.cloginrc) does not exist
--
Wagner Pereira
PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de
São Paulo
Post by Ryan West
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901
Post by Ryan West
Wagner,
-----Original Message-----
Sent: Tuesday, March 09, 2010 3:16 PM
To: Rancid Mailing List
Subject: [rancid] It appears that Rancid is working now!
Hey, Rancid's guys!
rancid-server# cat switches-PoP-SP.20100309.170101
starting: Tue Mar 9 17:01:01 BRT 2010
cvs add: scheduling file `10.0.0.1' for addition
cvs add: use `cvs commit' to add this file permanently
/home/rancid/var/rancid/CVS/switches-PoP-SP/configs/10.0.0.1
<http://10.0.0.1>,v
Post by Ryan West
Post by Ryan West
<-- 10.0.0.1
initial revision: 1.1
Added 10.0.0.1
Trying to get all of the configs.
10.0.0.1 clogin error: Error: password file (/root/.cloginrc)
does not exist
su - rancid && cat .cloginrc && rancid-run
-ryan
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Ryan West
2010-03-09 22:12:17 UTC
Permalink
-----Original Message-----
Sent: Tuesday, March 09, 2010 5:01 PM
To: Lance Vermilion; Rancid Mailing List
Subject: [rancid] Re: It appears that Rancid is working now!
ssh: connect to host 10.0.0.1 port 22: Connection refused
Error: Connection Refused (ssh): 10.0.0.1
Fix this.
Wagner Pereira
2010-03-10 16:06:56 UTC
Permalink
Hi, all.

My Rancid is beautifully working now!

I created an ACL on my device permitting access from my Rancid server
via Telnet/SSH.

I'd like to thank my friend Roberto, from University of São Paulo
(Brazil), for his great help, and thank all of you guys who were very
patients with me!

Best wishes of success,
--
Wagner Pereira

PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901
Post by Ryan West
-----Original Message-----
Sent: Tuesday, March 09, 2010 5:01 PM
To: Lance Vermilion; Rancid Mailing List
Subject: [rancid] Re: It appears that Rancid is working now!
ssh: connect to host 10.0.0.1 port 22: Connection refused
Error: Connection Refused (ssh): 10.0.0.1
Fix this.
Wagner Pereira
2010-03-09 22:12:24 UTC
Permalink
Bingo, Lance!

I can't access my device either by telnet or ssh from my Rancid server:
Connection refused

In fact, I have only one "frontend" server (which is not the Rancid
server) from what I gain access via telnet/ssh.

Maybe there is an ACL blocking this server. I will see this tomorrow,
carefully.

I really appreciate your help.

Hugs,
--
Wagner Pereira

PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901
that tells me that 10.0.0.1 will not allow your server to telnet/ssh
to it.from CLI can you telnet/ssh to 10.0.0.1 from the rancid server?
Lance,
Below it is what I did. Is there some additional test that I can make?
cp /usr/local/rancid/tar/rancid-2.3.2/.cloginrc /home/rancid/
And i did run
/home/rancid/bin/clogin -c "sh run" 10.0.0.1
10.0.0.1
spawn telnet 10.0.0.1
Trying 10.0.0.1...
telnet: Unable to connect to remote host: Connection refused
spawn ssh -c 3des -x -l rancid 10.0.0.1
ssh: connect to host 10.0.0.1 port 22: Connection refused
Error: Connection Refused (ssh): 10.0.0.1
--
Wagner Pereira
PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901
Wagner,
I echo what I said before. make sure the .cloginrc is in the
home directory for the rancid user (sometimes: /home/rancid/)
and you ONLY need the following in your .cloginrc
add user 10.0.0.1 admin
add password 10.0.0.1 {vty_pass} {ena_pass}
add method 10.0.0.1 {telnet} {ssh}
best of luck from here.
On Tue, Mar 9, 2010 at 2:37 PM, Wagner Pereira
Hi, Ryan.
I did read ALL the README file, believe me!
=====================
add password 10.0.0.1 {vty_pass} {ena_pass}
add user 10.0.0.1 admin
add userprompt 10.0.0.1 {"Username:"}
add passprompt 10.0.0.1 {"Password:"}
add method 10.0.0.1 {telnet} {ssh}
add enableprompt 10.0.0.1 {"Password:"}
add cyphertype 10.0.0.1 {3des}
#add password sl-bb*-dc cow24
#add password sl-gw*-dc geeks
#add password sl* hank dog
#add password at* pete cow
#add password sdn* mujahid horse
#add password icm* peter
#add password * anything
#
#add user sl-gw*-dc twit
#add user sdn* sdn_auto
#add user sdn-bb* ops_eng
#add user * $env(USER)
# customer x
# these routers ask for a username and password. we automatically get
# enable access after successful authentication.
add user *.custx.net <http://custx.net> <http://custx.net>
roger
add password *.custx.net <http://custx.net>
<http://custx.net> {doger}
add autoenable *.custx.net <http://custx.net>
<http://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 <http://custy.net>
<http://custy.net> {vector} {victor}
add method *.custy.net <http://custy.net>
<http://custy.net> ssh rlogin
# customer z; they use ssh only.
add user *.custz.net <http://custz.net> <http://custz.net>
shirley
add password *.custz.net <http://custz.net>
<http://custz.net> {jive} {surely}
add method *.custz.net <http://custz.net>
<http://custz.net> ssh
# the route-server's do not provide enable access. cmdline -noenable
# equivalent.
add noenable route-server* 1
# all our routers, i.e.: everything else
add password * {clearance} {clarence}
# set ssh encryption type, dflt: 3des
add cyphertype * {3des}
# set the username prompt to "router login:"
#add userprompt * {"router login:"}
# ssh identity for a juniper; used with jlogin
add identity my.juniper $env(HOME)/.ssh/juniper
# riverstone / enterasys / cabletron (rivlogin) example
# these boxes are 'back-to-front' from cisco (i.e., ask
# for vty password always, then tac+/radius if configured).
#
# vty password and last resort (enable) password for rivlogin
add password rs3000 {vtypass} {lastresort}
# if using tac+ or radius login, include these lines
add user rs3000 {monster}
add userpassword rs3000 {scary}
=====================
--
Wagner Pereira
PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade
de São Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901
Post by Ryan West
Locate .cloginrc
Have you created it yet or copied the sample that comes
with the
install to your environment. I hate to say this again, but ALL of
this is covered in the tutorials that were posted.
Post by Ryan West
-ryan
-----Original Message-----
Sent: Tuesday, March 09, 2010 3:34 PM
To: Ryan West
Cc: Rancid Mailing List
Subject: Re: [rancid] It appears that Rancid is working now!
Ryan,
su - rancid && cat .cloginrc && rancid-run
/home/rancid/bin/clogin -c "sh run" 10.0.0.1
Error: password file (/home/rancid/.cloginrc) does not exist
--
Wagner Pereira
PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de
São Paulo
Post by Ryan West
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901
Post by Ryan West
Wagner,
-----Original Message-----
Sent: Tuesday, March 09, 2010 3:16 PM
To: Rancid Mailing List
Subject: [rancid] It appears that Rancid is working now!
Hey, Rancid's guys!
rancid-server# cat switches-PoP-SP.20100309.170101
starting: Tue Mar 9 17:01:01 BRT 2010
cvs add: scheduling file `10.0.0.1' for addition
cvs add: use `cvs commit' to add this file permanently
/home/rancid/var/rancid/CVS/switches-PoP-SP/configs/10.0.0.1
<http://10.0.0.1>
<http://10.0.0.1>,v
Post by Ryan West
Post by Ryan West
<-- 10.0.0.1
initial revision: 1.1
Added 10.0.0.1
Trying to get all of the configs.
10.0.0.1 clogin error: Error: password file
(/root/.cloginrc)
Post by Ryan West
Post by Ryan West
does not exist
su - rancid && cat .cloginrc && rancid-run
-ryan
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Continue reading on narkive:
Loading...