Mailing List Archive

Unable to figure out "end of run not found"
Hi all, we manage about 200-300 Brocade ICX switches across a number of
locations. All but two are being successfully polled. The two in question
(same firmware and a similar config to the others) consistently show "end
of run not found" when run as part of the cron job. But, when run manually
for troubleshooting, everything seems to work.

`sudo -u rancid flogin switchname` works fine and logs me into the switch.

`sudo -u rancid flogin -c 'show version;show clock' switchname` likewise
works fine. Logs in, runs the commands, and logs out.

`sudo -u rancid rancid -t foundry -d switchname` runs through everything
perfectly. The switchname.new file has the expected output.

Yet the log for the automated process consistently shows this:

switchname: End of run not found
end

Is there anything else I can do to troubleshoot this? Thanks in advance!

Mike
Re: Unable to figure out "end of run not found" [ In reply to ]
Is there any bandwidth hog on those switches by any chance?

On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote:
> Hi all, we manage about 200-300 Brocade ICX switches across a number
> of locations. All but two are being successfully polled. The two in
> question (same firmware and a similar config to the others)
> consistently show "end of run not found" when run as part of the cron
> job. But, when run manually for troubleshooting, everything seems to
> work.
>
> `sudo -u rancid flogin switchname` works fine and logs me into the
> switch.
>
> `sudo -u rancid flogin -c 'show version;show clock' switchname`
> likewise works fine. Logs in, runs the commands, and logs out.
>
> `sudo -u rancid rancid -t foundry -d switchname` runs through
> everything perfectly. The switchname.new file has the expected
> output.
>
> Yet the log for the automated process consistently shows this:
>
> switchname: End of run not found
> end
>
> Is there anything else I can do to troubleshoot this? Thanks in
> advance!
>
> Mike
> _______________________________________________
> 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: Unable to figure out "end of run not found" [ In reply to ]
No, there is not. But I guess you're thinking maybe the login doesn't work
because of heavy traffic.

So this got me looking for how to do debug output per-host. There doesn't
seem to be, but that got me to this posting:
https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html
And that made me notice that my router.db entry was corrupt (wrong device
type.)

So, typical user error. Thanks for (indirectly) getting me in the right
direction though!

Mike


On Mon, 10 Jun 2019 at 00:22, Vacheslav Zouhairy <m_zouhairy@skno.by> wrote:

> Is there any bandwidth hog on those switches by any chance?
>
> On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote:
> > Hi all, we manage about 200-300 Brocade ICX switches across a number
> > of locations. All but two are being successfully polled. The two in
> > question (same firmware and a similar config to the others)
> > consistently show "end of run not found" when run as part of the cron
> > job. But, when run manually for troubleshooting, everything seems to
> > work.
> >
> > `sudo -u rancid flogin switchname` works fine and logs me into the
> > switch.
> >
> > `sudo -u rancid flogin -c 'show version;show clock' switchname`
> > likewise works fine. Logs in, runs the commands, and logs out.
> >
> > `sudo -u rancid rancid -t foundry -d switchname` runs through
> > everything perfectly. The switchname.new file has the expected
> > output.
> >
> > Yet the log for the automated process consistently shows this:
> >
> > switchname: End of run not found
> > end
> >
> > Is there anything else I can do to troubleshoot this? Thanks in
> > advance!
> >
> > Mike
> > _______________________________________________
> > 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: Unable to figure out "end of run not found" [ In reply to ]
> So this got me looking for how to do debug output per-host

If you’re using Linux, the command is:

NOPIPE=yes rancid -d -t <type> <devicename>

This will generate two files:
.new
.raw

.new is the parsed output
.raw is pure log of the session (ie, it even captures non-printing characters). I believe it’s only dumped if you set both NOPIPE and -d.

I’ve used the .raw output on many occasions. At the moment I’m even troubleshooting a device CPU issue that rancid tripped on that I wouldn’t have found but for this; “clogin -c<command-set> <device>” was even working fine.

weylin

From: Michael Newton <mnewton@pofp.com>
Date: Monday, June 10, 2019 at 11:25 AM
To: Vacheslav Zouhairy <m_zouhairy@skno.by>
Cc: <rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to figure out "end of run not found"

No, there is not. But I guess you're thinking maybe the login doesn't work because of heavy traffic.

So this got me looking for how to do debug output per-host. There doesn't seem to be, but that got me to this posting: https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html And that made me notice that my router.db entry was corrupt (wrong device type.)

So, typical user error. Thanks for (indirectly) getting me in the right direction though!

Mike


On Mon, 10 Jun 2019 at 00:22, Vacheslav Zouhairy <m_zouhairy@skno.by<mailto:m_zouhairy@skno.by>> wrote:
Is there any bandwidth hog on those switches by any chance?

On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote:
> Hi all, we manage about 200-300 Brocade ICX switches across a number
> of locations. All but two are being successfully polled. The two in
> question (same firmware and a similar config to the others)
> consistently show "end of run not found" when run as part of the cron
> job. But, when run manually for troubleshooting, everything seems to
> work.
>
> `sudo -u rancid flogin switchname` works fine and logs me into the
> switch.
>
> `sudo -u rancid flogin -c 'show version;show clock' switchname`
> likewise works fine. Logs in, runs the commands, and logs out.
>
> `sudo -u rancid rancid -t foundry -d switchname` runs through
> everything perfectly. The switchname.new file has the expected
> output.
>
> Yet the log for the automated process consistently shows this:
>
> switchname: End of run not found
> end
>
> Is there anything else I can do to troubleshoot this? Thanks in
> advance!
>
> Mike
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net<mailto:Rancid-discuss@shrubbery.net>
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss


_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net<mailto:Rancid-discuss@shrubbery.net>
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Unable to figure out "end of run not found" [ In reply to ]
Don’t forget the ; between the NOPIPE=yes and the rest of the command! :-)

Some flavors of linux also want you to use the export command..


Chris Gauthier Senior Network Engineer | Comscore
t +1 (503) 331-2704 |
cgauthier@comscore.com
comscore.com
???This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender.
From: Rancid-discuss <rancid-discuss-bounces@shrubbery.net> on behalf of "Piegorsch, Weylin William" <weylin@bu.edu>
Date: Saturday, June 15, 2019 at 7:52 AM
To: Michael Newton <mnewton@pofp.com>, Vacheslav Zouhairy <m_zouhairy@skno.by>
Cc: "rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to figure out "end of run not found"

> So this got me looking for how to do debug output per-host

If you’re using Linux, the command is:

NOPIPE=yes rancid -d -t <type> <devicename>

This will generate two files:
.new
.raw

.new is the parsed output
.raw is pure log of the session (ie, it even captures non-printing characters). I believe it’s only dumped if you set both NOPIPE and -d.

I’ve used the .raw output on many occasions. At the moment I’m even troubleshooting a device CPU issue that rancid tripped on that I wouldn’t have found but for this; “clogin -c<command-set> <device>” was even working fine.

weylin

From: Michael Newton <mnewton@pofp.com>
Date: Monday, June 10, 2019 at 11:25 AM
To: Vacheslav Zouhairy <m_zouhairy@skno.by>
Cc: <rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to figure out "end of run not found"

No, there is not. But I guess you're thinking maybe the login doesn't work because of heavy traffic.

So this got me looking for how to do debug output per-host. There doesn't seem to be, but that got me to this posting: https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.shrubbery.net%2fpipermail%2francid-discuss%2f2015-October%2f008742.html&c=E,1,ekhutmoeYC8nJjY5ygYIWeZtgfLUg9xzHFGeBIFHMUPKVuB2mZH94N3eF_QgXs0jXOsAB3OfrKr8A5kG_gIC11YP5eAWNrT_fRatYLjW22bodf8oDA,,&typo=1> And that made me notice that my router.db entry was corrupt (wrong device type.)

So, typical user error. Thanks for (indirectly) getting me in the right direction though!

Mike


On Mon, 10 Jun 2019 at 00:22, Vacheslav Zouhairy <m_zouhairy@skno.by<mailto:m_zouhairy@skno.by>> wrote:
Is there any bandwidth hog on those switches by any chance?

On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote:
> Hi all, we manage about 200-300 Brocade ICX switches across a number
> of locations. All but two are being successfully polled. The two in
> question (same firmware and a similar config to the others)
> consistently show "end of run not found" when run as part of the cron
> job. But, when run manually for troubleshooting, everything seems to
> work.
>
> `sudo -u rancid flogin switchname` works fine and logs me into the
> switch.
>
> `sudo -u rancid flogin -c 'show version;show clock' switchname`
> likewise works fine. Logs in, runs the commands, and logs out.
>
> `sudo -u rancid rancid -t foundry -d switchname` runs through
> everything perfectly. The switchname.new<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fswitchname.new&c=E,1,u3rpkaeqsecxvPWZllacfnG3P4NxiddLWnK7ixyuOtuFx2zmxUrFwYjeq9HWP2sZvfaFig4pKtv5uTsr3_jwUdFVXEsoBKXQM0w6j_Zu1A,,&typo=1> file has the expected
> output.
>
> Yet the log for the automated process consistently shows this:
>
> switchname: End of run not found
> end
>
> Is there anything else I can do to troubleshoot this? Thanks in
> advance!
>
> Mike
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net<mailto:Rancid-discuss@shrubbery.net>
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.shrubbery.net%2fmailman%2flistinfo%2francid-discuss&c=E,1,pXzlW6Eiv9FPWrAjQTLdnnQDc-z22dWuWuzv1eNITrMpNn240pK3uusnQWFUuualEk9HxmtECWaUnFm_DQ_QYNrjiTivOPA64ecFuTooFbrCBw,,&typo=1>


