Re: [rancid] Rancid not updating

2018-10-16 Thread o...@leferguson.com
Start by looking in the log file (usually in the rancid directory structure, 
try ~/var/rancid/logs (though I think depending on how installed it may be 
elsewhere).  Find the latest log, look at it, see what is happening.

If it's not there (i.e. no logs) rancid is probably not starting.  Restarting 
it depends on linux variant, but if a reboot is possible just reboot.

If the log is there and it gives an error, start with that as it should give a 
clue.  Post results if you need further help after seeing that.

There are also lots of debugging postings on the net (just try searching for 
rancid debug), indeed one technique is to follow the install instructions after 
the install where it describes how to test login, etc.

Linwood

From: Rancid-discuss [mailto:rancid-discuss-boun...@shrubbery.net] On Behalf Of 
Larry Larsen
Sent: Tuesday, October 16, 2018 5:00 PM
To: rancid-discuss@shrubbery.net
Subject: [rancid] Rancid not updating

Community;


I am new to the company, and my predecessor had setup Rancid to collect all our 
configs and do the comparisons.  He also used CVS to display the configs on a 
webpage.  I have no experience with Rancid nor CVS and I was wondering if I 
could get some assistance.   Here is my issue.  I am a Windows guy, and am 
learning Linux.



I made a small change on one of my routers to SNMP, and wanted to see if Rancid 
would pick it up.  The date on the file still shows 7 months ago, and not the 
change I made earlier today.  We make changes almost daily for VLANS, etc, and 
nothing is showing updated.



The schedule to download and send config difference emails is every hour.  I 
have seen multiple emails, but nothing with my change in it.  I also went into 
the Rancid directory structure in Linux and the date in there is also 7 months 
old.  Is there anything you can do to assist?


Thank you!

Larry L.

___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] error after migrating to new server

2018-10-16 Thread heasley
Tue, Oct 16, 2018 at 03:06:53PM +, Andrew Meyer:
> Is this a perl/python or something else command?  I think I found the package 
> in Amazon Linux. 

its a command that comes with rancid.  my guess is one of

- you copied rancid from another machine and missed it
- the pre-built package you installed is broken
- you copied rancid.conf from another machine and its PATH doesnt match,
  so it cant find par.
- you deleted it somehow
- you're using an old version of rancid, when par was a perl script, and
  the interpretter line is wrong
- par lacks executable mode bits

___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


[rancid] Rancid not updating

2018-10-16 Thread Larry Larsen
Community;


I am new to the company, and my predecessor had setup Rancid to collect all our 
configs and do the comparisons.  He also used CVS to display the configs on a 
webpage.  I have no experience with Rancid nor CVS and I was wondering if I 
could get some assistance.   Here is my issue.  I am a Windows guy, and am 
learning Linux.



I made a small change on one of my routers to SNMP, and wanted to see if Rancid 
would pick it up.  The date on the file still shows 7 months ago, and not the 
change I made earlier today.  We make changes almost daily for VLANS, etc, and 
nothing is showing updated.



The schedule to download and send config difference emails is every hour.  I 
have seen multiple emails, but nothing with my change in it.  I also went into 
the Rancid directory structure in Linux and the date in there is also 7 months 
old.  Is there anything you can do to assist?


Thank you!

Larry L.

___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


[rancid] FortiGate login banner

2018-10-16 Thread Ni Ne
If you configure a login banner to FortiGates, you have to accept it before you 
can login to the device. This pops up after entering the password, and you are 
prompted with:

$banner-message
(Press 'a' to accept):

I successfully tested these small changes to fnlogin (version 3.8, build 3763) 
to automatically accept the login banner. The lines between the hash-marks were 
added to the fnlogin script.

---

-re "@\[^\r\n]+\[Pp]assword:"   {
  # ssh pwd prompt
  sleep 1
  send -- "$userpswd\r"
  exp_continue
}
-re "$p_prompt" {
  sleep 1;
  if {$uprompt_seen == 1} {
send -- "$userpswd\r"
  } else {
send -- "$passwd\r"
  }
  exp_continue
}
### accept banner
"(Press 'a' to accept):" {
send "a\r"
exp_continue
}
### accept banner /end
-- "$prompt"{ break; }
 }
}
set in_proc 0
return 0
}

---

Regards,

-Aaron
___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] error after migrating to new server

