Mailing List Archive

running rancid manually works, but not via do-diffs
I am setting up RANCID on a new system. When do-diffs is ran a device
does not get polled. The error in the log is:
vpwan01_eatx clogin error: Error: Connection closed (ssh): vpwan01_eatx
vpwan01_eatx: missed cmd(s): show env all,show module,show
controllers,show diagbus,show diag,dir /all disk1:,show gsr ch
assis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir
/all sup-bootflash:,dir /all slot2:,dir /all slo
t0:,dir /all sup-microcode:,dir /all disk0:,show install active,show
bootvar,show vlan,show controllers cbus,dir /all nvr
am:,show flash,show version,show variables boot,show c7200,show boot,dir
/all slot1:
vpwan01_eatx: End of run not found

However rancid -d vpwan01_eatx produces no errors and generates healthy
looking .raw and .new files.

Why would clogin/rancid work manually but not when do-diffs calls
rancid/clogin?

Any ideas?

Thanks,
Joe
running rancid manually works, but not via do-diffs [ In reply to ]
Wed, Sep 17, 2003 at 01:15:09PM -0700, Rizzo, Joe:
> I am setting up RANCID on a new system. When do-diffs is ran a device
> does not get polled. The error in the log is:
> vpwan01_eatx clogin error: Error: Connection closed (ssh): vpwan01_eatx
> vpwan01_eatx: missed cmd(s): show env all,show module,show
> controllers,show diagbus,show diag,dir /all disk1:,show gsr ch
> assis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir
> /all sup-bootflash:,dir /all slot2:,dir /all slo
> t0:,dir /all sup-microcode:,dir /all disk0:,show install active,show
> bootvar,show vlan,show controllers cbus,dir /all nvr
> am:,show flash,show version,show variables boot,show c7200,show boot,dir
> /all slot1:
> vpwan01_eatx: End of run not found
>
> However rancid -d vpwan01_eatx produces no errors and generates healthy
> looking .raw and .new files.
>
> Why would clogin/rancid work manually but not when do-diffs calls
> rancid/clogin?

dumb q, but are both instances (cron and manual) using ssh?

next, I would suspect pty handling by ssh - or maybe the terminal type
it ends-up with might be affecting it?

what o/s? expect/etc versions?
running rancid manually works, but not via do-diffs [ In reply to ]
"next, I would suspect pty handling by ssh - or maybe the terminal type
it ends-up with might be affecting it?" refreshed my memory...

I set the following in bin/env
TERM=vt100;export TERM
COLUMNS=160; LINES=48; export COLUMNS LINES

The affected devices are now being polled successfully. Thanks much
John!

FYI - here are the versions:
Redhat9 2.4.20smp kernel
Expect 5.39
Tcl 8.4.4

The device being polled is Linux system running ZebOS.