Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: RANCID: Users

Mulitple .cloginrc entries

 

 

RANCID users RSS feed   Index | Next | Previous | View Threaded


ronald.seguin at bellnexxia

Feb 16, 2002, 10:03 AM

Post #1 of 3 (301 views)
Permalink
Mulitple .cloginrc entries

Hi,

I currently have a user/pass within .cloginrc in the Rancid home directory...works
fine for Cisco devices, however I have a number of Redbacks that I want to
introduce that does not have the same user/pass combo...

Can we somehow have multiple .cloginrc's being accessed based upon Vendor type??

--thanks


heas at shrubbery

Feb 16, 2002, 10:16 AM

Post #2 of 3 (284 views)
Permalink
Mulitple .cloginrc entries [In reply to]

Sat, Feb 16, 2002 at 01:03:42PM -0500, Seguin, Ron:
> Hi,
>
> I currently have a user/pass within .cloginrc in the Rancid home directory...works
> fine for Cisco devices, however I have a number of Redbacks that I want to
> introduce that does not have the same user/pass combo...
>
> Can we somehow have multiple .cloginrc's being accessed based upon Vendor type??
>
> --thanks
>

echo "add password * {redbackpwd}" > ~/.cloginrc.rb

clogin -f ~/.cloginrc.rb redbackhostname

or alias the command.

there are no knobs within clogin to do selection based on manufacturer
or platform nor does it consider the router.db file which has that data.
the most convenient way imo is via dns;

redback -> nas0.city
router -> r0.city
switch -> s0.city

echo "add password nas* {redbackpwd}" >> ~/.cloginrc


asp at partan

Feb 16, 2002, 11:22 AM

Post #3 of 3 (278 views)
Permalink
Mulitple .cloginrc entries [In reply to]

On Sat, Feb 16, 2002 at 01:03:42PM -0500, Seguin, Ron wrote:
> I currently have a user/pass within .cloginrc in the Rancid home
> directory...works fine for Cisco devices, however I have a number
> of Redbacks that I want to introduce that does not have the same
> user/pass combo...

Do it by name of device. e.g.:

add password cisco* {x} {y}
add password red* {z} {tt}

or whatever names you are using.
--asp

RANCID users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.