_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net<mailto:Rancid-discuss@shrubbery.net>
http://www.shrubbery.net/mailman/listinfo/rancid-discuss<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.shrubbery.net%2fmailman%2flistinfo%2francid-discuss&c=E,1,RAqfnKurrogi8cIpgX_RP3hEyuQNMMwNZuC6arzpf_WpfZd3ZssqYP2yNnRkw3jpCRAXqQQqHHLEJES9L06q3YOg8ex4DR1QWORVwyOZ4nb68fF_7ZkRr6_4jX0,&typo=1>
Re: Unable to figure out "end of run not found" [ In reply to ]
I actually don't use the semicolon. Not sure if this is bash specific, sh specific, or posix general, but without the semicolon it sets the global environment variable only for the duration of that command following the variable definition, and unset it upon returning control to the cli. See also your "export" comment, which has correlating implications regarding environment vs namespace vs scope.

But I'm not an experienced programmer, and don't pretend to grok the various nuances, benefits, and pitfalls known by those who actually know what they're doing, so if using the semicolon is better I all ears.

weylin

Sent from Outlook on my 'Droid

________________________________
From: Gauthier, Chris <cgauthier@comscore.com>
Sent: Monday, June 17, 2019 4:22:02 PM
To: Piegorsch, Weylin William; Michael Newton; Vacheslav Zouhairy
Cc: rancid-discuss@shrubbery.net
Subject: Re: [rancid] Unable to figure out "end of run not found"

Don’t forget the ; between the NOPIPE=yes and the rest of the command! :-)

Some flavors of linux also want you to use the export command..

Chris? Gauthier Senior Network Engineer | Comscore
t +1 (503) 331-2704<tel:(503)%20331-2704> |
cgauthier@comscore.com<mailto:cgauthier@comscore.com>
comscore.com<http://www.comscore.com/>
???This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender.
From: Rancid-discuss <rancid-discuss-bounces@shrubbery.net> on behalf of "Piegorsch, Weylin William" <weylin@bu.edu>
Date: Saturday, June 15, 2019 at 7:52 AM
To: Michael Newton <mnewton@pofp.com>, Vacheslav Zouhairy <m_zouhairy@skno.by>
Cc: "rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to figure out "end of run not found"

> So this got me looking for how to do debug output per-host

If you’re using Linux, the command is:

NOPIPE=yes rancid -d -t <type> <devicename>

This will generate two files:
.new
.raw

.new is the parsed output
.raw is pure log of the session (ie, it even captures non-printing characters). I believe it’s only dumped if you set both NOPIPE and -d.

I’ve used the .raw output on many occasions. At the moment I’m even troubleshooting a device CPU issue that rancid tripped on that I wouldn’t have found but for this; “clogin -c<command-set> <device>” was even working fine.

weylin

From: Michael Newton <mnewton@pofp.com>
Date: Monday, June 10, 2019 at 11:25 AM
To: Vacheslav Zouhairy <m_zouhairy@skno.by>
Cc: <rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to figure out "end of run not found"

No, there is not. But I guess you're thinking maybe the login doesn't work because of heavy traffic.

So this got me looking for how to do debug output per-host. There doesn't seem to be, but that got me to this posting: https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.shrubbery.net%2fpipermail%2francid-discuss%2f2015-October%2f008742.html&c=E,1,ekhutmoeYC8nJjY5ygYIWeZtgfLUg9xzHFGeBIFHMUPKVuB2mZH94N3eF_QgXs0jXOsAB3OfrKr8A5kG_gIC11YP5eAWNrT_fRatYLjW22bodf8oDA,,&typo=1> And that made me notice that my router.db entry was corrupt (wrong device type.)

So, typical user error. Thanks for (indirectly) getting me in the right direction though!

Mike


On Mon, 10 Jun 2019 at 00:22, Vacheslav Zouhairy <m_zouhairy@skno.by<mailto:m_zouhairy@skno.by>> wrote:
Is there any bandwidth hog on those switches by any chance?

On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote:
> Hi all, we manage about 200-300 Brocade ICX switches across a number
> of locations. All but two are being successfully polled. The two in
> question (same firmware and a similar config to the others)
> consistently show "end of run not found" when run as part of the cron
> job. But, when run manually for troubleshooting, everything seems to
> work.
>
> `sudo -u rancid flogin switchname` works fine and logs me into the
> switch.
>
> `sudo -u rancid flogin -c 'show version;show clock' switchname`
> likewise works fine. Logs in, runs the commands, and logs out.
>
> `sudo -u rancid rancid -t foundry -d switchname` runs through
> everything perfectly. The switchname.new<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fswitchname.new&c=E,1,u3rpkaeqsecxvPWZllacfnG3P4NxiddLWnK7ixyuOtuFx2zmxUrFwYjeq9HWP2sZvfaFig4pKtv5uTsr3_jwUdFVXEsoBKXQM0w6j_Zu1A,,&typo=1> file has the expected
> output.
>
> Yet the log for the automated process consistently shows this:
>
> switchname: End of run not found
> end
>
> Is there anything else I can do to troubleshoot this? Thanks in
> advance!
>
> Mike
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net<mailto:Rancid-discuss@shrubbery.net>
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.shrubbery.net%2fmailman%2flistinfo%2francid-discuss&c=E,1,pXzlW6Eiv9FPWrAjQTLdnnQDc-z22dWuWuzv1eNITrMpNn240pK3uusnQWFUuualEk9HxmtECWaUnFm_DQ_QYNrjiTivOPA64ecFuTooFbrCBw,,&typo=1>


_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net<mailto:Rancid-discuss@shrubbery.net>
http://www.shrubbery.net/mailman/listinfo/rancid-discuss<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.shrubbery.net%2fmailman%2flistinfo%2francid-discuss&c=E,1,RAqfnKurrogi8cIpgX_RP3hEyuQNMMwNZuC6arzpf_WpfZd3ZssqYP2yNnRkw3jpCRAXqQQqHHLEJES9L06q3YOg8ex4DR1QWORVwyOZ4nb68fF_7ZkRr6_4jX0,&typo=1>
Re: Unable to figure out "end of run not found" [ In reply to ]
On Mon, Jun 17, 2019 at 09:05:13PM +0000, Piegorsch, Weylin William wrote:
> I actually don't use the semicolon.
> Not sure if this is bash specific, sh specific, or posix general, but
> without the semicolon it sets the global environment variable only for the
> duration of that command following the variable definition, and unset it
> upon returning control to the cli. See also your "export" comment, which
> has correlating implications regarding environment vs namespace vs scope.
> But I'm not an experienced programmer, and don't pretend to grok the
> various nuances, benefits, and pitfalls known by those who actually know
> what they're doing, so if using the semicolon is better I all ears.

You are right: ; is not necessary.

NOPIPE=yes rancid -d -t type devicename

is is a perfectly valid syntax according to POSIX Shell Grammar Rules.
It works with bash, dash, ksh, zsh and other shells.

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10_02
see "simple_command" syntax and rule 7, which defines "ASSIGNMENT_WORD".

simple_command : cmd_prefix cmd_word cmd_suffix
| cmd_prefix cmd_word
| cmd_prefix
| cmd_name cmd_suffix
| cmd_name

cmd_prefix : io_redirect
| cmd_prefix io_redirect
| ASSIGNMENT_WORD
| cmd_prefix ASSIGNMENT_WORD

You don't need the ; and you dont need export, and you can even put
redirects, as long as assignments are before the command.
Example :
XYZ=foo </tmp/x >/tmp/y A=1 B=bar mycommand myarg

--
Jean

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Unable to figure out "end of run not found" [ In reply to ]
Interesting. I thought it would get mixed up into the value of the variable…. I’m not an expert programmer at all, but thought I needed to use the ; to separate the commands appropriately. But, my expertise on shell variables is a tad (understatement, really) limited. So, I shall defer! :)

Cheers,
Chris



Chris Gauthier Senior Network Engineer | Comscore
t +1 (503) 331-2704 |
cgauthier@comscore.com
comscore.com
???This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender.
From: "Piegorsch, Weylin William" <weylin@bu.edu>
Date: Monday, June 17, 2019 at 2:05 PM
To: "Gauthier, Chris" <cgauthier@comscore.com>, Michael Newton <mnewton@pofp.com>, Vacheslav Zouhairy <m_zouhairy@skno.by>
Cc: "rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to figure out "end of run not found"

I actually don't use the semicolon. Not sure if this is bash specific, sh specific, or posix general, but without the semicolon it sets the global environment variable only for the duration of that command following the variable definition, and unset it upon returning control to the cli. See also your "export" comment, which has correlating implications regarding environment vs namespace vs scope.
But I'm not an experienced programmer, and don't pretend to grok the various nuances, benefits, and pitfalls known by those who actually know what they're doing, so if using the semicolon is better I all ears.
weylin
Sent from Outlook on my 'Droid

