[rancid] Re: It appears that Rancid is working now!

Wagner Pereira wpereira at pop-sp.rnp.br
Tue Mar 9 21:37:41 UTC 2010


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



Ryan West escreveu:
> 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-----
>> From: Wagner Pereira [mailto:wpereira at pop-sp.rnp.br]
>> 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,
>>
>> I did that:
>>
>> su - rancid && cat .cloginrc && rancid-run
>> rancid at servicos2:~$
>>
>> and I did run this:
>>
>> /home/rancid/bin/clogin -c "sh run" 10.0.0.1
>>
>> 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
>>
>>
>>
>> Ryan West escreveu:
>>     
>>> 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!
>>>>
>>>> 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 `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
>>>
>>>       


More information about the Rancid-discuss mailing list