Mailing List Archive

arcos End of run not found
```
$ freebsd-version
13.0-RELEASE-p10
$ rancid --version
/usr/local/libexec/rancid/rancid version 3.13 calling Getopt::Std::getopts (version 1.12 [paranoid]),
running under Perl version 5.32.1.
```

```
$ grep r2.sea $HOME/var/psgnet/router.db
r2.sea.rg.net;arcos;up
```

logging in seems to work
```
$ clogin r2.sea.rg.net
r2.sea.rg.net
spawn ssh -x -l rancid r2.sea.rg.net
ARCOS (c) Arrcus, Inc.
rancid@r2.sea.rg.net's password:
Welcome to the ArcOS CLI
rancid connected from 147.28.0.35 using ssh on r2.sea
rancid@r2.sea#
rancid@r2.sea# q
Connection to r2.sea.rg.net closed.
```

but getting config does not
```
$ rancid -d -t arcos r2.sea.rg.net
loadtype: device type arcos
loadtype: found device type arcos at /usr/local/etc/rancid/rancid.types.base:57
executing xilogin -t 90 -c"show version;show hardware | notab;show running-config" r2.sea.rg.net
PROMPT MATCH: rancid@r2.sea#
HIT COMMAND:rancid@r2.sea# show version
In ShowVersion: rancid@r2.sea# show version
HIT COMMAND:rancid@r2.sea# show hardware | notab
In ShowVersion: rancid@r2.sea# show hardware | notab
r2.sea.rg.net: End of run not found
r2.sea.rg.net: clean_run is false
r2.sea.rg.net: found_end is false
!
```

`show run | tail` yields
```
acl-entry 104
ipv6 source-address ::/0
ipv6 destination-address ::/0
actions forwarding-action ACCEPT
!
!
```

maybe it does not like the final bang? maybe it meant to pipe a command
to `| nomore`?

randy

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@www.shrubbery.net
https://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: arcos End of run not found [ In reply to ]
Fri, May 27, 2022 at 01:32:20PM -0700, Randy Bush:
> PROMPT MATCH: rancid@r2.sea#
> HIT COMMAND:rancid@r2.sea# show version
> In ShowVersion: rancid@r2.sea# show version
> HIT COMMAND:rancid@r2.sea# show hardware | notab
> In ShowVersion: rancid@r2.sea# show hardware | notab

looks like it never found the config. either it ate too much of show hardware
or the config wasn't collected from the device.

This is the only arcos change since 3.13:
diff --git a/lib/arcos.pm.in b/lib/arcos.pm.in
index 207713f9..8bcb6417 100644
--- a/lib/arcos.pm.in
+++ b/lib/arcos.pm.in
@@ -93,6 +93,7 @@ sub ShowVersion {
return(1) if (/Line has invalid autocommand /);
return(1) if (/(invalid (input|command) detected|type help or )/i);
return(-1) if (/command authorization failed/i);
+ return(-1) if (/error: application communication failure/i);

# drop trailing spaces
s/ *$//;

Also, I'm polling your device myself and not having problems.

rancid -dt arcos r2.sea.rg.net

Check file r2.sea.rg.net.raw for the config output. See the end of
r2.sea.rg.net.new for how far it went before bailing; if it has the
config, ShowHardware() ate too much.

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@www.shrubbery.net
https://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: arcos End of run not found [ In reply to ]
for the archive: deinstall and reinstall of rancid from git solved the
problem. i think there were conflicting versions installed.

randy

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