________________________________
From: Gauthier, Chris <cgauthier@comscore.com>
Sent: Monday, June 17, 2019 4:22:02 PM
To: Piegorsch, Weylin William; Michael Newton; Vacheslav Zouhairy
Cc: rancid-discuss@shrubbery.net
Subject: Re: [rancid] Unable to figure out "end of run not found"

Don’t forget the ; between the NOPIPE=yes and the rest of the command! :-)

Some flavors of linux also want you to use the export command..

Chris?
Gauthier
Senior Network Engineer
|
Comscore
t +1 (503) 331-2704<tel:(503)%20331-2704>
|
cgauthier@comscore.com<mailto:cgauthier@comscore.com>
comscore.com<http://www.comscore.com/>
???This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender.
From: Rancid-discuss <rancid-discuss-bounces@shrubbery.net> on behalf of "Piegorsch, Weylin William" <weylin@bu.edu>
Date: Saturday, June 15, 2019 at 7:52 AM
To: Michael Newton <mnewton@pofp.com>, Vacheslav Zouhairy <m_zouhairy@skno.by>
Cc: "rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to figure out "end of run not found"

> So this got me looking for how to do debug output per-host

If you’re using Linux, the command is:

NOPIPE=yes rancid -d -t <type> <devicename>

This will generate two files:
.new
.raw

.new is the parsed output
.raw is pure log of the session (ie, it even captures non-printing characters). I believe it’s only dumped if you set both NOPIPE and -d.

I’ve used the .raw output on many occasions. At the moment I’m even troubleshooting a device CPU issue that rancid tripped on that I wouldn’t have found but for this; “clogin -c<command-set> <device>” was even working fine.

weylin

From: Michael Newton <mnewton@pofp.com>
Date: Monday, June 10, 2019 at 11:25 AM
To: Vacheslav Zouhairy <m_zouhairy@skno.by>
Cc: <rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to figure out "end of run not found"

No, there is not. But I guess you're thinking maybe the login doesn't work because of heavy traffic.

So this got me looking for how to do debug output per-host. There doesn't seem to be, but that got me to this posting: https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.shrubbery.net%2fpipermail%2francid-discuss%2f2015-October%2f008742.html&c=E,1,ekhutmoeYC8nJjY5ygYIWeZtgfLUg9xzHFGeBIFHMUPKVuB2mZH94N3eF_QgXs0jXOsAB3OfrKr8A5kG_gIC11YP5eAWNrT_fRatYLjW22bodf8oDA,,&typo=1> And that made me notice that my router.db entry was corrupt (wrong device type.)

So, typical user error. Thanks for (indirectly) getting me in the right direction though!

Mike


On Mon, 10 Jun 2019 at 00:22, Vacheslav Zouhairy <m_zouhairy@skno.by<mailto:m_zouhairy@skno.by>> wrote:
Is there any bandwidth hog on those switches by any chance?

On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote:
> Hi all, we manage about 200-300 Brocade ICX switches across a number
> of locations. All but two are being successfully polled. The two in
> question (same firmware and a similar config to the others)
> consistently show "end of run not found" when run as part of the cron
> job. But, when run manually for troubleshooting, everything seems to
> work.
>
> `sudo -u rancid flogin switchname` works fine and logs me into the
> switch.
>
> `sudo -u rancid flogin -c 'show version;show clock' switchname`
> likewise works fine. Logs in, runs the commands, and logs out.
>
> `sudo -u rancid rancid -t foundry -d switchname` runs through
> everything perfectly. The switchname.new<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fswitchname.new&c=E,1,u3rpkaeqsecxvPWZllacfnG3P4NxiddLWnK7ixyuOtuFx2zmxUrFwYjeq9HWP2sZvfaFig4pKtv5uTsr3_jwUdFVXEsoBKXQM0w6j_Zu1A,,&typo=1> file has the expected
> output.
>
> Yet the log for the automated process consistently shows this:
>
> switchname: End of run not found
> end
>
> Is there anything else I can do to troubleshoot this? Thanks in
> advance!
>
> Mike
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net<mailto:Rancid-discuss@shrubbery.net>
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.shrubbery.net%2fmailman%2flistinfo%2francid-discuss&c=E,1,pXzlW6Eiv9FPWrAjQTLdnnQDc-z22dWuWuzv1eNITrMpNn240pK3uusnQWFUuualEk9HxmtECWaUnFm_DQ_QYNrjiTivOPA64ecFuTooFbrCBw,,&typo=1>


_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net<mailto:Rancid-discuss@shrubbery.net>
http://www.shrubbery.net/mailman/listinfo/rancid-discuss<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.shrubbery.net%2fmailman%2flistinfo%2francid-discuss&c=E,1,RAqfnKurrogi8cIpgX_RP3hEyuQNMMwNZuC6arzpf_WpfZd3ZssqYP2yNnRkw3jpCRAXqQQqHHLEJES9L06q3YOg8ex4DR1QWORVwyOZ4nb68fF_7ZkRr6_4jX0,&typo=1>
Re: Unable to figure out "end of run not found" [ In reply to ]
> you can even put redirects

That's a neat trick!!! I'll have to remember that one; thanks!
__

weylin

?On 6/17/19, 5:27 PM, "Jean Benoit" <jean@unistra.fr> wrote:

On Mon, Jun 17, 2019 at 09:05:13PM +0000, Piegorsch, Weylin William wrote:
> I actually don't use the semicolon.
> Not sure if this is bash specific, sh specific, or posix general, but
> without the semicolon it sets the global environment variable only for the
> duration of that command following the variable definition, and unset it
> upon returning control to the cli. See also your "export" comment, which
> has correlating implications regarding environment vs namespace vs scope.
> But I'm not an experienced programmer, and don't pretend to grok the
> various nuances, benefits, and pitfalls known by those who actually know
> what they're doing, so if using the semicolon is better I all ears.

You are right: ; is not necessary.

NOPIPE=yes rancid -d -t type devicename

is is a perfectly valid syntax according to POSIX Shell Grammar Rules.
It works with bash, dash, ksh, zsh and other shells.

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10_02
see "simple_command" syntax and rule 7, which defines "ASSIGNMENT_WORD".

simple_command : cmd_prefix cmd_word cmd_suffix
| cmd_prefix cmd_word
| cmd_prefix
| cmd_name cmd_suffix
| cmd_name

cmd_prefix : io_redirect
| cmd_prefix io_redirect
| ASSIGNMENT_WORD
| cmd_prefix ASSIGNMENT_WORD

You don't need the ; and you dont need export, and you can even put
redirects, as long as assignments are before the command.
Example :
XYZ=foo </tmp/x >/tmp/y A=1 B=bar mycommand myarg

--
Jean


_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Unable to figure out "end of run not found" [ In reply to ]
Thanks for sharing this! TIL!

?
Chris Gauthier Senior Network Engineer | Comscore
t +1 (503) 331-2704 |
cgauthier@comscore.com
comscore.com
???This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender.
-----Original Message-----
From: "Piegorsch, Weylin William" <weylin@bu.edu>
Date: Tuesday, June 18, 2019 at 2:03 AM
To: Jean Benoit <jean@unistra.fr>
Cc: "Gauthier, Chris" <cgauthier@comscore.com>, Michael Newton <mnewton@pofp.com>, Vacheslav Zouhairy <m_zouhairy@skno.by>, "rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to figure out "end of run not found"

> you can even put redirects

That's a neat trick!!! I'll have to remember that one; thanks!
__

weylin

On 6/17/19, 5:27 PM, "Jean Benoit" <jean@unistra.fr> wrote:

On Mon, Jun 17, 2019 at 09:05:13PM +0000, Piegorsch, Weylin William wrote:
> I actually don't use the semicolon.
> Not sure if this is bash specific, sh specific, or posix general, but
> without the semicolon it sets the global environment variable only for the
> duration of that command following the variable definition, and unset it
> upon returning control to the cli. See also your "export" comment, which
> has correlating implications regarding environment vs namespace vs scope.
> But I'm not an experienced programmer, and don't pretend to grok the
> various nuances, benefits, and pitfalls known by those who actually know
> what they're doing, so if using the semicolon is better I all ears.

You are right: ; is not necessary.

NOPIPE=yes rancid -d -t type devicename

is is a perfectly valid syntax according to POSIX Shell Grammar Rules.
It works with bash, dash, ksh, zsh and other shells.

https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fpubs.opengroup.org%2fonlinepubs%2f9699919799%2futilities%2fV3_chap02.html%23tag_18_10_02&c=E,1,pVeiRZ33eh0bANTtrPcyWLXgDYYcEhv1fVgAMKs-rqhpxiQGGKwtaHnc1ENunuBCFwIl6XJo0fGwJdkcHgduuUt2gpDkO7h_-c4J99skKxG0vy0,&typo=1
see "simple_command" syntax and rule 7, which defines "ASSIGNMENT_WORD".

simple_command : cmd_prefix cmd_word cmd_suffix
| cmd_prefix cmd_word
| cmd_prefix
| cmd_name cmd_suffix
| cmd_name

cmd_prefix : io_redirect
| cmd_prefix io_redirect
| ASSIGNMENT_WORD
| cmd_prefix ASSIGNMENT_WORD

You don't need the ; and you dont need export, and you can even put
redirects, as long as assignments are before the command.
Example :
XYZ=foo </tmp/x >/tmp/y A=1 B=bar mycommand myarg

