Mailing List Archive

juniper devices
I am having some issues with rancid-3.2-2 on Amazon Linux 2.  I am trying to get rancid to talk to my Juniper (junos) switches and SRX firewalls and am stuck.  
Juniper EX2200Juniper SRX650
I have everything setup in my config.
router.db [rancid@rancid01 configs]$ cat ../router.dbfw.location.example.net;juniper-srx;upsw1.location.example.net;junos;upsw2.location.example.net;juniper;upsw3.location.example.net;juniper;upsw4.location.example.net;juniper;upsw5.location.example.net;juniper;uparuba1.location.example.net;aruba;uparuba2.location.example.net;aruba;down[rancid@rancid01 configs]$

Here is my logs.=====================================Getting missed routers: round 4.unknown router manufacturer for sw1.location.example.net: junossh: jlogin: command not foundfw.location.example.net: missed cmd(s): all commandsfw.location.example.net: End of run not foundsh: jlogin: command not foundsw2.location.example.net: missed cmd(s): all commandssw2.location.example.net: End of run not found##sh: clogin: command not foundaruba1.location.example.net: missed cmd(s): all commandsaruba1.location.example.net: End of run not found!sh: jlogin: command not foundsw3.location.example.net: missed cmd(s): all commandssw3.location.example.net: End of run not foundsh: jlogin: command not foundsw4.location.example.net: missed cmd(s): all commandssw4.location.example.net: End of run not found##sh: jlogin: command not foundsw5.location.example.net: missed cmd(s): all commandssw5.location.example.net: End of run not found#
On branch masterYour branch is up-to-date with 'origin/master'.
nothing to commit, working tree cleanEverything up-to-date
ending: Mon Oct 29 21:01:01 UTC 2018[rancid@rancid01 logs]$
When I run a clogin command on its own, I can ssh in just fine but there is a sligh issue with the terminal.  I suspect it's pagination.

It has been while since having to do this so I'm not sure where I got this mixed up.
Any thoughts?
Regards,Andrew
Re: juniper devices [ In reply to ]
> Mon, Oct 29, 2018 at 09:11:31PM +0000, Andrew Meyer:
> I am having some issues with rancid-3.2-2 on Amazon Linux 2. I am trying to
> get rancid to talk to my Juniper (junos) switches and SRX firewalls and am
> stuck.
>
> Juniper EX2200
> Juniper SRX650
>
> I have everything setup in my config.
>
> router.db
> [rancid@rancid01 configs]$ cat ../router.db
> fw.location.example.net;juniper-srx;up
> sw1.location.example.net;junos;up
> sw2.location.example.net;juniper;up
> sw3.location.example.net;juniper;up
> sw4.location.example.net;juniper;up
> sw5.location.example.net;juniper;up
> aruba1.location.example.net;aruba;up
> aruba2.location.example.net;aruba;down
> [rancid@rancid01 configs]$
>
>
> Here is my logs.
> =====================================
> Getting missed routers: round 4.
> unknown router manufacturer for sw1.location.example.net: junos
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
type should be juniper

> sh: jlogin: command not found
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> fw.location.example.net: missed cmd(s): all commands
> fw.location.example.net: End of run not found
> sh: jlogin: command not found
> sw2.location.example.net: missed cmd(s): all commands
> sw2.location.example.net: End of run not found
> #
> #
> sh: clogin: command not found
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I do not know what an Amazon Linux 2 is nor how you installed rancid,
but because you can run clogin from your shell prompt, i assume you are
not missing prerequisite packages. so, you probably just have a deficient
PATH in your rancid.conf.

> aruba1.location.example.net: missed cmd(s): all commands
> aruba1.location.example.net: End of run not found
> !
> sh: jlogin: command not found
> sw3.location.example.net: missed cmd(s): all commands
> sw3.location.example.net: End of run not found
> sh: jlogin: command not found
> sw4.location.example.net: missed cmd(s): all commands
> sw4.location.example.net: End of run not found
> #
> #
> sh: jlogin: command not found
> sw5.location.example.net: missed cmd(s): all commands
> sw5.location.example.net: End of run 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: Mon Oct 29 21:01:01 UTC 2018
> [rancid@rancid01 logs]$
>
> When I run a clogin command on its own, I can ssh in just fine but there is a
> sligh issue with the terminal. I suspect it's pagination.
>
>
> It has been while since having to do this so I'm not sure where I got this
> mixed up.
>
> Any thoughts?
>
> Regards,
> Andrew
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: juniper devices [ In reply to ]
Amazon Linux 2 is based on redhat/centos 7.

Sent from Yahoo Mail on Android

On Mon, Oct 29, 2018 at 19:02, heasley<heas@shrubbery.net> wrote: > Mon, Oct 29, 2018 at 09:11:31PM +0000, Andrew Meyer:
> I am having some issues with rancid-3.2-2 on Amazon Linux 2.  I am trying to   
> get rancid to talk to my Juniper (junos) switches and SRX firewalls and am
> stuck.

