[rancid] missed cmd(s): write term

1,281 views
Skip to first unread message

Hugo Deprez

unread,
Nov 3, 2011, 10:03:53 AM11/3/11
to rancid-...@shrubbery.net
Dear community,

I am trying to backup an equipment, but I encounter some trouble :

The log file is reporting :


Trying to get all of the configs.
sw: missed cmd(s): write term
=====================================
Getting missed routers: round 1.
sw: missed cmd(s): write term
=====================================
Getting missed routers: round 2.
sw: missed cmd(s): write term
=====================================
Getting missed routers: round 3.
sw: missed cmd(s): write term
=====================================
Getting missed routers: round 4.
sw: missed cmd(s): write term

So I checked that rancid was able to log on with the following command :

/usr/lib/rancid/clogin -c "show clock" sw

=> It works. So no clogin issue.

The equipement is a cisco 2960.

I would like to enable debug mode for rancid-run in order to find what
is the problem.

Any tips ?

Regards

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

Marito ...

unread,
Nov 3, 2011, 11:30:16 AM11/3/11
to hugo....@gmail.com, rancid-...@shrubbery.net
Hi Hugo,
 
did you get the exit once you run /usr/lib/rancid/clogin -c "show clock" sw ? (It should run show clock, and then exit)
For debug, i was looking for information, and ended using (as should be in your case) "expect -d /usr/lib/rancid/clogin -c "show clock" sw " . This should help you to check what is happening when running the commands.
 
Hope this help you.
Regards.

 
> Date: Thu, 3 Nov 2011 15:03:53 +0100
> From: hugo....@gmail.com
> To: rancid-...@shrubbery.net
> Subject: [rancid] missed cmd(s): write term

Marito ...

unread,
Nov 3, 2011, 1:33:13 PM11/3/11
to hugo....@gmail.com, rancid-...@shrubbery.net
Maybe trying to run write term gives you an error.
Run it, and see what happens.
 
Regards
Mario
 
> Date: Thu, 3 Nov 2011 18:29:25 +0100
> Subject: Re: [rancid] missed cmd(s): write term
> From: hugo....@gmail.com
> To: me_go...@hotmail.com
> CC: rancid-...@shrubbery.net
>
> Hello,
>
> Yes I get the "show clock" and "exit" command when running the

> /usr/lib/rancid/clogin -c "show clock" sw
>
> I did run the debug command, but as everything is fine I don't know
> what I am looking for.
>
> Maybe the rancid-run command is trying to use an unknown command on my
> equipment ?
>
> Is that possible ?
>
> Hugo

Hugo Deprez

unread,
Nov 3, 2011, 1:29:25 PM11/3/11
to Marito ..., rancid-...@shrubbery.net
Hello,

Yes I get the "show clock" and "exit" command when running the

/usr/lib/rancid/clogin -c "show clock" sw

I did run the debug command, but as everything is fine I don't know


what I am looking for.

Maybe the rancid-run command is trying to use an unknown command on my
equipment ?

Is that possible ?

Hugo

On 3 November 2011 16:30, Marito ... <me_go...@hotmail.com> wrote:

Hugo Deprez

unread,
Nov 7, 2011, 6:00:14 AM11/7/11
to Marito ..., rancid-...@shrubbery.net
Hello,

the command works.

In fact, I really have a weird behaviour. Hosts regurarly failed to
backup quite randomly with :


sw : missed cmd(s): write term

or
sw clogin error: Error: TIMEOUT reached

Now the host backup is working for the original equipments.

I do have a certain number of equipments to backup (arround 200).
Could that be the source of the issue ?


Regards,

Hugo

Daniel Roesen

unread,
Nov 7, 2011, 1:58:33 PM11/7/11
to rancid-...@shrubbery.net
On Mon, Nov 07, 2011 at 12:00:14PM +0100, Hugo Deprez wrote:
> the command works.
>
> In fact, I really have a weird behaviour. Hosts regurarly failed to
> backup quite randomly with :
> sw : missed cmd(s): write term

I'm seeing the same problem with Cisco uBR10k boxes. They often need
multiple attempts until RANCID finally is OK with the "write term"
output. Using ssh here. I've once troubleshooted it down to RANCID
having difficulty recognizing the end of the config (prompt) due to
inflexible blank character recognition (or lack thereof) of the
following command prompt. I tried fixing it but it only made things less
bad, not finally fixed it. Lost time+nerve troubleshooting further.

Best regards,
Daniel

--
CLUE-RIPE -- Jabber: d...@cluenet.de -- dr@IRCnet -- PGP: 0xA85C8AA0

Hugo Deprez

unread,
Nov 8, 2011, 5:52:49 AM11/8/11
to rancid-...@shrubbery.net
Hello,

I am using SSH too.

I mainly backup 2960G equipments.

Is there a bug tracker for rancid ?

regards,

Hugo

Reply all
Reply to author
Forward
0 new messages