--
Jean
Re: Unable to figure out "end of run not found" [ In reply to ]
iirc:
; is to seperate commands and wil execute the whole command string without checking the return value of the previous command
&& will do the same, but if previous command returns not null (you can check the return code of the previous command with "echo $?") it will end the command list.

the syntax is question "NOPIPE=yes" will set the environment variable NOPIPE but only for the context of the command that's executed.
appending ; between NOPIPE=yes & the command will _NOT_ do what you expect; it will execute and empty cmd with nopipe env set to yes, then execute your command with default envvars.


you can compare:

AHHA=aha env | grep -i aha
output -> AHHA=aha
AHHA=aha; env | grep -i aha
output -> nothing

export with set the envvar for your current session:
env | grep -i nop
-> output nothing
export NOPIPE=yes
env | grep -i nop
output ->NOPIPE=yes

all examples done in bash instead of my preferred zsh. if you use csh/tcsh or fish i would guess you know what you're doing and can adapt the config to work.

bottom line, this is correct for most bourne shell derivatives:
NOPIPE=yes rancid -d -t <type> <devicename>


here's the catch, if you run rancid from cron you will either need to uncomment the NOPIPE line in yr rancid.conf or add them to your crontab entry.


side note:
the next rancid version will most likely change this behaviour:
https://github.com/haussli/rancid/commit/94318333c8f0d746abdd22cf4430636a394def8f



// nick



From: Rancid-discuss [mailto:rancid-discuss-bounces@shrubbery.net] On Behalf Of Gauthier, Chris
Sent: Tuesday, June 18, 2019 00:10
To: Piegorsch, Weylin William <weylin@bu.edu>; Michael Newton <mnewton@pofp.com>; Vacheslav Zouhairy <m_zouhairy@skno.by>
Cc: rancid-discuss@shrubbery.net
Subject: Re: [rancid] Unable to figure out "end of run not found"

Interesting. I thought it would get mixed up into the value of the variable…. I’m not an expert programmer at all, but thought I needed to use the ; to separate the commands appropriately. But, my expertise on shell variables is a tad (understatement, really) limited. So, I shall defer! :)

Cheers,
Chris


Chris?

Gauthier

Senior Network Engineer

|

Comscore



t +1 (503) 331-2704<tel:(503)%20331-2704>

|

cgauthier@comscore.com<mailto:cgauthier@comscore.com>



comscore.com<http://www.comscore.com/>



???This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender.






From: "Piegorsch, Weylin William" <weylin@bu.edu>
Date: Monday, June 17, 2019 at 2:05 PM
To: "Gauthier, Chris" <cgauthier@comscore.com>, Michael Newton <mnewton@pofp.com>, Vacheslav Zouhairy <m_zouhairy@skno.by>
Cc: "rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to figure out "end of run not found"

I actually don't use the semicolon. Not sure if this is bash specific, sh specific, or posix general, but without the semicolon it sets the global environment variable only for the duration of that command following the variable definition, and unset it upon returning control to the cli. See also your "export" comment, which has correlating implications regarding environment vs namespace vs scope.
But I'm not an experienced programmer, and don't pretend to grok the various nuances, benefits, and pitfalls known by those who actually know what they're doing, so if using the semicolon is better I all ears.
weylin
Sent from Outlook on my 'Droid

________________________________
From: Gauthier, Chris <cgauthier@comscore.com>
Sent: Monday, June 17, 2019 4:22:02 PM
To: Piegorsch, Weylin William; Michael Newton; Vacheslav Zouhairy
Cc: rancid-discuss@shrubbery.net
Subject: Re: [rancid] Unable to figure out "end of run not found"

Don’t forget the ; between the NOPIPE=yes and the rest of the command! :-)

Some flavors of linux also want you to use the export command..

Chris?

Gauthier

Senior Network Engineer

|

Comscore



t +1 (503) 331-2704<tel:(503)%20331-2704>

|

cgauthier@comscore.com<mailto:cgauthier@comscore.com>



comscore.com<http://www.comscore.com/>



???This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender.






From: Rancid-discuss <rancid-discuss-bounces@shrubbery.net> on behalf of "Piegorsch, Weylin William" <weylin@bu.edu>
Date: Saturday, June 15, 2019 at 7:52 AM
To: Michael Newton <mnewton@pofp.com>, Vacheslav Zouhairy <m_zouhairy@skno.by>
Cc: "rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to figure out "end of run not found"

> So this got me looking for how to do debug output per-host

If you’re using Linux, the command is:

NOPIPE=yes rancid -d -t <type> <devicename>

This will generate two files:
.new
.raw

.new is the parsed output
.raw is pure log of the session (ie, it even captures non-printing characters). I believe it’s only dumped if you set both NOPIPE and -d.

I’ve used the .raw output on many occasions. At the moment I’m even troubleshooting a device CPU issue that rancid tripped on that I wouldn’t have found but for this; “clogin -c<command-set> <device>” was even working fine.

weylin

From: Michael Newton <mnewton@pofp.com>
Date: Monday, June 10, 2019 at 11:25 AM
To: Vacheslav Zouhairy <m_zouhairy@skno.by>
Cc: <rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to figure out "end of run not found"

No, there is not. But I guess you're thinking maybe the login doesn't work because of heavy traffic.

So this got me looking for how to do debug output per-host. There doesn't seem to be, but that got me to this posting: https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.shrubbery.net%2fpipermail%2francid-discuss%2f2015-October%2f008742.html&c=E,1,ekhutmoeYC8nJjY5ygYIWeZtgfLUg9xzHFGeBIFHMUPKVuB2mZH94N3eF_QgXs0jXOsAB3OfrKr8A5kG_gIC11YP5eAWNrT_fRatYLjW22bodf8oDA,,&typo=1> And that made me notice that my router.db entry was corrupt (wrong device type.)

So, typical user error. Thanks for (indirectly) getting me in the right direction though!

Mike


On Mon, 10 Jun 2019 at 00:22, Vacheslav Zouhairy <m_zouhairy@skno.by<mailto:m_zouhairy@skno.by>> wrote:
Is there any bandwidth hog on those switches by any chance?

On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote:
> Hi all, we manage about 200-300 Brocade ICX switches across a number
> of locations. All but two are being successfully polled. The two in
> question (same firmware and a similar config to the others)
> consistently show "end of run not found" when run as part of the cron
> job. But, when run manually for troubleshooting, everything seems to
> work.
>
> `sudo -u rancid flogin switchname` works fine and logs me into the
> switch.
>
> `sudo -u rancid flogin -c 'show version;show clock' switchname`
> likewise works fine. Logs in, runs the commands, and logs out.
>
> `sudo -u rancid rancid -t foundry -d switchname` runs through
> everything perfectly. The switchname.new<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fswitchname.new&c=E,1,u3rpkaeqsecxvPWZllacfnG3P4NxiddLWnK7ixyuOtuFx2zmxUrFwYjeq9HWP2sZvfaFig4pKtv5uTsr3_jwUdFVXEsoBKXQM0w6j_Zu1A,,&typo=1> file has the expected
> output.
>
> Yet the log for the automated process consistently shows this:
>
> switchname: End of run not found
> end
>
> Is there anything else I can do to troubleshoot this? Thanks in
> advance!
>
> Mike
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net<mailto:Rancid-discuss@shrubbery.net>
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.shrubbery.net%2fmailman%2flistinfo%2francid-discuss&c=E,1,pXzlW6Eiv9FPWrAjQTLdnnQDc-z22dWuWuzv1eNITrMpNn240pK3uusnQWFUuualEk9HxmtECWaUnFm_DQ_QYNrjiTivOPA64ecFuTooFbrCBw,,&typo=1>


_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net<mailto:Rancid-discuss@shrubbery.net>
http://www.shrubbery.net/mailman/listinfo/rancid-discuss<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.shrubbery.net%2fmailman%2flistinfo%2francid-discuss&c=E,1,RAqfnKurrogi8cIpgX_RP3hEyuQNMMwNZuC6arzpf_WpfZd3ZssqYP2yNnRkw3jpCRAXqQQqHHLEJES9L06q3YOg8ex4DR1QWORVwyOZ4nb68fF_7ZkRr6_4jX0,&typo=1>

________________________________

Volg Aquafin op Facebook<https://www.facebook.com/AquafinNV> | Twitter<https://twitter.com/aquafinnv> | YouTube<http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee> | LinkedIN<http://www.linkedin.com/company/aquafin/products> | Instagram<https://www.instagram.com/aquafin_nv/>

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/nl-be/privacy-policy>.

P Denk aan het milieu. Druk deze mail niet onnodig af.
Re: Unable to figure out "end of run not found" [ In reply to ]
Hello!,

How I can fix the problem when I run rancid for ZTE Router?. I get this
error: *End of run not found*

the two file 172.17.1.6.new and 172.17.1.6.raw don't show any error!.

NOPIPE=yes ./rancid -d -t cisco 172.17.1.6

loadtype: device type cisco
loadtype: found device type cisco in /usr/local/rancid/etc/rancid.types.base
executing clogin -t 90 -c"show version;show install active;show vlan;show
running-config" 172.17.1.6
PROMPT MATCH: RT-ZTE#
HIT COMMAND: RT-ZTE #show version
In ShowVersion: RT-ZTE #show version
HIT COMMAND: RT-ZTE #show install active
In ShowInstallActive: RT-ZTE #show install active
HIT COMMAND: RT-ZTE #show vlan
In ShowVLAN: RT-ZTE #show vlan
HIT COMMAND: RT-ZTE #show running-config
In WriteTerm: RT-ZTE #show running-config
*172.17.1.6 <http://172.17.1.6>: End of run not found*
172.17.1.6: clean_run is false
172.17.1.6: found_end is false
!</isis>