> Juniper EX2200
> Juniper SRX650
>
> I have everything setup in my config.
>
> router.db
> [rancid@rancid01 configs]$ cat ../router.db
> fw.location.example.net;juniper-srx;up
> sw1.location.example.net;junos;up
> sw2.location.example.net;juniper;up
> sw3.location.example.net;juniper;up
> sw4.location.example.net;juniper;up
> sw5.location.example.net;juniper;up
> aruba1.location.example.net;aruba;up
> aruba2.location.example.net;aruba;down
> [rancid@rancid01 configs]$
>
>
> Here is my logs.
> =====================================
> Getting missed routers: round 4.
> unknown router manufacturer for sw1.location.example.net: junos
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
type should be juniper

> sh: jlogin: command not found
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> fw.location.example.net: missed cmd(s): all commands
> fw.location.example.net: End of run not found
> sh: jlogin: command not found
> sw2.location.example.net: missed cmd(s): all commands
> sw2.location.example.net: End of run not found
> #
> #
> sh: clogin: command not found
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I do not know what an Amazon Linux 2 is nor how you installed rancid,
but because you can run clogin from your shell prompt, i assume you are
not missing prerequisite packages.  so, you probably just have a deficient
PATH in your rancid.conf.

> aruba1.location.example.net: missed cmd(s): all commands
> aruba1.location.example.net: End of run not found
> !
> sh: jlogin: command not found
> sw3.location.example.net: missed cmd(s): all commands
> sw3.location.example.net: End of run not found
> sh: jlogin: command not found
> sw4.location.example.net: missed cmd(s): all commands
> sw4.location.example.net: End of run not found
> #
> #
> sh: jlogin: command not found
> sw5.location.example.net: missed cmd(s): all commands
> sw5.location.example.net: End of run 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: Mon Oct 29 21:01:01 UTC 2018
> [rancid@rancid01 logs]$
>
> When I run a clogin command on its own, I can ssh in just fine but there is a
> sligh issue with the terminal.  I suspect it's pagination.
>
>
> It has been while since having to do this so I'm not sure where I got this
> mixed up.
>
> Any thoughts?
>
> Regards,
> Andrew
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: juniper devices [ In reply to ]
Also I installed this from CentOS 7 EPEL repo.

On Monday, October 29, 2018 7:29 PM, Andrew Meyer <andrewm659@yahoo.com> wrote:


Amazon Linux 2 is based on redhat/centos 7.

Sent from Yahoo Mail on Android

On Mon, Oct 29, 2018 at 19:02, heasley<heas@shrubbery.net> wrote: > Mon, Oct 29, 2018 at 09:11:31PM +0000, Andrew Meyer:
> I am having some issues with rancid-3.2-2 on Amazon Linux 2.  I am trying to   
> get rancid to talk to my Juniper (junos) switches and SRX firewalls and am
> stuck.

> Juniper EX2200
> Juniper SRX650
>
> I have everything setup in my config.
>
> router.db
> [rancid@rancid01 configs]$ cat ../router.db
> fw.location.example.net;juniper-srx;up
> sw1.location.example.net;junos;up
> sw2.location.example.net;juniper;up
> sw3.location.example.net;juniper;up
> sw4.location.example.net;juniper;up
> sw5.location.example.net;juniper;up
> aruba1.location.example.net;aruba;up
> aruba2.location.example.net;aruba;down
> [rancid@rancid01 configs]$
>
>
> Here is my logs.
> =====================================
> Getting missed routers: round 4.
> unknown router manufacturer for sw1.location.example.net: junos
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
type should be juniper

> sh: jlogin: command not found
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> fw.location.example.net: missed cmd(s): all commands
> fw.location.example.net: End of run not found
> sh: jlogin: command not found
> sw2.location.example.net: missed cmd(s): all commands
> sw2.location.example.net: End of run not found
> #
> #
> sh: clogin: command not found
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I do not know what an Amazon Linux 2 is nor how you installed rancid,
but because you can run clogin from your shell prompt, i assume you are
not missing prerequisite packages.  so, you probably just have a deficient
PATH in your rancid.conf.

> aruba1.location.example.net: missed cmd(s): all commands
> aruba1.location.example.net: End of run not found
> !
> sh: jlogin: command not found
> sw3.location.example.net: missed cmd(s): all commands
> sw3.location.example.net: End of run not found
> sh: jlogin: command not found
> sw4.location.example.net: missed cmd(s): all commands
> sw4.location.example.net: End of run not found
> #
> #
> sh: jlogin: command not found
> sw5.location.example.net: missed cmd(s): all commands
> sw5.location.example.net: End of run 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: Mon Oct 29 21:01:01 UTC 2018
> [rancid@rancid01 logs]$
>
> When I run a clogin command on its own, I can ssh in just fine but there is a
> sligh issue with the terminal.  I suspect it's pagination.
>
>
> It has been while since having to do this so I'm not sure where I got this
> mixed up.
>
> Any thoughts?
>
> Regards,
> Andrew
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: juniper devices [ In reply to ]
Tue, Oct 30, 2018 at 01:43:33PM +0000, Andrew Meyer:
> Also I installed this from CentOS 7 EPEL repo.