2018-10-16 Thread Charles T. Brooks
The "file" command says it's an executable image, not a script.

[charlie@gitdrome ~]# file /usr/libexec/rancid/par

/usr/libexec/rancid/par: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), 
dynamically linked (uses shared libs), for GNU/Linux 2.6.32, 
BuildID[sha1]=968bbb9325486639b0fd1294bebcfef7c67317ed, stripped

If you've found the correct par (and not one of the other programs of the same 
name) then like Nick said you need to make sure it's in the PATH of the user 
executing rancid-run.

--Charlie


From: Andrew Meyer [andrewm...@yahoo.com]
Sent: Tuesday, October 16, 2018 11:06 AM
To: Charles T. Brooks
Cc: rancid-discuss@shrubbery.net
Subject: Re: [rancid] error after migrating to new server

Is this a perl/python or something else command?  I think I found the package 
in Amazon Linux.


On Tuesday, October 16, 2018 9:44 AM, Charles T. Brooks 
 wrote:


Short answer, yes.  But "par" is troublesome.

RANCiD needs a program by that name for "parallel command processing", but the 
name conflicts with other software packages, particularly on Ubuntu linux as I 
recall.  I don't know if it conflicts with Amazon's linux.

I renamed it to rancid_par back when I built the Red Hat packages of RANCiD 
3.4.1, but I haven't done so in more recent packages because I don't need any 
of the other programs named "par" on any of my Red Hat boxen.

--Charlie



From: Rancid-discuss 
[rancid-discuss-boun...@shrubbery.net]
 on behalf of Andrew Meyer [andrewm...@yahoo.com]

Sent: Tuesday, October 16, 2018 10:14 AM

To: rancid-discuss@shrubbery.net

Subject: [rancid] error after migrating to new server







Recently we have migrated from our in house setup to AWS.  Rancid is installed 
on Amazon Linux 2, but i'm seeing this issue in the logs:



cat NetworkDevices.20181016.140101
starting: Tue Oct 16 14:01:01 UTC 2018






Trying to get all of the configs.
/usr/bin/control_rancid: line 503: par: command not found
=
Getting missed routers: round 1.
/usr/bin/control_rancid: line 533: par: command not found
=
Getting missed routers: round 2.
/usr/bin/control_rancid: line 533: par: command not found
=
Getting missed routers: round 3.
/usr/bin/control_rancid: line 533: par: command not found
=
Getting missed routers: round 4.
/usr/bin/control_rancid: line 533: par: command not found


On branch master
Your branch is up-to-date with 'origin/master'.


nothing to commit, working tree clean
Everything up-to-date


ending: Tue Oct 16 14:01:01 UTC 2018



Is this a command that didn't get installed?







--  CONFIDENTIALITY NOTICE  ---

  This message, including any attachments, is for the sole use of the
intended recipient(s) and may contain privileged confidential information
protected by law. Any unauthorized review, use, disclosure or distribution
of this message is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of this message.

--  CONFIDENTIALITY NOTICE  ---



--  CONFIDENTIALITY NOTICE  ---

  This message, including any attachments, is for the sole use of the
intended recipient(s) and may contain privileged confidential information
protected by law. Any unauthorized review, use, disclosure or distribution
of this message is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of this message.
 
 --  CONFIDENTIALITY NOTICE  ---
___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] error after migrating to new server

2018-10-16 Thread Nick Nauwelaerts
also, it seems you installed it under /usr/bin, best practices for rancid & 
package management in general is not do this. perhaps install it under the 
rancid user's homedir & make sure $HOME/bin is in your $PATH first. second 
option is that you used a vendor provided rancid package instead of building 
from source, which might not include par. third option is that your cron or 
whatever scheduler you're using is does not have par in it's $PATH.

// nick

-Original Message-
From: Rancid-discuss [mailto:rancid-discuss-boun...@shrubbery.net] On Behalf Of 
Charles T. Brooks
Sent: Tuesday, October 16, 2018 16:45
To: Andrew Meyer 
Cc: rancid-discuss@shrubbery.net
Subject: Re: [rancid] error after migrating to new server

Short answer, yes.  But "par" is troublesome.

RANCiD needs a program by that name for "parallel command processing", but the 
name conflicts with other software packages, particularly on Ubuntu linux as I 
recall.  I don't know if it conflicts with Amazon's linux.