Thanks!




On Wed, Jun 19, 2019 at 3:02 PM Nick Nauwelaerts <
nick.nauwelaerts@aquafin.be> wrote:

> iirc:
>
> ; is to seperate commands and wil execute the whole command string without
> checking the return value of the previous command
>
> && will do the same, but if previous command returns not null (you can
> check the return code of the previous command with "echo $?") it will end
> the command list.
>
>
>
> the syntax is question "NOPIPE=yes" will set the environment variable
> NOPIPE but only for the context of the command that's executed.
>
> appending ; between NOPIPE=yes & the command will _NOT_ do what you
> expect; it will execute and empty cmd with nopipe env set to yes, then
> execute your command with default envvars.
>
>
>
>
>
> you can compare:
>
>
>
> AHHA=aha env | grep -i aha
>
> output -> AHHA=aha
>
> AHHA=aha; env | grep -i aha
>
> output -> nothing
>
>
>
> export with set the envvar for your current session:
>
> env | grep -i nop
>
> -> output nothing
>
> export NOPIPE=yes
>
> env | grep -i nop
>
> output ->NOPIPE=yes
>
>
>
> all examples done in bash instead of my preferred zsh. if you use csh/tcsh
> or fish i would guess you know what you're doing and can adapt the config
> to work.
>
>
>
> bottom line, this is correct for most bourne shell derivatives:
>
> NOPIPE=yes rancid -d -t <type> <devicename>
>
>
>
>
>
> here's the catch, if you run rancid from cron you will either need to
> uncomment the NOPIPE line in yr rancid.conf or add them to your crontab
> entry.
>
>
>
>
>
> side note:
>
> the next rancid version will most likely change this behaviour:
>
>
> https://github.com/haussli/rancid/commit/94318333c8f0d746abdd22cf4430636a394def8f
>
>
>
>
>
>
>
> // nick
>
>
>
>
>
>
>
> *From:* Rancid-discuss [mailto:rancid-discuss-bounces@shrubbery.net] *On
> Behalf Of *Gauthier, Chris
> *Sent:* Tuesday, June 18, 2019 00:10
> *To:* Piegorsch, Weylin William <weylin@bu.edu>; Michael Newton <
> mnewton@pofp.com>; Vacheslav Zouhairy <m_zouhairy@skno.by>
> *Cc:* rancid-discuss@shrubbery.net
> *Subject:* Re: [rancid] Unable to figure out "end of run not found"
>
>
>
> Interesting. I thought it would get mixed up into the value of the
> variable…. I’m not an expert programmer at all, but thought I needed to use
> the ; to separate the commands appropriately. But, my expertise on shell
> variables is a tad (understatement, really) limited. So, I shall defer! :)
>
>
>
> Cheers,
>
> Chris
>
>
>
>
>
> *Chris**?*
>
> *Gauthier*
>
> Senior Network Engineer
>
> |
>
> Comscore
>
> t +1 *(503) 331-2704* <(503)%20331-2704>
>
> |
>
> *cgauthier@comscore.com* <cgauthier@comscore.com>
>
> *comscore.com* <http://www.comscore.com/>
>
> ???This e-mail (including any attachments) may contain information that is
> private, confidential, or protected by attorney-client or other privilege.
> If you received this e-mail in error, please delete it from your system and
> notify sender.
>
> *From: *"Piegorsch, Weylin William" <weylin@bu.edu>
> *Date: *Monday, June 17, 2019 at 2:05 PM
> *To: *"Gauthier, Chris" <cgauthier@comscore.com>, Michael Newton <
> mnewton@pofp.com>, Vacheslav Zouhairy <m_zouhairy@skno.by>
> *Cc: *"rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net>
> *Subject: *Re: [rancid] Unable to figure out "end of run not found"
>
>
>
> I actually don't use the semicolon. Not sure if this is bash specific, sh
> specific, or posix general, but without the semicolon it sets the global
> environment variable only for the duration of that command following the
> variable definition, and unset it upon returning control to the cli. See
> also your "export" comment, which has correlating implications regarding
> environment vs namespace vs scope.
>
> But I'm not an experienced programmer, and don't pretend to grok the
> various nuances, benefits, and pitfalls known by those who actually know
> what they're doing, so if using the semicolon is better I all ears.
>
> weylin
>
> Sent from Outlook on my 'Droid
>
>
> ------------------------------
>
> *From:* Gauthier, Chris <cgauthier@comscore.com>
> *Sent:* Monday, June 17, 2019 4:22:02 PM
> *To:* Piegorsch, Weylin William; Michael Newton; Vacheslav Zouhairy
> *Cc:* rancid-discuss@shrubbery.net
> *Subject:* Re: [rancid] Unable to figure out "end of run not found"
>
>
>
> Don’t forget the ; between the NOPIPE=yes and the rest of the command! :-)
>
>
>
> Some flavors of linux also want you to use the export command..
>
>
>
> *Chris**?*
>
> *Gauthier*
>
> Senior Network Engineer
>
> |
>
> Comscore
>
> t +1 *(503) 331-2704* <(503)%20331-2704>
>
> |
>
> *cgauthier@comscore.com* <cgauthier@comscore.com>
>
> *comscore.com* <http://www.comscore.com/>
>
> ???This e-mail (including any attachments) may contain information that is
> private, confidential, or protected by attorney-client or other privilege.
> If you received this e-mail in error, please delete it from your system and
> notify sender.
>
> *From: *Rancid-discuss <rancid-discuss-bounces@shrubbery.net> on behalf
> of "Piegorsch, Weylin William" <weylin@bu.edu>
> *Date: *Saturday, June 15, 2019 at 7:52 AM
> *To: *Michael Newton <mnewton@pofp.com>, Vacheslav Zouhairy <
> m_zouhairy@skno.by>
> *Cc: *"rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net>
> *Subject: *Re: [rancid] Unable to figure out "end of run not found"
>
>
>
> > So this got me looking for how to do debug output per-host
>
>
>
> If you’re using Linux, the command is:
>
>
>
> NOPIPE=yes rancid -d -t <type> <devicename>
>
>
>
> This will generate two files:
>
> .new
>
> .raw
>
>
>
> .new is the parsed output
>
> .raw is pure log of the session (ie, it even captures non-printing
> characters). I believe it’s only dumped if you set both NOPIPE and -d.
>
>
>
> I’ve used the .raw output on many occasions. At the moment I’m even
> troubleshooting a device CPU issue that rancid tripped on that I wouldn’t
> have found but for this; “clogin -c<command-set> <device>” was even working
> fine.
>
>
>
> weylin
>
>
>
> *From: *Michael Newton <mnewton@pofp.com>
> *Date: *Monday, June 10, 2019 at 11:25 AM
> *To: *Vacheslav Zouhairy <m_zouhairy@skno.by>
> *Cc: *<rancid-discuss@shrubbery.net>
> *Subject: *Re: [rancid] Unable to figure out "end of run not found"
>
>
>
> No, there is not. But I guess you're thinking maybe the login doesn't work
> because of heavy traffic.
>
>
>
> So this got me looking for how to do debug output per-host. There doesn't
> seem to be, but that got me to this posting:
> https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html
> <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.shrubbery.net%2fpipermail%2francid-discuss%2f2015-October%2f008742.html&c=E,1,ekhutmoeYC8nJjY5ygYIWeZtgfLUg9xzHFGeBIFHMUPKVuB2mZH94N3eF_QgXs0jXOsAB3OfrKr8A5kG_gIC11YP5eAWNrT_fRatYLjW22bodf8oDA,,&typo=1>
> And that made me notice that my router.db entry was corrupt (wrong device
> type.)
>
>
>
> So, typical user error. Thanks for (indirectly) getting me in the right
> direction though!
>
>
>
> Mike
>
>
>
>
>
> On Mon, 10 Jun 2019 at 00:22, Vacheslav Zouhairy <m_zouhairy@skno.by>
> wrote:
>
> Is there any bandwidth hog on those switches by any chance?
>
> On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote:
> > Hi all, we manage about 200-300 Brocade ICX switches across a number
> > of locations. All but two are being successfully polled. The two in
> > question (same firmware and a similar config to the others)
> > consistently show "end of run not found" when run as part of the cron
> > job. But, when run manually for troubleshooting, everything seems to
> > work.
> >
> > `sudo -u rancid flogin switchname` works fine and logs me into the
> > switch.
> >
> > `sudo -u rancid flogin -c 'show version;show clock' switchname`
> > likewise works fine. Logs in, runs the commands, and logs out.
> >
> > `sudo -u rancid rancid -t foundry -d switchname` runs through
> > everything perfectly. The switchname.new
> <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fswitchname.new&c=E,1,u3rpkaeqsecxvPWZllacfnG3P4NxiddLWnK7ixyuOtuFx2zmxUrFwYjeq9HWP2sZvfaFig4pKtv5uTsr3_jwUdFVXEsoBKXQM0w6j_Zu1A,,&typo=1>
> file has the expected
> > output.
> >
> > Yet the log for the automated process consistently shows this:
> >
> > switchname: End of run not found
> > end
> >
> > Is there anything else I can do to troubleshoot this? Thanks in
> > advance!
> >
> > Mike
> > _______________________________________________
> > Rancid-discuss mailing list
> > Rancid-discuss@shrubbery.net
> > http://www.shrubbery.net/mailman/listinfo/rancid-discuss
> <https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.shrubbery.net%2fmailman%2flistinfo%2francid-discuss&c=E,1,pXzlW6Eiv9FPWrAjQTLdnnQDc-z22dWuWuzv1eNITrMpNn240pK3uusnQWFUuualEk9HxmtECWaUnFm_DQ_QYNrjiTivOPA64ecFuTooFbrCBw,,&typo=1>
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
> <https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.shrubbery.net%2fmailman%2flistinfo%2francid-discuss&c=E,1,RAqfnKurrogi8cIpgX_RP3hEyuQNMMwNZuC6arzpf_WpfZd3ZssqYP2yNnRkw3jpCRAXqQQqHHLEJES9L06q3YOg8ex4DR1QWORVwyOZ4nb68fF_7ZkRr6_4jX0,&typo=1>
>
>
> ------------------------------
>
> *Volg Aquafin op Facebook <https://www.facebook.com/AquafinNV> | Twitter
> <https://twitter.com/aquafinnv> | YouTube
> <http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee> |
> LinkedIN <http://www.linkedin.com/company/aquafin/products> | Instagram
> <https://www.instagram.com/aquafin_nv/> *
>
> 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/nl-be/privacy-policy>.
>
> 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
>


