[rancid] Re: Making zrancid work from cron

john heasley heas at shrubbery.net
Fri Jul 30 20:08:31 UTC 2010


Fri, Jul 30, 2010 at 07:28:03PM +0200, Tore Anderson:
> Hi,
> 
> * john heasley
> 
> > is this directly to bgpd or via 'zebra' (or whatever that vtysh 
> > daemon is called)?
> 
> Neither, I've set up a UNIX account on the router that has
> /usr/bin/vtysh as its login shell.  So clogin logs in to the standard
> system sshd.  I believe that is the only way to get the complete
> configuration, if you use telnet to bgpd/ospfd/zebra/etc you only get
> the configuration for that particular routing protocol.
> 
> Best regards,
> -- 
> Tore Anderson
> Redpill Linpro AS - http://www.redpill-linpro.com/
> Tel: +47 21 54 41 27

Does this fix it?  Does linux not have terminfo/termcap for "dumb"?

Index: zrancid.in
===================================================================
--- zrancid.in	(revision 2233)
+++ zrancid.in	(working copy)
@@ -65,6 +65,9 @@
 my($filter_commstr);			# SNMP community string filtering
 my($filter_pwds);			# password filtering mode
 
+# force a terminal type so as not to confuse the POS
+$ENV{'TERM'} = "vt100";
+
 # This routine is used to print out the router configuration
 sub ProcessHistory {
     my($new_hist_tag,$new_command,$command_string, at string) = (@_);



More information about the Rancid-discuss mailing list