well, it appears to have a flaw. either fix the PATH or install 3.8 from
source.

> On Monday, October 29, 2018 7:29 PM, Andrew Meyer <andrewm659@yahoo.com> wrote:
>
>
> Amazon Linux 2 is based on redhat/centos 7.
>
> Sent from Yahoo Mail on Android
>
> On Mon, Oct 29, 2018 at 19:02, heasley<heas@shrubbery.net> wrote: > Mon, Oct 29, 2018 at 09:11:31PM +0000, Andrew Meyer:
> > I am having some issues with rancid-3.2-2 on Amazon Linux 2.? I am trying to? ?
> > get rancid to talk to my Juniper (junos) switches and SRX firewalls and am
> > stuck.
> >?
> > Juniper EX2200
> > Juniper SRX650
> >
> > I have everything setup in my config.
> >
> > router.db
> > [rancid@rancid01 configs]$ cat ../router.db
> > fw.location.example.net;juniper-srx;up
> > sw1.location.example.net;junos;up
> > sw2.location.example.net;juniper;up
> > sw3.location.example.net;juniper;up
> > sw4.location.example.net;juniper;up
> > sw5.location.example.net;juniper;up
> > aruba1.location.example.net;aruba;up
> > aruba2.location.example.net;aruba;down
> > [rancid@rancid01 configs]$
> >
> >
> > Here is my logs.
> > =====================================
> > Getting missed routers: round 4.
> > unknown router manufacturer for sw1.location.example.net: junos
> ? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> type should be juniper
>
> > sh: jlogin: command not found
> ? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > fw.location.example.net: missed cmd(s): all commands
> > fw.location.example.net: End of run not found
> > sh: jlogin: command not found
> > sw2.location.example.net: missed cmd(s): all commands
> > sw2.location.example.net: End of run not found
> > #
> > #
> > sh: clogin: command not found
> ? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I do not know what an Amazon Linux 2 is nor how you installed rancid,
> but because you can run clogin from your shell prompt, i assume you are
> not missing prerequisite packages.? so, you probably just have a deficient
> PATH in your rancid.conf.
>
> > aruba1.location.example.net: missed cmd(s): all commands
> > aruba1.location.example.net: End of run not found
> > !
> > sh: jlogin: command not found
> > sw3.location.example.net: missed cmd(s): all commands
> > sw3.location.example.net: End of run not found
> > sh: jlogin: command not found
> > sw4.location.example.net: missed cmd(s): all commands
> > sw4.location.example.net: End of run not found
> > #
> > #
> > sh: jlogin: command not found
> > sw5.location.example.net: missed cmd(s): all commands
> > sw5.location.example.net: End of run 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: Mon Oct 29 21:01:01 UTC 2018
> > [rancid@rancid01 logs]$
> >
> > When I run a clogin command on its own, I can ssh in just fine but there is a
> > sligh issue with the terminal.? I suspect it's pagination.
> >
> >
> > It has been while since having to do this so I'm not sure where I got this
> > mixed up.
> >
> > Any thoughts?
> >
> > Regards,
> > Andrew
> >
> >
> > _______________________________________________
> > Rancid-discuss mailing list
> > Rancid-discuss@shrubbery.net
> > http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
>
>
>
>

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: juniper devices [ In reply to ]
So I fixed the path.
# Set the perl module search path.  perl -V shows the default#PERL5LIB="/usr/lib64/rancid"; export PERL5LIBPERL5LIB="/usr/libexec/rancid"; export PERL5LIB
But getting same error for my SRX 650s.
Trying to get all of the configs.fw.location.example.net: missed cmd(s): all commandsfw.location.example.net jlogin error: Error: Connection Refused (ssh)fw.location.example.net: End of run not found#=====================================Getting missed routers: round 1.fw.location.example.net: missed cmd(s): all commandsfw.location.example.net jlogin error: Error: Connection Refused (ssh)fw.location.example.net: End of run not found#=====================================Getting missed routers: round 2.fw.location.example.net: missed cmd(s): all commandsfw.location.example.net jlogin error: Error: Connection Refused (ssh)fw.location.example.net: End of run not found#=====================================Getting missed routers: round 3.fw.location.example.net: missed cmd(s): all commandsfw.location.example.net jlogin error: Error: Connection Refused (ssh)fw.location.example.net: End of run not found#=====================================Getting missed routers: round 4.fw.location.example.net: missed cmd(s): all commandsfw.location.example.net jlogin error: Error: Connection Refused (ssh)fw.location.example.net: End of run not found
I am using juniper for the SRXs as well.  