--
*Kevin Morales*
Re: Unable to figure out "end of run not found" [ In reply to ]
Wed, Jul 03, 2019 at 07:48:09AM -0600, Kevin Morales:
> Hello!,
>
> How I can fix the problem when I run rancid for ZTE Router?. I get this
> error: *End of run not found*
>
> the two file 172.17.1.6.new and 172.17.1.6.raw don't show any error!.
>
> NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
>
> loadtype: device type cisco
> loadtype: found device type cisco in /usr/local/rancid/etc/rancid.types.base
> executing clogin -t 90 -c"show version;show install active;show vlan;show
> running-config" 172.17.1.6
> PROMPT MATCH: RT-ZTE#
> HIT COMMAND: RT-ZTE #show version
> In ShowVersion: RT-ZTE #show version
> HIT COMMAND: RT-ZTE #show install active
> In ShowInstallActive: RT-ZTE #show install active
> HIT COMMAND: RT-ZTE #show vlan
> In ShowVLAN: RT-ZTE #show vlan
> HIT COMMAND: RT-ZTE #show running-config
> In WriteTerm: RT-ZTE #show running-config
> *172.17.1.6 <http://172.17.1.6>: End of run not found*
> 172.17.1.6: clean_run is false
> 172.17.1.6: found_end is false
> !</isis>

found end means that it found the end of the config; for type cisco,
that means "^end".

clean run means that it found the cli logout; for type cisco, that
means "prompt[>#] exit$"

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Unable to figure out "end of run not found" [ In reply to ]
ok, but rancid do not save the output of command.,

How I can fix this problem?

On Wed, Jul 3, 2019 at 11:12 AM john heasley <heas@shrubbery.net> wrote:

> Wed, Jul 03, 2019 at 07:48:09AM -0600, Kevin Morales:
> > Hello!,
> >
> > How I can fix the problem when I run rancid for ZTE Router?. I get this
> > error: *End of run not found*
> >
> > the two file 172.17.1.6.new and 172.17.1.6.raw don't show any error!.
> >
> > NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
> >
> > loadtype: device type cisco
> > loadtype: found device type cisco in
> /usr/local/rancid/etc/rancid.types.base
> > executing clogin -t 90 -c"show version;show install active;show vlan;show
> > running-config" 172.17.1.6
> > PROMPT MATCH: RT-ZTE#
> > HIT COMMAND: RT-ZTE #show version
> > In ShowVersion: RT-ZTE #show version
> > HIT COMMAND: RT-ZTE #show install active
> > In ShowInstallActive: RT-ZTE #show install active
> > HIT COMMAND: RT-ZTE #show vlan
> > In ShowVLAN: RT-ZTE #show vlan
> > HIT COMMAND: RT-ZTE #show running-config
> > In WriteTerm: RT-ZTE #show running-config
> > *172.17.1.6 <http://172.17.1.6>: End of run not found*
> > 172.17.1.6: clean_run is false
> > 172.17.1.6: found_end is false
> > !</isis>
>
> found end means that it found the end of the config; for type cisco,
> that means "^end".
>
> clean run means that it found the cli logout; for type cisco, that
> means "prompt[>#] exit$"
>
>

--
*Kevin Morales*
Re: Unable to figure out "end of run not found" [ In reply to ]
If you do the “NOPIPE” thing and run rancid with the -d flag, that will create two files: .new, and .raw. Examine the .raw file, which is the byte-for-byte capture of the CLI session.
weylin

From: Kevin Morales <kevin.moralez@gmail.com>
Date: Wednesday, July 3, 2019 at 1:24 PM
To: john heasley <heas@shrubbery.net>
Cc: Nick Nauwelaerts <nick.nauwelaerts@aquafin.be>, Weylin Piegorsch <weylin@bu.edu>, "rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to figure out "end of run not found"

ok, but rancid do not save the output of command.,

How I can fix this problem?

On Wed, Jul 3, 2019 at 11:12 AM john heasley <heas@shrubbery.net<mailto:heas@shrubbery.net>> wrote:
Wed, Jul 03, 2019 at 07:48:09AM -0600, Kevin Morales:
> Hello!,
>
> How I can fix the problem when I run rancid for ZTE Router?. I get this
> error: *End of run not found*
>
> the two file 172.17.1.6.new and 172.17.1.6.raw don't show any error!.
>
> NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
>
> loadtype: device type cisco
> loadtype: found device type cisco in /usr/local/rancid/etc/rancid.types.base
> executing clogin -t 90 -c"show version;show install active;show vlan;show
> running-config" 172.17.1.6
> PROMPT MATCH: RT-ZTE#
> HIT COMMAND: RT-ZTE #show version
> In ShowVersion: RT-ZTE #show version
> HIT COMMAND: RT-ZTE #show install active
> In ShowInstallActive: RT-ZTE #show install active
> HIT COMMAND: RT-ZTE #show vlan
> In ShowVLAN: RT-ZTE #show vlan
> HIT COMMAND: RT-ZTE #show running-config
> In WriteTerm: RT-ZTE #show running-config
> *172.17.1.6 <http://172.17.1.6>: End of run not found*
> 172.17.1.6<http://172.17.1.6>: clean_run is false
> 172.17.1.6<http://172.17.1.6>: found_end is false
> !</isis>

found end means that it found the end of the config; for type cisco,
that means "^end".

clean run means that it found the cli logout; for type cisco, that
means "prompt[>#] exit$"


--
Kevin Morales
Re: Unable to figure out "end of run not found" [ In reply to ]
Thanks Piegorsh,

I did it..

NOPIPE=yes ./rancid -d -t cisco 172.17.1.6

but in the two file 172.17.1.6.new and 172.17.1.6.raw don't see anything
about this error. both show the correct command output.




On Wed, Jul 3, 2019 at 11:29 AM Piegorsch, Weylin William <weylin@bu.edu>
wrote:

> If you do the “NOPIPE” thing and run rancid with the -d flag, that will
> create two files: .new, and .raw. Examine the .raw file, which is the
> byte-for-byte capture of the CLI session.
>
> weylin
>
>
>
> *From: *Kevin Morales <kevin.moralez@gmail.com>
> *Date: *Wednesday, July 3, 2019 at 1:24 PM
> *To: *john heasley <heas@shrubbery.net>
> *Cc: *Nick Nauwelaerts <nick.nauwelaerts@aquafin.be>, Weylin Piegorsch <
> weylin@bu.edu>, "rancid-discuss@shrubbery.net" <
> rancid-discuss@shrubbery.net>
> *Subject: *Re: [rancid] Unable to figure out "end of run not found"
>
>
>
> ok, but rancid do not save the output of command.,
>
>
>
> How I can fix this problem?
>
>
>
> On Wed, Jul 3, 2019 at 11:12 AM john heasley <heas@shrubbery.net> wrote:
>
> Wed, Jul 03, 2019 at 07:48:09AM -0600, Kevin Morales:
> > Hello!,
> >
> > How I can fix the problem when I run rancid for ZTE Router?. I get this
> > error: *End of run not found*
> >
> > the two file 172.17.1.6.new and 172.17.1.6.raw don't show any error!.
> >
> > NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
> >
> > loadtype: device type cisco
> > loadtype: found device type cisco in
> /usr/local/rancid/etc/rancid.types.base
> > executing clogin -t 90 -c"show version;show install active;show vlan;show
> > running-config" 172.17.1.6
> > PROMPT MATCH: RT-ZTE#
> > HIT COMMAND: RT-ZTE #show version
> > In ShowVersion: RT-ZTE #show version
> > HIT COMMAND: RT-ZTE #show install active
> > In ShowInstallActive: RT-ZTE #show install active
> > HIT COMMAND: RT-ZTE #show vlan
> > In ShowVLAN: RT-ZTE #show vlan
> > HIT COMMAND: RT-ZTE #show running-config
> > In WriteTerm: RT-ZTE #show running-config
> > *172.17.1.6 <http://172.17.1.6>: End of run not found*
> > 172.17.1.6: clean_run is false
> > 172.17.1.6: found_end is false
> > !</isis>
>
> found end means that it found the end of the config; for type cisco,
> that means "^end".
>
> clean run means that it found the cli logout; for type cisco, that
> means "prompt[>#] exit$"
>
>
>
>
> --
>
> *Kevin Morales*
>


