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

Mailing List Archive: RANCID: Users

(no subject)

 

 

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


esteinke at speakeasy

Jun 13, 2006, 7:15 AM

Post #1 of 7 (1987 views)
Permalink
(no subject)

Greetings!

Any hints on getting an Aruba Wireless switch working with Rancid? The OS=
is somewhat like the Cisco IOS. I succesfully tested the clogin porti=
on and after the initial setup it was able to pull the config. Then it st=
arted emailing about not being able to contact the router. Looking at =
the logs I see that it is waiting for resposnes to commands which the =
Aruba doesn't support (show vlan) being one. Is there a way to customize =
rancid for this device?
Thanks!
Liz


karpenko at willers

Jun 13, 2006, 7:42 AM

Post #2 of 7 (1887 views)
Permalink
Re: (no subject) [In reply to]

I would make a copy of clogin (expect script) and rancid (perl script) and then modify the rancid (perl script) to send the commands your want or comment out the commands you do or don't want it to send; the commands that are sent is what rancid (perl script) parses. The rancid (perl script) calls the clogin (expect script). You would need to make sure and replace the "clogin" with the name of the copy that you made. Dunno if this is what your looking for, but HTH.

/karpenko/

On Tue, 13 Jun 2006 esteinke at speakeasy.net wrote:

> Greetings!
>
> Any hints on getting an Aruba Wireless switch working with Rancid? The OS=
> is somewhat like the Cisco IOS. I succesfully tested the clogin porti=
> on and after the initial setup it was able to pull the config. Then it st=
> arted emailing about not being able to contact the router. Looking at =
> the logs I see that it is waiting for resposnes to commands which the =
> Aruba doesn't support (show vlan) being one. Is there a way to customize =
> rancid for this device?
> Thanks!
> Liz
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>


gabbawp at gmail

Jul 20, 2011, 2:27 AM

Post #3 of 7 (1894 views)
Permalink
Re: (no subject) [In reply to]

Hi Alejandro,

It sounds like clogin is referencing another .cloginrc file.

You can make sure by using the -f flag when running clogin - clogin -f
/location/of/.cloginrc

Cheers,

Gareth

2011/7/20 Alejandro Sanchez <Alejandro.Sanchez [at] sitel>

> Hi team,****
>
> My .cloginrc file is not working properly. ****
>
> For some reason, is not using what I put on .cloginrc file****
>
> ** **
>
> I just have ****
>
> Add user * username ****
>
> Add password * password enablepassword****
>
> Add method * ssh****
>
> ** **
>
> ** **
>
> But when I test the login with clogin x.x.x.x, it then try to use telnet
> and the old credentials****
>
> ** **
>
> Any idea?****
> **CONFIDENTIAL NOTICE**
> This e-mail and any files transmitted with it may contain PRIVILEGED or
> CONFIDENTIAL information and may be read or used only by the intended
> recipient. If you are not the intended recipient of the e-mail or any of its
> attachments, please be advised that you have received this e-mail in error
> and that any use, dissemination, distribution, forwarding, printing, or
> copying of this e-mail or any attached files is strictly prohibited. If you
> have received this e-mail in error, please immediately purge it and all
> attachments and notify the sender by reply e-mail.
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss [at] shrubbery
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>


Alejandro.Sanchez at sitel

Jul 20, 2011, 3:03 AM

Post #4 of 7 (1884 views)
Permalink
Re: (no subject) [In reply to]

Solved, thanks



I was logged as root and there were 2 .cloginrc files on both root and rancid2 user

Removed the root one



________________________________

De: Gareth Hopkins [mailto:gabbawp [at] gmail]
Enviado el: miércoles, 20 de julio de 2011 11:27
Para: Alejandro Sanchez
CC: rancid-discuss [at] shrubbery
Asunto: Re: [rancid] (no subject)



Hi Alejandro,



It sounds like clogin is referencing another .cloginrc file.



You can make sure by using the -f flag when running clogin - clogin -f /location/of/.cloginrc



Cheers,



Gareth

2011/7/20 Alejandro Sanchez <Alejandro.Sanchez [at] sitel>

Hi team,

My .cloginrc file is not working properly.

For some reason, is not using what I put on .cloginrc file



I just have

Add user * username

Add password * password enablepassword

Add method * ssh





But when I test the login with clogin x.x.x.x, it then try to use telnet and the old credentials



Any idea?

**CONFIDENTIAL NOTICE**
This e-mail and any files transmitted with it may contain PRIVILEGED or CONFIDENTIAL information and may be read or used only by the intended recipient. If you are not the intended recipient of the e-mail or any of its attachments, please be advised that you have received this e-mail in error and that any use, dissemination, distribution, forwarding, printing, or copying of this e-mail or any attached files is strictly prohibited. If you have received this e-mail in error, please immediately purge it and all attachments and notify the sender by reply e-mail.


_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss



**CONFIDENTIAL NOTICE**
This e-mail and any files transmitted with it may contain PRIVILEGED or CONFIDENTIAL information and may be read or used only by the intended recipient. If you are not the intended recipient of the e-mail or any of its attachments, please be advised that you have received this e-mail in error and that any use, dissemination, distribution, forwarding, printing, or copying of this e-mail or any attached files is strictly prohibited. If you have received this e-mail in error, please immediately purge it and all attachments and notify the sender by reply e-mail.


maddockg at gmail

Apr 16, 2013, 7:55 AM

Post #5 of 7 (1431 views)
Permalink
Re: (no subject) [In reply to]

Well, I solved that easy... I had commented out: add autoenable 10.1.1.1 1
while trouble shooting prior to firmware upgrade. All is working now.
Thanks anyway