On Tuesday, October 30, 2018 10:41 AM, "heas@shrubbery.net" <heas@shrubbery.net> wrote:


Tue, Oct 30, 2018 at 01:43:33PM +0000, Andrew Meyer:
> Also I installed this from CentOS 7 EPEL repo.

well, it appears to have a flaw.  either fix the PATH or install 3.8 from
source.

>    On Monday, October 29, 2018 7:29 PM, Andrew Meyer <andrewm659@yahoo.com> wrote:

>
>  Amazon Linux 2 is based on redhat/centos 7.
>
> Sent from Yahoo Mail on Android

>  On Mon, Oct 29, 2018 at 19:02, heasley<heas@shrubbery.net> wrote:  > Mon, Oct 29, 2018 at 09:11:31PM +0000, Andrew Meyer:
> > I am having some issues with rancid-3.2-2 on Amazon Linux 2.  I am trying to   
> > get rancid to talk to my Juniper (junos) switches and SRX firewalls and am
> > stuck.
> > 
> > Juniper EX2200
> > Juniper SRX650
> >
> > I have everything setup in my config.
> >
> > router.db
> > [rancid@rancid01 configs]$ cat ../router.db
> > fw.location.example.net;juniper-srx;up
> > sw1.location.example.net;junos;up
> > sw2.location.example.net;juniper;up
> > sw3.location.example.net;juniper;up
> > sw4.location.example.net;juniper;up
> > sw5.location.example.net;juniper;up
> > aruba1.location.example.net;aruba;up
> > aruba2.location.example.net;aruba;down
> > [rancid@rancid01 configs]$
> >
> >
> > Here is my logs.
> > =====================================
> > Getting missed routers: round 4.
> > unknown router manufacturer for sw1.location.example.net: junos
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> type should be juniper
>
> > sh: jlogin: command not found
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > fw.location.example.net: missed cmd(s): all commands
> > fw.location.example.net: End of run not found
> > sh: jlogin: command not found
> > sw2.location.example.net: missed cmd(s): all commands
> > sw2.location.example.net: End of run not found
> > #
> > #
> > sh: clogin: command not found
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I do not know what an Amazon Linux 2 is nor how you installed rancid,
> but because you can run clogin from your shell prompt, i assume you are
> not missing prerequisite packages.  so, you probably just have a deficient
> PATH in your rancid.conf.
>
> > aruba1.location.example.net: missed cmd(s): all commands
> > aruba1.location.example.net: End of run not found
> > !
> > sh: jlogin: command not found
> > sw3.location.example.net: missed cmd(s): all commands
> > sw3.location.example.net: End of run not found
> > sh: jlogin: command not found
> > sw4.location.example.net: missed cmd(s): all commands
> > sw4.location.example.net: End of run not found
> > #
> > #
> > sh: jlogin: command not found
> > sw5.location.example.net: missed cmd(s): all commands
> > sw5.location.example.net: End of run 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: Mon Oct 29 21:01:01 UTC 2018
> > [rancid@rancid01 logs]$
> >
> > When I run a clogin command on its own, I can ssh in just fine but there is a
> > sligh issue with the terminal.  I suspect it's pagination.
> >
> >
> > It has been while since having to do this so I'm not sure where I got this
> > mixed up.
> >
> > Any thoughts?
> >
> > Regards,
> > Andrew
> >
> >
> > _______________________________________________
> > Rancid-discuss mailing list
> > Rancid-discuss@shrubbery.net
> > http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>

>
>
>   
Re: juniper devices [ In reply to ]
Wed, Oct 31, 2018 at 04:05:41PM +0000, Andrew Meyer:
> So I fixed the path.
> # Set the perl module search path.? perl -V shows the default#PERL5LIB="/usr/lib64/rancid"; export PERL5LIBPERL5LIB="/usr/libexec/rancid"; export PERL5LIB

Please report this to the yum package provider. they have a packaging
problem, it seems.

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: juniper devices [ In reply to ]
Nevermind.  This was an error on  my part.  Nothing with Rancid.

On Wednesday, October 31, 2018 11:28 AM, "heas@shrubbery.net" <heas@shrubbery.net> wrote:


Wed, Oct 31, 2018 at 04:05:41PM +0000, Andrew Meyer:
> So I fixed the path.
> # Set the perl module search path.  perl -V shows the default#PERL5LIB="/usr/lib64/rancid"; export PERL5LIBPERL5LIB="/usr/libexec/rancid"; export PERL5LIB

Please report this to the yum package provider.  they have a packaging
problem, it seems.