--
*Kevin Morales*
Re: Unable to figure out "end of run not found" [ In reply to ]
Wed, Jul 03, 2019 at 11:33:08AM -0600, Kevin Morales:
> Thanks Piegorsh,
>
> I did it..
>
> NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
>
> but in the two file 172.17.1.6.new and 172.17.1.6.raw don't see anything
> about this error. both show the correct command output.

correct command output and matching the criteria that i described below
for type cisco are not necessarily the same thing. read it again.

> On Wed, Jul 3, 2019 at 11:29 AM Piegorsch, Weylin William <weylin@bu.edu>
> wrote:
> > > *172.17.1.6 <http://172.17.1.6>: End of run not found*
> > > 172.17.1.6: clean_run is false
> > > 172.17.1.6: found_end is false
> > > !</isis>
> >
> > found end means that it found the end of the config; for type cisco,
> > that means "^end".
> >
> > clean run means that it found the cli logout; for type cisco, that
> > means "prompt[>#] exit$"

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Unable to figure out "end of run not found" [ In reply to ]
I am sorry, I dont get you, What do you want I do?

on my Rancid Server I execute:
[rancid@localhost bin]$ NOPIPE=yes ./rancid -d -t cisco 172.17.1.6

On Wed, Jul 3, 2019 at 12:43 PM john heasley <heas@shrubbery.net> wrote:

> Wed, Jul 03, 2019 at 11:33:08AM -0600, Kevin Morales:
> > Thanks Piegorsh,
> >
> > I did it..
> >
> > NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
> >
> > but in the two file 172.17.1.6.new and 172.17.1.6.raw don't see anything
> > about this error. both show the correct command output.
>
> correct command output and matching the criteria that i described below
> for type cisco are not necessarily the same thing. read it again.
>
> > On Wed, Jul 3, 2019 at 11:29 AM Piegorsch, Weylin William <weylin@bu.edu
> >
> > wrote:
> > > > *172.17.1.6 <http://172.17.1.6>: End of run not found*
> > > > 172.17.1.6: clean_run is false
> > > > 172.17.1.6: found_end is false
> > > > !</isis>
> > >
> > > found end means that it found the end of the config; for type cisco,
> > > that means "^end".
> > >
> > > clean run means that it found the cli logout; for type cisco, that
> > > means "prompt[>#] exit$"
>


--
*Kevin Morales*
Re: Unable to figure out "end of run not found" [ In reply to ]
Hi Kevin,
I think you said this is a ZTE device, but that you’re using -t cisco. is ZTE a cisco device?
weylin

From: Kevin Morales <kevin.moralez@gmail.com>
Date: Wednesday, July 3, 2019 at 3:18 PM
To: john heasley <heas@shrubbery.net>
Cc: Weylin Piegorsch <weylin@bu.edu>, Nick Nauwelaerts <nick.nauwelaerts@aquafin.be>, "rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net>
Subject: Re: [rancid] Unable to figure out "end of run not found"

I am sorry, I dont get you, What do you want I do?

on my Rancid Server I execute:
[rancid@localhost bin]$ NOPIPE=yes ./rancid -d -t cisco 172.17.1.6

On Wed, Jul 3, 2019 at 12:43 PM john heasley <heas@shrubbery.net<mailto:heas@shrubbery.net>> wrote:
Wed, Jul 03, 2019 at 11:33:08AM -0600, Kevin Morales:
> Thanks Piegorsh,
>
> I did it..
>
> NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
>
> but in the two file 172.17.1.6.new and 172.17.1.6.raw don't see anything
> about this error. both show the correct command output.

correct command output and matching the criteria that i described below
for type cisco are not necessarily the same thing. read it again.

> On Wed, Jul 3, 2019 at 11:29 AM Piegorsch, Weylin William <weylin@bu.edu<mailto:weylin@bu.edu>>
> wrote:
> > > *172.17.1.6 <http://172.17.1.6>: End of run not found*
> > > 172.17.1.6<http://172.17.1.6>: clean_run is false
> > > 172.17.1.6<http://172.17.1.6>: found_end is false
> > > !</isis>
> >
> > found end means that it found the end of the config; for type cisco,
> > that means "^end".
> >
> > clean run means that it found the cli logout; for type cisco, that
> > means "prompt[>#] exit$"


--
Kevin Morales
Re: Unable to figure out "end of run not found" [ In reply to ]
Yes, my Router is ZTE and I am using CISCO type, because the command is the
same to see the configuration..show running-config

On Wed, Jul 3, 2019 at 2:52 PM Piegorsch, Weylin William <weylin@bu.edu>
wrote:

> Hi Kevin,
>
> I think you said this is a ZTE device, but that you’re using -t cisco. is
> ZTE a cisco device?
>
> weylin
>
>
>
> *From: *Kevin Morales <kevin.moralez@gmail.com>
> *Date: *Wednesday, July 3, 2019 at 3:18 PM
> *To: *john heasley <heas@shrubbery.net>
> *Cc: *Weylin Piegorsch <weylin@bu.edu>, Nick Nauwelaerts <
> nick.nauwelaerts@aquafin.be>, "rancid-discuss@shrubbery.net" <
> rancid-discuss@shrubbery.net>
> *Subject: *Re: [rancid] Unable to figure out "end of run not found"
>
>
>
> I am sorry, I dont get you, What do you want I do?
>
>
>
> on my Rancid Server I execute:
>
> [rancid@localhost bin]$ NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
>
>
>
> On Wed, Jul 3, 2019 at 12:43 PM john heasley <heas@shrubbery.net> wrote:
>
> Wed, Jul 03, 2019 at 11:33:08AM -0600, Kevin Morales:
> > Thanks Piegorsh,
> >
> > I did it..
> >
> > NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
> >
> > but in the two file 172.17.1.6.new and 172.17.1.6.raw don't see anything
> > about this error. both show the correct command output.
>
> correct command output and matching the criteria that i described below
> for type cisco are not necessarily the same thing. read it again.
>
> > On Wed, Jul 3, 2019 at 11:29 AM Piegorsch, Weylin William <weylin@bu.edu
> >
> > wrote:
> > > > *172.17.1.6 <http://172.17.1.6>: End of run not found*
> > > > 172.17.1.6: clean_run is false
> > > > 172.17.1.6: found_end is false
> > > > !</isis>
> > >
> > > found end means that it found the end of the config; for type cisco,
> > > that means "^end".
> > >
> > > clean run means that it found the cli logout; for type cisco, that
> > > means "prompt[>#] exit$"
>
>
>
>
> --
>
> *Kevin Morales*
>


--
*Kevin Morales*
Re: Unable to figure out "end of run not found" [ In reply to ]
Wed, Jul 03, 2019 at 02:53:14PM -0600, Kevin Morales:
> Yes, my Router is ZTE and I am using CISCO type, because the command is the
> same to see the configuration..show running-config

I have no idea what ZTE is; does it behave *exactly* the same as IOS?
It seems not.

> > > > found end means that it found the end of the config; for type cisco,
> > > > that means "^end".

Does it's config end with:

"
end
"?

> > > > clean run means that it found the cli logout; for type cisco, that
> > > > means "prompt[>#] exit$"

in your .raw file, does the last prompt where clogin exited the cli, match
the regex

"prompt[>#] exit$"
?

clearly these sanity checks are not working with your ZTE device. You
need to figure-out why and correct it, likely by creating your own
rancid module for ZTE with a customized inloop() function. you can
probably use the parsing functions from the ios module, like the
'ciscoshtech' example that comes with rancid uses 2 modules.

> On Wed, Jul 3, 2019 at 2:52 PM Piegorsch, Weylin William <weylin@bu.edu>
> wrote:
>
> > Hi Kevin,
> >
> > I think you said this is a ZTE device, but that you’re using -t cisco. is
> > ZTE a cisco device?
> >
> > weylin
> >
> >
> >
> > *From: *Kevin Morales <kevin.moralez@gmail.com>
> > *Date: *Wednesday, July 3, 2019 at 3:18 PM
> > *To: *john heasley <heas@shrubbery.net>
> > *Cc: *Weylin Piegorsch <weylin@bu.edu>, Nick Nauwelaerts <
> > nick.nauwelaerts@aquafin.be>, "rancid-discuss@shrubbery.net" <
> > rancid-discuss@shrubbery.net>
> > *Subject: *Re: [rancid] Unable to figure out "end of run not found"
> >
> >
> >
> > I am sorry, I dont get you, What do you want I do?
> >
> >
> >
> > on my Rancid Server I execute:
> >
> > [rancid@localhost bin]$ NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
> >
> >
> >
> > On Wed, Jul 3, 2019 at 12:43 PM john heasley <heas@shrubbery.net> wrote:
> >
> > Wed, Jul 03, 2019 at 11:33:08AM -0600, Kevin Morales:
> > > Thanks Piegorsh,
> > >
> > > I did it..
> > >
> > > NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
> > >
> > > but in the two file 172.17.1.6.new and 172.17.1.6.raw don't see anything
> > > about this error. both show the correct command output.
> >
> > correct command output and matching the criteria that i described below
> > for type cisco are not necessarily the same thing. read it again.
> >
> > > On Wed, Jul 3, 2019 at 11:29 AM Piegorsch, Weylin William <weylin@bu.edu
> > >
> > > wrote:
> > > > > *172.17.1.6 <http://172.17.1.6>: End of run not found*
> > > > > 172.17.1.6: clean_run is false
> > > > > 172.17.1.6: found_end is false
> > > > > !</isis>
> > > >
> > > > found end means that it found the end of the config; for type cisco,
> > > > that means "^end".
> > > >
> > > > clean run means that it found the cli logout; for type cisco, that
> > > > means "prompt[>#] exit$"

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Unable to figure out "end of run not found" [ In reply to ]
Thanks John!