On Mon, Apr 15, 2013 at 5:08 PM, Gerry Maddock <maddockg [at] gmail> wrote:

> I have rancid working with my Dell Powerconnect 8024F & PowerConnect 7048.
> I am having issues with powerconnect 5448 and similar models. I thought a
> firmware update may do the trick, but still having problems after firmware
> upgrade.
>
>
> Trying to get all of the configs.
> opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid
> line 272.
> found_end = 0, clean_run = 0
> 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in
> /var/lib/rancid/.cloginrc.
> 10.1.1.1: missed cmd(s): show version,show running-config,show vlan
> 10.1.1.1: End of run not found
> !
> =====================================
> Getting missed routers: round 1.
> opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid
> line 272.
> found_end = 0, clean_run = 0
> 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in
> /var/lib/rancid/.cloginrc.
> 10.1.1.1: missed cmd(s): show version,show running-config,show vlan
> 10.1.1.1: End of run not found
> !
> =====================================
> Getting missed routers: round 2.
> opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid
> line 272.
> found_end = 0, clean_run = 0
> 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in
> /var/lib/rancid/.cloginrc.
> 10.1.1.1: missed cmd(s): show version,show running-config,show vlan
> 10.1.1.1: End of run not found
> !
> =====================================
> Getting missed routers: round 3.
> opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid
> line 272.
> found_end = 0, clean_run = 0
> 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in
> /var/lib/rancid/.cloginrc.
> 10.1.1.1: missed cmd(s): show version,show running-config,show vlan
> 10.1.1.1: End of run not found
> !
> =====================================
> Getting missed routers: round 4.
> opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid
> line 272.
> found_end = 0, clean_run = 0
> 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in
> /var/lib/rancid/.cloginrc.
> 10.1.1.1: missed cmd(s): show version,show running-config,show vlan
> 10.1.1.1: End of run not found
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss [at] shrubbery
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>


heas at shrubbery

May 5, 2014, 7:17 AM

Post #6 of 7 (1076 views)
Permalink
Re: (no subject) [In reply to]

Thu, May 01, 2014 at 01:21:42PM -0400, Gerhard Mourani:
> Hello,
>
> I'm using Rancid 3.0 to check FortiGate configuration changes and it is
> working except that I receive every time when the script is running, the
> following diff.
>
> - set password ENC
> ttKtc1dKyMz19Q6J7FQ6TLuM4ijBajn0gOgs8OvSaaExqFScZf1ngJTXpyHOrg8gdkcZLYKnTAWNGooEasQAYgnzwTq1siZvMrE37H1tQaBhDvenHB94CP7W+Esp/82LBKVA57xuaAVpehH0WCeFLIjdogE+N8yBfcmObOqBYewbTt9xRL/MG+XwQqtjHeyGC5tsrw==
> + set password ENC
> Ig68IRG3Y25jMaueDr6VTnROaGLp2DbwMKjK7AzIkDserF+TDqcdSOKof+vGSfBL52TPZGNN/JXsC6SRIZcBrPm2yE3ciRgkX9FxoNmN2WieUBr8GEaEdwD4HpHFe31D13Sc+k9tHLczdXOCYnGVFXMZNH2zaa6ZIzSIQuYPPaWBltJolkCcdEHQoUjQ4tB8imTGmw==

this should fix that.

Index: bin/fnrancid.in
===================================================================
--- bin/fnrancid.in (revision 2837)
+++ bin/fnrancid.in (working copy)
@@ -225,7 +225,7 @@
}
}
# filter cycling password encryption
- if (/^\s*(set [^\s]*)\s(Enc\s[^\s]+)(.*)/i && $filter_pwds > 0 ) {
+ if (/^\s*(set [^\s]*)\s(enc\s[^\s]+)(.*)/i && $filter_pwds > 0 ) {
ProcessHistory("ENC","","","#$1 ENC <removed> $3\n");
next;
}

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


alan.mckinnon at gmail

Dec 2, 2015, 10:41 AM

Post #7 of 7 (439 views)
Permalink
Re: (no subject) [In reply to]

On 02/12/2015 13:31, Harsha S Aryan wrote:
> hi,
>
> i have some doubts in rancid can any one explane what is the below
> things status for
>
> root@[server]:/# vi /var/lib/rancid/switches/router.db
> switch1.your-domainname.xyz:hp:up
> switch2.your-domainname.xyz:hp:up
> 1.2.3.4:hp:up
> 1.2.3.5:hp:down


This is all in the man pages somewhere, but here goes:

That's a config file from the rancid 2.3 series; the 3.x series uses a
semicolon ";" as a field separator and not a colon ":" as was used in
2.3. This is to avoid issues with IPv6 addresses; otherwise the format
is the same.

Each line has 3 fields:

device name: this can be it's fqdn or an IP address
device type: a device type as defined in rancid (see [1] below)
status: "up" means the device is working and rancid will poll it. Any
other value means down and rancid will not poll it

[1] A device type of "cisco" or "hp" does not have to mean the device
was made by Cisco or Hewlett Packard. If Acme Inc made a device that
copies Cisco IOS config closely, then the cisco type would probably work
for it. On the other hand, recent Cisco OSes (eg GSR, Nexus and XR) are
a lot different from classic IOS so the cisco type doesn't work for
them, you use types like cisco-gsr, cisco-nx and cisco-xr.

HP kit (liek Dell) has a reputation for being badge engineered and
sometimes it feels like every model is completely different. Usually you
have to find out what the actual OEM device is, and use that type.

Confusing? you betcha.

[2] There a possible optional fourth field in that file, it is treated
as a comment. I used it a lot to document the date and reason I marked
something down, and it shows up in the daily status emails. Useful tip!


--
Alan McKinnon
alan.mckinnon [at] gmail

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

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.