Fabio Santos | 10 Apr 17:12 2014
Picon

[rancid] Erro with Rancid on solaris 10.

Hi all,

I'm trying to compile rancid 3.0 on solaris 10, the ./configure command works fine. but when i try make i received the erro above,

Making all in bin
gmake[1]: Entering directory `/tmp/rancid-3.0/bin'
gcc -DHAVE_CONFIG_H -I. -I../include     -g -O0 -MT hpuifilter.o -MD -MP -MF .deps/hpuifilter.Tpo -c -o hpuifilter.o hpuifilter.c
mv -f .deps/hpuifilter.Tpo .deps/hpuifilter.Po
gcc  -g -O0   -o hpuifilter hpuifilter.o
gcc -DHAVE_CONFIG_H -I. -I../include     -g -O0 -MT par.o -MD -MP -MF .deps/par.Tpo -c -o par.o par.c
mv -f .deps/par.Tpo .deps/par.Po
gcc  -g -O0   -o par par.o
Undefined                       first referenced
 symbol                             in file
asprintf                            par.o
ld: fatal: Symbol referencing errors. No output written to par
gmake[1]: *** [par] Error 1
gmake[1]: Leaving directory `/tmp/rancid-3.0/bin'
make: *** [all-recursive] Error 1
bash-3.00#

Someone know how can i fix this problem?

Att,
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Andrei Sabau | 7 Apr 18:09 2014
Picon

[rancid] rancid -t cisco host works but rancid host does not.

Hello. I've recently installed Rancid on a Centos 6. I have worked with it before a bit but never encountered this issue.

I have hosts assigned in the hosts file. I have the host added in <group>/router.db
The clogin command works. The clogin -c command works.

The log from run-rancid shows almost empty. I tried running the comands separately but 'rancid host' gives me a:

loadtype(): device_type is empty
Couldn't load device type spec for

but 'rancid -t cisco host' works. I'm thinking this has to do with rancid and the group's router.db.

my group is in rancid.conf (LIST_OF_GROUPS="networking") but is the networking/router.db even read?


Any ideas are helpful, thanks.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Picon

[rancid] fortigate paging suppression

Hi All,

 

I have some new fortigates that I need to backup with RANCID. They are running config-version FW60C-5.00. When I back them up the paging lines show up in the config on the same line as some part of the config eg. “--More--                          next”. I have tried patching the original fnlogin with the following.

 

-                  -gl "--More--"                                                { send " "

+                 -gl "--More--\[^\n\r]*"                             { send " "

                                                                                                 exp_continue

-                  -re "\[\n\r]+"                                 { exp_continue }

                                                                                               }

+                 -re "\[^\r\n]*\[\n\r]+"             { send_user -- "$expect_out(buffer)"

+                                                                                               exp_continue }

+                                                                                             }

 

I still get the pages in the config. I tried a newer version of fnlogin from https://github.com/renard/rancid/blob/master/bin/fnlogin.in but have the same result. I am currently running RANCID 2.3.6-1.el5 and will not be upgrading to a newer version for at least another month or two. Is there a way to make this work with my current fnlogin and RANCID version?

 

Regards,

Scotty

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
heasley | 2 Apr 00:26 2014
Picon

Re: [rancid] Cisco Banner Issue

Mon, Mar 31, 2014 at 09:34:33PM +0100, Alex DEKKER:
> On 31/03/14 04:57, heasley wrote:
> > develop a process to wait to see if
> > anything follows the # or >, which has its own set of pitfalls.
> 
> I [sitting in my armchair, not being the developer] think this idea has 
> some mileage. Would it be unreasonable to wait n seconds after a # to 
> determine that it's a prompt? Obviously if you do this then you'd have 
> to add a knob to tweak for those who are taking backups over satellite 
> links &c.
> 
> Perhaps you could be a bit cleverer - if a router is delivering 20 
> lines/sec of output, then you'll know within 0.5sec if it's finished, 
> although some seem to always be slow when delivering certain sections of 
> config. Pitfalls indeed!

Something like this could [mostly] work.