The configuration finish in some case with:

!</static>
ZXR10-01#

$
!</isis>
ZXR10-02#

$
!</pcep>
ZXR10-03#

and sorry, I don't have experience with programation..,

Thanks!

On Wed, Jul 3, 2019 at 6:10 PM john heasley <heas@shrubbery.net> wrote:

> Wed, Jul 03, 2019 at 02:53:14PM -0600, Kevin Morales:
> > Yes, my Router is ZTE and I am using CISCO type, because the command is
> the
> > same to see the configuration..show running-config
>
> I have no idea what ZTE is; does it behave *exactly* the same as IOS?
> It seems not.
>
> > > > > found end means that it found the end of the config; for type
> cisco,
> > > > > that means "^end".
>
> Does it's config end with:
>
> "
> end
> "?
>
> > > > > clean run means that it found the cli logout; for type cisco, that
> > > > > means "prompt[>#] exit$"
>
> in your .raw file, does the last prompt where clogin exited the cli, match
> the regex
>
> "prompt[>#] exit$"
> ?
>
> clearly these sanity checks are not working with your ZTE device. You
> need to figure-out why and correct it, likely by creating your own
> rancid module for ZTE with a customized inloop() function. you can
> probably use the parsing functions from the ios module, like the
> 'ciscoshtech' example that comes with rancid uses 2 modules.
>
> > On Wed, Jul 3, 2019 at 2:52 PM Piegorsch, Weylin William <weylin@bu.edu>
> > wrote:
> >
> > > Hi Kevin,
> > >
> > > I think you said this is a ZTE device, but that you’re using -t cisco.
> is
> > > ZTE a cisco device?
> > >
> > > weylin
> > >
> > >
> > >
> > > *From: *Kevin Morales <kevin.moralez@gmail.com>
> > > *Date: *Wednesday, July 3, 2019 at 3:18 PM
> > > *To: *john heasley <heas@shrubbery.net>
> > > *Cc: *Weylin Piegorsch <weylin@bu.edu>, Nick Nauwelaerts <
> > > nick.nauwelaerts@aquafin.be>, "rancid-discuss@shrubbery.net" <
> > > rancid-discuss@shrubbery.net>
> > > *Subject: *Re: [rancid] Unable to figure out "end of run not found"
> > >
> > >
> > >
> > > I am sorry, I dont get you, What do you want I do?
> > >
> > >
> > >
> > > on my Rancid Server I execute:
> > >
> > > [rancid@localhost bin]$ NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
> > >
> > >
> > >
> > > On Wed, Jul 3, 2019 at 12:43 PM john heasley <heas@shrubbery.net>
> wrote:
> > >
> > > Wed, Jul 03, 2019 at 11:33:08AM -0600, Kevin Morales:
> > > > Thanks Piegorsh,
> > > >
> > > > I did it..
> > > >
> > > > NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
> > > >
> > > > but in the two file 172.17.1.6.new and 172.17.1.6.raw don't see
> anything
> > > > about this error. both show the correct command output.
> > >
> > > correct command output and matching the criteria that i described below
> > > for type cisco are not necessarily the same thing. read it again.
> > >
> > > > On Wed, Jul 3, 2019 at 11:29 AM Piegorsch, Weylin William <
> weylin@bu.edu
> > > >
> > > > wrote:
> > > > > > *172.17.1.6 <http://172.17.1.6>: End of run not found*
> > > > > > 172.17.1.6: clean_run is false
> > > > > > 172.17.1.6: found_end is false
> > > > > > !</isis>
> > > > >
> > > > > found end means that it found the end of the config; for type
> cisco,
> > > > > that means "^end".
> > > > >
> > > > > clean run means that it found the cli logout; for type cisco, that
> > > > > means "prompt[>#] exit$"
>


--
*Kevin Morales*
Re: Unable to figure out "end of run not found" [ In reply to ]
Fri, Jul 05, 2019 at 07:16:35AM -0600, Kevin Morales:
> Thanks John!
>
> The configuration finish in some case with:
>
> !</static>
> ZXR10-01#
>
> $
> !</isis>
> ZXR10-02#
>
> $
> !</pcep>
> ZXR10-03#
>
> and sorry, I don't have experience with programation..,

it would need to handle the check like exos.pm; by counting valid output.
Maybe try just using that module with a private device type like:

zte;script;rancid -t zte
zte;login;xlogin
zte;module;exos
zte;inloop;exos::inloop
zte;command;exos::ShowVersion;show version
zte;command;exos::WriteTerm;show configuration

> Thanks!
>
> On Wed, Jul 3, 2019 at 6:10 PM john heasley <heas@shrubbery.net> wrote:
>
> > Wed, Jul 03, 2019 at 02:53:14PM -0600, Kevin Morales:
> > > Yes, my Router is ZTE and I am using CISCO type, because the command is
> > the
> > > same to see the configuration..show running-config
> >
> > I have no idea what ZTE is; does it behave *exactly* the same as IOS?
> > It seems not.
> >
> > > > > > found end means that it found the end of the config; for type
> > cisco,
> > > > > > that means "^end".
> >
> > Does it's config end with:
> >
> > "
> > end
> > "?
> >
> > > > > > clean run means that it found the cli logout; for type cisco, that
> > > > > > means "prompt[>#] exit$"
> >
> > in your .raw file, does the last prompt where clogin exited the cli, match
> > the regex
> >
> > "prompt[>#] exit$"
> > ?
> >
> > clearly these sanity checks are not working with your ZTE device. You
> > need to figure-out why and correct it, likely by creating your own
> > rancid module for ZTE with a customized inloop() function. you can
> > probably use the parsing functions from the ios module, like the
> > 'ciscoshtech' example that comes with rancid uses 2 modules.
> >
> > > On Wed, Jul 3, 2019 at 2:52 PM Piegorsch, Weylin William <weylin@bu.edu>
> > > wrote:
> > >
> > > > Hi Kevin,
> > > >
> > > > I think you said this is a ZTE device, but that you’re using -t cisco.
> > is
> > > > ZTE a cisco device?
> > > >
> > > > weylin
> > > >
> > > >
> > > >
> > > > *From: *Kevin Morales <kevin.moralez@gmail.com>
> > > > *Date: *Wednesday, July 3, 2019 at 3:18 PM
> > > > *To: *john heasley <heas@shrubbery.net>
> > > > *Cc: *Weylin Piegorsch <weylin@bu.edu>, Nick Nauwelaerts <
> > > > nick.nauwelaerts@aquafin.be>, "rancid-discuss@shrubbery.net" <
> > > > rancid-discuss@shrubbery.net>
> > > > *Subject: *Re: [rancid] Unable to figure out "end of run not found"
> > > >
> > > >
> > > >
> > > > I am sorry, I dont get you, What do you want I do?
> > > >
> > > >
> > > >
> > > > on my Rancid Server I execute:
> > > >
> > > > [rancid@localhost bin]$ NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
> > > >
> > > >
> > > >
> > > > On Wed, Jul 3, 2019 at 12:43 PM john heasley <heas@shrubbery.net>
> > wrote:
> > > >
> > > > Wed, Jul 03, 2019 at 11:33:08AM -0600, Kevin Morales:
> > > > > Thanks Piegorsh,
> > > > >
> > > > > I did it..
> > > > >
> > > > > NOPIPE=yes ./rancid -d -t cisco 172.17.1.6
> > > > >
> > > > > but in the two file 172.17.1.6.new and 172.17.1.6.raw don't see
> > anything
> > > > > about this error. both show the correct command output.
> > > >
> > > > correct command output and matching the criteria that i described below
> > > > for type cisco are not necessarily the same thing. read it again.
> > > >
> > > > > On Wed, Jul 3, 2019 at 11:29 AM Piegorsch, Weylin William <
> > weylin@bu.edu
> > > > >
> > > > > wrote:
> > > > > > > *172.17.1.6 <http://172.17.1.6>: End of run not found*
> > > > > > > 172.17.1.6: clean_run is false
> > > > > > > 172.17.1.6: found_end is false
> > > > > > > !</isis>
> > > > > >
> > > > > > found end means that it found the end of the config; for type
> > cisco,
> > > > > > that means "^end".
> > > > > >
> > > > > > clean run means that it found the cli logout; for type cisco, that
> > > > > > means "prompt[>#] exit$"
> >
>
>
> --
> *Kevin Morales*

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