[Date Prev] [Date Index] [Date Next] [Thread Prev] [Thread Index] [Thread Next]
Saku Ytti saku@ytti.fi
Wed, 10 Apr 2013 08:10:50 GMT
After few hours some of my connections might die, and not be restarted. In logs I see. --- Connection closed by foreign host. [-- Console down -- Tue Apr 9 16:45:49 2013] [-- Console up -- Tue Apr 9 16:45:50 2013] [-- MARK -- Tue Apr 9 17:00:00 2013] [-- MARK -- Tue Apr 9 18:00:00 2013] ---- In host 'ps aux' shows the needed telnet sessions are not there. If I restart conserve, everything is ok again, I get in logs: --- Trying x.y.j.k... Connected to x.y.j.k. Escape character is '^]'. <MOTD> --- When it is broken, and I do 'console broken_box', I get connected. And with '^E c o' I can get it working again. So what might cause the telnet not being automatically restarted sometimes? conserver.cf: config * { sslrequired no; setproctitle yes; } access * { trusted localhost, host1, host2; } default * { logfile /var/log/oob/&.log; logfilemax 1m; timestamp 1hab; master localhost; rw *; } # default telnet based OOB device, absoolute port numbers # e.g. Cisco HWIC-8A and HWIC-4A/S default telnet { #portbase 2003; #portinc 1; type exec; exec telnet -48KNc -S192 h p; execsubst h=hs,p=pd; #exec nc -4t -T0xc0 h p; #exec socat -,icanon=0,echo=0 TCP:z:x; #execsubst z=hs,x=pd; } ## kern.pts_maxdev kern.maxfiles kern.maxproc ##include /usr/local/etc/conserver/country1 #include /usr/local/etc/conserver/country2 ##include /usr/local/etc/conserver/testnet country2: default pop1 { include telnet; host x.y.j.k; } # map hostname to console port number # HWIC-8A first port (P0) is 2003 # HWIC-4A/S first port (S0) is 2019 console router1 { include pop1; port 2003; } console router2 { include pop1; port 2019; } console routerN { include pop1; port 2023; } host% conserver -V conserver: conserver.com version 8.1.18 conserver: default access type `r' conserver: default escape sequence `^Ec' conserver: default configuration in `/usr/local/etc/conserver.cf' conserver: default password in `/usr/local/etc/conserver.passwd' conserver: default logfile is `/var/log/conserver' conserver: default pidfile is `/var/run/conserver.pid' conserver: default limit is 16 members per group conserver: default primary port referenced as `782' conserver: default secondary base port referenced as `0' conserver: options: libwrap, openssl, pam conserver: openssl version: OpenSSL 0.9.8q 2 Dec 2010 conserver: built with `./configure --with-master=localhost --with-port=782 --with-pam --with-libwrap --with-openssl --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=amd64-portbld-freebsd8.3' host% uname -a FreeBSD host 8.3-RELEASE-p4 FreeBSD 8.3-RELEASE-p4 #0: Tue Aug 14 17:29:18 CEST 2012 root@host/usr/obj/usr/src/sys/GENERIC amd64 I'm running 'conserve-con' from freebsd ports. Thanks, -- ++ytti