Index: clogin.in
===================================================================
--- clogin.in	(revision 2802)
+++ clogin.in	(working copy)
 <at>  <at>  -575,7 +575,21  <at>  <at> 
 				}
 	-re "$prompt"		{
 				  set prompt_match $expect_out(0,string);
-				  break;
+				  expect {
+					" "	{ exp_continue }
+					-re ".+" {
+						  unset prompt_match;
+						  break
+						}
+					timeout	{ set to 1;
+						  break
+						}
+				  }
+				  if {$to == 1} {
+					unset to;
+					break
+				  }
+				  exp_continue;
 				}
 	"Login invalid"		{
 				  send_user "\nError: Invalid login: $router\n";

but without constraining the timeout somehow, thats much to slow for my
patience.  it also doesnt deal with eof.

how to arrive at a reliable timeout is a another question.  what is too long
or short?  can the previous input rate simply be measured?  is the link
congested or is there routing instability producing massively variable
throughput?  maybe some would argue that last bit can be ignored; i think
that makes it unreliable and more difficult to support.

i am far more inclined to say dont do it (or have banners at all); the price
of admission.  or, if you must have #s in your banner, do not use autoenable,
so its looking for >s - which is also a poor solution, as it would be better
for clogin not to care about autoenable, so it would be looking for [>#] by
default.

i am however open to adding a cloginrc variable to constrain the prompt
match; eg: "^[ \n\r]+[#>]".  thereby, you could have whatever you wanted
in your banner as long as the first character of the line is a space - for
example.

and open to other suggestions or proving me wrong :)
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

Shane Ronan | 1 Apr 22:46 2014

[rancid] No "Show VLAN" on Cisco 3750


It collects and records this data for all other Cisco equipment types.


Help is appreciated.

Shane Ronan, Vice President – Technology Architect 

State Street Global Exchange | 600 College Road East | Princeton, NJ 08540

P  (212) 259-3023    |  M (347) 413-4503

sronan <at> eexchange.com



http://www.statestreet.com/emaildisclaimer/
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Hans Mueller | 31 Mar 15:51 2014
Picon
Picon

[rancid] Alcatel-Lucent Support 7330 ISAM FTTN (ANSI)

 
Hello,
 
I'm looking for a working rancid login script for Alcatel-Lucent Support 7330 ISAM FTTN (ANSI). I'm managing about 30 of these boxes and i would be happy if rancid would work. I'm able to provide a test-login to a labor system.

Best regards
H.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Jeremy Visser | 28 Mar 03:00 2014

[rancid] Multiple devices, multiple ports, one hostname

I have a number of branch locations, each with a single public IPv4 address, and am given a corresponding DNS
name (siteXX.customer.com).

TCP port 22 is the SSH interface to the branch router, and TCP port 222 is NAPT-forwarded to a phone system
sitting behind the router.

Currently the router is being tracked by RANCID, but I would like to track the phone system too.  But I fail to
see how I could do that, given they would end up having the same hostname.

Any suggestions?
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

Shane Ronan | 27 Mar 01:49 2014

[rancid] Issue with Cisco 6500

I have a strange issue with some 6500’s that I am hoping someone here can help me explain.

When I run “clogin -t 90 -c"show version”” it logs in correctly, the banner passes, it goes to a command line, and clogin issues “terminal length 0” at which point the switch stops responding and eventually times out.

Has anyone experienced anything similar?

Shane Ronan, Vice President – Technology Architect 
State Street Global Exchange | 600 College Road East | Princeton, NJ 08540
P  (212) 259-3023    |  M (347) 413-4503
sronan <at> eexchange.co


http://www.statestreet.com/emaildisclaimer/
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Matt Almgren | 26 Mar 22:22 2014

[rancid] Is there a working f5rancid script for 10.1 and 11.4 ?

Hi all, I'm looking for a working f5rancid script for the following:

We have a mix of f5 devices that are running either 10.1/10.2(bigpipe) or 11.4 (tmsh).   Our configured "rancid" user is logging in via TACACS and is dropped into the advanced shell.  Using the original f5rancid script, of course there's no tmsh commands, so it fails for the 11.4 devices.  So I downloaded the latest f5rancid script from the github repo here: https://github.com/dotwaffle/rancid-git/blob/master/bin/f5rancid.in, which has tmsh commands in it, but it doesn't work as I think it should and brings up more questions.

When I run the f5rancid script manually I see that it doesn't look like it's choosing the tmsh commands.   Is there something I am missing to tell it to use tmsh?   I would think it can grok that from the command prompt, but I'm not sure of the logic.  I tried looking at the f5rancid script and I see where it's supposed to make the choice, but my perl skills suck.

[rancid <at> sfo-admin007 bin]$ ./f5rancid -d mtv-lb001
executing clogin -t 90 -c "bigpipe version 2>&1" mtv-lb001
executing clogin -t 90 -c "bigpipe version;bigpipe platform;cat /config/bigip.license;bigpipe monitor list all;bigpipe profile list;bigpipe base list;bigpipe db show;bigpipe route static show;bigpipe list" mtv-lb001
sh: clogin: command not found
mtv-lb001: missed cmd(s): bigpipe route static show,bigpipe base list,cat /config/bigip.license,bigpipe platform,bigpipe db show,bigpipe monitor list all,bigpipe version,bigpipe profile list,bigpipe list
mtv-lb001: missed cmd(s): bigpipe route static show,bigpipe base list,cat /config/bigip.license,bigpipe platform,bigpipe db show,bigpipe monitor list all,bigpipe version,bigpipe profile list,bigpipe list
mtv-lb001: End of run not found
mtv-lb001: End of run not found
#
[rancid <at> sfo-admin007 bin]$ 


Clogin shows that it is able to login and lands in the advanced shell:

[rancid <at> sfo-admin007 root]$ /usr/local/rancid/bin/clogin mtv-lb001
mtv-lb001
spawn ssh -c 3des -x -l rancid mtv-lb001
Password: 
Last login: Wed Mar 26 13:58:46 2014 from 10.102.128.27
[rancid <at> mtv-lb001:Active:Standalone] ~ # 

Anyone got a working f5 script and brief README they can share with me? 

Thanks, Matt

-- 
Matt Almgren | Sr. Network Engineer
779 Evelyn Ave, Suite 200
Mountain View, CA 94041

Mobile: 408.499.9669



This message is being sent by Skyfire Labs. It is intended exclusively for the individuals and entities to which it is addressed. This communication, including any attachments, may contain information that is proprietary, privileged, confidential, or otherwise subject to restrictions on disclosure pursuant to applicable law. If you are not the named addressee, you are not authorized to read, print, retain copy or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately by email and delete all copies of this message. This message is protected by applicable legal privileges and is confidential.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Josten, Michael | 24 Mar 09:23 2014
Picon

[rancid] -cloginrc ip range

Hello everyone,

 

instead of using

 

add method * {telnet} {ssh}

 

I want to speed up everything by avoiding failed telnet login attempts on switches that are accessed via ssh as long as

We haven’t configured every switch to ssh access only.

I am wondering if there is a way to configure ip address ranges as this example looks kinda bloated

 

add method x.x.x.1 {ssh:10022}

add method x.x.x.2 {telnet}

add method x.x.x.3 {telnet}

add method x.x.x.4 {telnet}

add method x.x.x.5 {telnet}

add method x.x.x.6 {telnet}

add method x.x.x.8 {ssh:22}

add method * {telnet} {ssh}

 

best regards

michael

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Elliot Wilen | 20 Mar 22:43 2014

[rancid] Getting viewvc colored diffs to work

There are a couple walkthroughs for setting up rancid + viewvc at
http://www.shrubbery.net/rancid/#started, which were extremely helpful in terms of getting
everything working. But I still found that viewvc's "colored diff" options weren't actually showing any colors.

I just found the answer, so in the hope that this will help someone, here it is:

Edit /etc/viewvc/viewvc.conf and comment out the line that reads

docroot = /viewvc-static

If you'd like, you could read the documentation above that line to make things work slightly more
efficiently, but for my purposes this was enough. There's no need to restart httpd, although you may need
to clear your browser cache before reloading the web page.

As a bonus you also get some nice icons and logos.

--
Elliot Wilen
Sr. System Administrator
Aechelon Technology
E-Mail: elliot.wilen <at> aechelon.com

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


Gmane