I renamed it to rancid_par back when I built the Red Hat packages of RANCiD 
3.4.1, but I haven't done so in more recent packages because I don't need any 
of the other programs named "par" on any of my Red Hat boxen.

--Charlie



From: Rancid-discuss [rancid-discuss-boun...@shrubbery.net] on behalf of Andrew 
Meyer [andrewm...@yahoo.com]

Sent: Tuesday, October 16, 2018 10:14 AM

To: rancid-discuss@shrubbery.net

Subject: [rancid] error after migrating to new server







Recently we have migrated from our in house setup to AWS.  Rancid is installed 
on Amazon Linux 2, but i'm seeing this issue in the logs:



cat NetworkDevices.20181016.140101
starting: Tue Oct 16 14:01:01 UTC 2018






Trying to get all of the configs.
/usr/bin/control_rancid: line 503: par: command not found
=
Getting missed routers: round 1.
/usr/bin/control_rancid: line 533: par: command not found
=
Getting missed routers: round 2.
/usr/bin/control_rancid: line 533: par: command not found
=
Getting missed routers: round 3.
/usr/bin/control_rancid: line 533: par: command not found
=
Getting missed routers: round 4.
/usr/bin/control_rancid: line 533: par: command not found


On branch master
Your branch is up-to-date with 'origin/master'.


nothing to commit, working tree clean
Everything up-to-date


ending: Tue Oct 16 14:01:01 UTC 2018



Is this a command that didn't get installed?






--  CONFIDENTIALITY NOTICE  ---

  This message, including any attachments, is for the sole use of the
intended recipient(s) and may contain privileged confidential information
protected by law. Any unauthorized review, use, disclosure or distribution
of this message is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of this message.

 --  CONFIDENTIALITY NOTICE  ---

___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss



Volg Aquafin op Facebook | 
Twitter | 
YouTube | 
LinkedIN

In het kader van de uitoefening van onze taken verzamelen we bij Aquafin 
persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de 
betrokkenen zijn, kan je nalezen in onze privacy 
policy.

[https://www.aquafin.be/sites/aquafin/files/styles/paragraph_with_caption/public/2018-08/email_banner_web_0.jpg]
  P Denk aan het milieu. Druk deze mail niet onnodig af.

___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] error after migrating to new server

2018-10-16 Thread Charles T. Brooks
Short answer, yes.  But "par" is troublesome.

RANCiD needs a program by that name for "parallel command processing", but the 
name conflicts with other software packages, particularly on Ubuntu linux as I 
recall.  I don't know if it conflicts with Amazon's linux.

I renamed it to rancid_par back when I built the Red Hat packages of RANCiD 
3.4.1, but I haven't done so in more recent packages because I don't need any 
of the other programs named "par" on any of my Red Hat boxen.

--Charlie



From: Rancid-discuss [rancid-discuss-boun...@shrubbery.net] on behalf of Andrew 
Meyer [andrewm...@yahoo.com]

Sent: Tuesday, October 16, 2018 10:14 AM

To: rancid-discuss@shrubbery.net

Subject: [rancid] error after migrating to new server







Recently we have migrated from our in house setup to AWS.  Rancid is installed 
on Amazon Linux 2, but i'm seeing this issue in the logs:



cat NetworkDevices.20181016.140101
starting: Tue Oct 16 14:01:01 UTC 2018






Trying to get all of the configs.
/usr/bin/control_rancid: line 503: par: command not found
=
Getting missed routers: round 1.
/usr/bin/control_rancid: line 533: par: command not found
=
Getting missed routers: round 2.
/usr/bin/control_rancid: line 533: par: command not found
=
Getting missed routers: round 3.
/usr/bin/control_rancid: line 533: par: command not found
=
Getting missed routers: round 4.
/usr/bin/control_rancid: line 533: par: command not found


On branch master
Your branch is up-to-date with 'origin/master'.


nothing to commit, working tree clean
Everything up-to-date


ending: Tue Oct 16 14:01:01 UTC 2018



Is this a command that didn't get installed?






--  CONFIDENTIALITY NOTICE  ---

  This message, including any attachments, is for the sole use of the
intended recipient(s) and may contain privileged confidential information
protected by law. Any unauthorized review, use, disclosure or distribution
of this message is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of this message.
 
 --  CONFIDENTIALITY NOTICE  ---

___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss