[rancid] Fortigate issue with alpha release
heasley
heas at shrubbery.net
Wed Jun 21 19:09:42 UTC 2017
Wed, Jun 21, 2017 at 07:02:44PM +0000, Merijn Evertse:
> Hi,
>
> How do i use -x?
fnlogin -x inputfile device
-x Similar to the -c option; -x specifies a file with commands to
run on each of the routers. The commands must not expect
additional input, such as 'copy rcp startup-config' does. For
example:
show version
show logging
> The devices fail during the run with 'End of run not found'
hmm, lets take this offlist to save folk's mailboxes.
> Merijn Evertse
>
> -----Oorspronkelijk bericht-----
> Van: heasley [mailto:heas at shrubbery.net]
> Verzonden: woensdag 21 juni 2017 18:40
> Aan: Merijn Evertse <merijn at trans-ix.nl>
> CC: heasley <heas at shrubbery.net>; rancid-discuss at shrubbery.net
> Onderwerp: Re: [rancid] Fortigate issue with alpha release
>
> Wed, Jun 21, 2017 at 04:32:09PM +0000, Merijn Evertse:
> > Hi,
> >
> > Yes, working:
> > -re "^(.+$prompt)" {
> > regsub -all "^\[#\\$\]+\[#\\$\] " $expect_out(0,string) {} junk;
> > regsub -all "\[\]\[\(\)\]" $junk {\\&} junk;
> > set prompt "^$junk";
> > }
> >
> > Thanks, I will run it on a batch of Fortigate units.
>
> excellent. Please verify that -x works too and that $prompt is receiving a proper value, which should be something like "^hostname # "
More information about the Rancid-discuss
mailing list