From Richard.Zinar@overture.com Tue Apr 1 10:57:31 2003 Received: from msweep1.Corpsys.P4pnet.net ([208.50.18.5]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h31IvVKK007213 for ; Tue, 1 Apr 2003 10:57:31 -0800 (PST) Received: from excon1.corp.p4pnet.net (excon1.corp.p4pnet.net) by msweep1.Corpsys.P4pnet.net for ; Tue, 1 Apr 2003 10:57:30 -0800 Received: by excon1.corp.p4pnet.net with Internet Mail Service (5.5.2653.19) id ; Tue, 1 Apr 2003 10:53:32 -0800 Message-ID: <7DF9F59DFDDD7D45905597D1E2EE0BC601828A42@exchg4.corp.p4pnet.net> From: Richard Zinar To: "'users@conserver.com'" Date: Tue, 1 Apr 2003 10:57:23 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2F880.8761A160" Subject: RE: Console connections won't stay up X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 18:57:32 -0000 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C2F880.8761A160 Content-Type: text/plain; charset="iso-8859-1" FWIW - this problem was resolved by upgrading our WTI CMS-16 console servers to the latest firmware release (V4.0). The older version we were running couldn't handle more than four simultaneous connections ... Richard -----Original Message----- From: Richard Zinar [mailto:Richard.Zinar@overture.com] Sent: Tuesday, March 25, 2003 9:51 AM To: 'users@conserver.com' Subject: Console connections won't stay up Hi, I'm trying to get conserver (V7.2.6) working in our environment, I have run into the following problem - as soon as I start conserver, the consoles I'm using it to manage come down almost immediately: [-- Console up -- Tue Mar 25 09:26:30 2003] [-- Console down -- Tue Mar 25 09:26:30 2003] I also noticed I'm unable to telnet into our console servers (e.g., wti10.admin.sc.p4pnet.net) while conserver is running. I wouldn't expect to be able to access individual ports on the console server while conserver is controlling them, but it's not clear to me why the console server itself should become inaccessible. The conserver.cf file looks as follows: LOGDIR=/var/log/consoles TIMESTAMP=1ha holmium : !wti11.admin.sc.p4pnet.net :2103:&.log::1 nitrogen : !wti11.admin.sc.p4pnet.net :2104:&.log::1 barium : !wti11.admin.sc.p4pnet.net :2105:&.log::1 fermium : !wti11.admin.sc.p4pnet.net :2106:&.log::1 hassium : !wti11.admin.sc.p4pnet.net :2107:&.log::1 uranium : !wti11.admin.sc.p4pnet.net :2108:&.log::1 terbium : !wti11.admin.sc.p4pnet.net :2109:&.log::1 thurium : !wti11.admin.sc.p4pnet.net :2110:&.log::1 cerium : !wti11.admin.sc.p4pnet.net :2111:&.log::1 brie : !wti10.admin.sc.p4pnet.net :2103:&.log::1 radon : !wti10.admin.sc.p4pnet.net :2104:&.log::1 cheddar : !wti10.admin.sc.p4pnet.net :2105:&.log::1 edam : !wti10.admin.sc.p4pnet.net :2107:&.log::1 titanium : !wti10.admin.sc.p4pnet.net :2109:&.log::1 beaufort : !wti10.admin.sc.p4pnet.net :2111:&.log::1 blarney : !wti10.admin.sc.p4pnet.net :2112:&.log::1 iridium : !wti10.admin.sc.p4pnet.net :2113:&.log::1 tantalum : !wti10.admin.sc.p4pnet.net :2115:&.log::1 astatine : !wti10.admin.sc.p4pnet.net :2116:&.log::1 Any suggestions on what I might be doing wrong? The console servers are WTI CMS-16 units. Thanks ... Richard ------_=_NextPart_001_01C2F880.8761A160 Content-Type: text/html; charset="iso-8859-1"
FWIW - this problem was resolved by upgrading our
WTI CMS-16 console servers to the latest firmware
release (V4.0).  The older version we were running
couldn't handle more than four simultaneous connections ...
 
Richard
 
-----Original Message-----
From: Richard Zinar [mailto:Richard.Zinar@overture.com]
Sent: Tuesday, March 25, 2003 9:51 AM
To: 'users@conserver.com'
Subject: Console connections won't stay up

Hi,
 
I'm trying to get conserver (V7.2.6) working in our environment,
I have run into the following problem - as soon as I start conserver,
the consoles I'm using it to manage come down almost immediately:
 
[-- Console up -- Tue Mar 25 09:26:30 2003]
[-- Console down -- Tue Mar 25 09:26:30 2003]
 
I also noticed I'm unable to telnet into our console servers (e.g.,
wti10.admin.sc.p4pnet.net) while conserver is running.  I wouldn't
expect to be able to access individual ports on the console server while
conserver is controlling them, but it's not clear to me why the console
server itself should become inaccessible.
 
The conserver.cf file looks as follows:
 

   LOGDIR=/var/log/consoles
   TIMESTAMP=1ha
 
   holmium   : !wti11.admin.sc.p4pnet.net :2103:&.log::1
   nitrogen  : !wti11.admin.sc.p4pnet.net :2104:&.log::1
   barium    : !wti11.admin.sc.p4pnet.net :2105:&.log::1
   fermium   : !wti11.admin.sc.p4pnet.net :2106:&.log::1
   hassium   : !wti11.admin.sc.p4pnet.net :2107:&.log::1
   uranium   : !wti11.admin.sc.p4pnet.net :2108:&.log::1
   terbium   : !wti11.admin.sc.p4pnet.net :2109:&.log::1
   thurium   : !wti11.admin.sc.p4pnet.net :2110:&.log::1
   cerium    : !wti11.admin.sc.p4pnet.net :2111:&.log::1
 
   brie      : !wti10.admin.sc.p4pnet.net :2103:&.log::1
   radon     : !wti10.admin.sc.p4pnet.net :2104:&.log::1
   cheddar   : !wti10.admin.sc.p4pnet.net :2105:&.log::1
   edam      : !wti10.admin.sc.p4pnet.net :2107:&.log::1
   titanium  : !wti10.admin.sc.p4pnet.net :2109:&.log::1
   beaufort  : !wti10.admin.sc.p4pnet.net :2111:&.log::1
   blarney   : !wti10.admin.sc.p4pnet.net :2112:&.log::1
   iridium   : !wti10.admin.sc.p4pnet.net :2113:&.log::1
   tantalum  : !wti10.admin.sc.p4pnet.net :2115:&.log::1
   astatine  : !wti10.admin.sc.p4pnet.net :2116:&.log::1
 
Any suggestions on what I might be doing wrong?  The console
servers are WTI CMS-16 units.  Thanks ...
 
Richard
 
 
------_=_NextPart_001_01C2F880.8761A160-- From Richard.Zinar@overture.com Wed Apr 2 15:23:49 2003 Received: from msweep1.Corpsys.P4pnet.net ([208.50.18.5]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h32NNjKK028421 for ; Wed, 2 Apr 2003 15:23:49 -0800 (PST) Received: from excon2.corp.p4pnet.net (excon2.corp.p4pnet.net) by msweep1.Corpsys.P4pnet.net for ; Wed, 2 Apr 2003 15:23:44 -0800 Received: by excon2.corp.p4pnet.net with Internet Mail Service (5.5.2653.19) id ; Wed, 2 Apr 2003 15:24:51 -0800 Message-ID: <7DF9F59DFDDD7D45905597D1E2EE0BC601828A4D@exchg4.corp.p4pnet.net> From: Richard Zinar To: "'users@conserver.com'" Date: Wed, 2 Apr 2003 15:23:36 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2F96E.E2E6A3C0" Subject: sshconsole X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 23:23:50 -0000 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C2F96E.E2E6A3C0 Content-Type: text/plain; charset="iso-8859-1" I've seen references to an sshconsole script - e.g. http://www.dice.informatics.ed.ac.uk/doc/comp/dice-conserver-client/ sshconsole.1.html But I can't locate a copy of the script itself. Does someone have a copy of the script, or can someone point me to a site where I can obtain it? Thanks .... Richard ------_=_NextPart_001_01C2F96E.E2E6A3C0 Content-Type: text/html; charset="iso-8859-1"
I've seen references to an sshconsole script - e.g.
 
http://www.dice.informatics.ed.ac.uk/doc/comp/dice-conserver-client/ sshconsole.1.html
 
But I can't locate a copy of the script itself.   Does someone
have a copy of the script, or can someone point me to a site
where I can obtain it?   Thanks ....
 
Richard
 
------_=_NextPart_001_01C2F96E.E2E6A3C0-- From iainr@inf.ed.ac.uk Thu Apr 3 01:39:07 2003 Received: from topper.inf.ed.ac.uk (topper.inf.ed.ac.uk [129.215.32.40]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h339d5KK002961 for ; Thu, 3 Apr 2003 01:39:06 -0800 (PST) Received: from inf.ed.ac.uk (IDENT:iainr@mince.inf.ed.ac.uk [129.215.32.206]) by topper.inf.ed.ac.uk (8.11.6/8.11.6) with ESMTP id h339d1Y19684; Thu, 3 Apr 2003 10:39:01 +0100 Message-ID: <3E8C0133.3090500@inf.ed.ac.uk> Date: Thu, 03 Apr 2003 10:38:59 +0100 From: Iain Rae User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.2) Gecko/20030204 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Richard Zinar References: <7DF9F59DFDDD7D45905597D1E2EE0BC601828A4D@exchg4.corp.p4pnet.net> In-Reply-To: <7DF9F59DFDDD7D45905597D1E2EE0BC601828A4D@exchg4.corp.p4pnet.net> Content-Type: multipart/mixed; boundary="------------090706040005060000060602" cc: "'users@conserver.com'" Subject: Re: sshconsole X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 09:39:08 -0000 This is a multi-part message in MIME format. --------------090706040005060000060602 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Richard Zinar wrote: > I've seen references to an sshconsole script - e.g. > > http://www.dice.informatics.ed.ac.uk/doc/comp/dice-conserver-client/ > sshconsole.1.html > > But I can't locate a copy of the script itself. Does someone > have a copy of the script, or can someone point me to a site > where I can obtain it? Thanks .... > > Richard > > > > ------------------------------------------------------------------------ > > _______________________________________________ > users mailing list > users@conserver.com > https://www.conserver.com/mailman/listinfo/users It's site specific but you can probably hack it around to work. Basically it needs a list of conserver servers to search, we use a locally designed configuration system called lcfg. you could use a file or I have an older version that had that info deployed via nis maps. -- Iain Rae Tel:01316505202 Computing Officer JCMB:2418 School of Informatics The University of Edinburgh --------------090706040005060000060602 Content-Type: text/plain; name="sshconsole" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sshconsole" #!/usr/bin/perl -w # # $Header: /home/iainr/work/CVS/sshconsole/sshconsole,v 1.17 2002/05/06 09:47:55 iainr Exp $ # $Author: iainr $ # $Date: 2002/05/06 09:47:55 $ # $State: Exp $ # # Revision Log # $Log: sshconsole,v $ # Revision 1.17 2002/05/06 09:47:55 iainr # added check for uid=0 # # Revision 1.16 2002/04/22 16:37:25 iainr # scanhosts gets to be usr/sbin # # Revision 1.15 2002/04/22 15:58:36 iainr # rewrote the sshconsole script to connect to one server and scan all of them # added scanhosts script for deployment on server # # Revision 1.14 2002/02/08 17:35:57 iainr # removed reliance on shinynewlcfg, fixed problem with qxprof output change # # Revision 1.13 2001/10/18 09:30:47 iainr # tidied up the -u type options a bit # # Revision 1.12 2001/10/12 13:53:32 iainr # fix ssh for suns # # Revision 1.11 2001/10/12 09:46:24 iainr # fiddled with a couple of things to do with shinynewlcfg # # Revision 1.10 2001/10/10 15:00:25 iainr # removed all reliance on yp apart from one ypmatch which is needed # for backwards comaptibility on non ngclient hosts # # Revision 1.9 2001/10/10 14:58:47 iainr # fixed a few bugs, now drop # # Revision 1.8 2001/04/23 13:26:53 iainr # now we check for ssh binary # # Revision 1.7 2001/04/06 09:23:38 iainr # tidied up the error handling and program output a bit. # # Revision 1.6 2001/03/14 17:09:18 iainr # added check for existance of conserver.inf file # # Revision 1.5 2001/03/14 16:36:46 iainr # changed tag for serial ports to conerver.serial_ # to match change to make lcfg a bit more sensible # # Revision 1.4 2001/03/14 10:08:04 iainr # Finished the arguemtn handling and it all seems to work, will call this one # a first release # # Revision 1.3 2001/03/13 19:01:30 iainr # can now work out which server the host we want to connect to is on # and do some sensible parsing of the arguments # # Revision 1.2 2001/03/12 18:59:54 iainr # testing updates and have actually written a bit # # Revision 1.1.1.1 2001/03/12 18:22:25 iainr # initial import of sshconsole into CVS # use diagnostics; use strict; use vars qw($opt_a $opt_A $opt_b $opt_d $opt_D $opt_e $opt_f $opt_F $opt_M $opt_r $opt_s $opt_S $opt_u $opt_v $opt_V $opt_w $opt_x); use Getopt::Std; my $args=""; my $host=""; my $console_server="unset"; my $signo; my $conserverconf="/etc/conserver.inf"; my $allservers="allservers"; my @serverlist; my @reversed; my $error; my $filler; my $foo; my $ssh; my $sunssh="/usr/local/bin/ssh"; my $linuxssh="/usr/bin/ssh"; my $qxprof="/usr/bin/qxprof"; # # Process the arguments and build up an argument list for the # console command which will be run o the server # sub proc_args { my $args=""; my $interactive=1; # # there MUST be a nicer way of doing this # if ($opt_b){ $args="$args -b \"$opt_b\""; $interactive=0; } if ($opt_D && !($opt_d)) { $args="$args -D "; $interactive=0; } if ($opt_d) { $args="$args -d "; $interactive=0; } if ($opt_u){ $args="$args -u "; $interactive=0; } if ($opt_V){ $args="$args -V "; $interactive=0; } if ($opt_w){ $args="$args -w "; $interactive=0; } if ($opt_x){ $args="$args -x "; $interactive=0; } if ($interactive) { if ((!$opt_a) && (!$opt_f) && (!$opt_s)) { $args="$args -A "; } if ($opt_a){ $args="$args -a "; } if ($opt_f && !($opt_F)) { $args="$args -f "; } if ($opt_F) { $args="$args -F "; } if ($opt_s && !($opt_S)) { $args="$args -s "; } if ($opt_S) { $args="$args -S "; } if ($opt_r) { $args="$args -r"; } if ($opt_e) { $args="$args -e \"$opt_e\""; } } return $args } # # sub which_server { my $hostname=""; my $count=0; my $interactive=0; if ( $#ARGV == 0){ $hostname=$ARGV[0]; }else { $hostname=$allservers; } return $hostname; } sub get_console { my $lcfg=""; my $serials; my $grepline; my $string="conserver.serial_"; my @line; my $key; my $pid; my $count=0; my $conserver="unconsolable"; my $hostname=shift (@_); my $index; #for each server listed in conserver.servers # LINE: foreach $key (@serverlist) { # print "Checking $key\n"; # $pid=open(README, "$ssh -x -t $key /usr/bin/console -M localhost -u |"); # while () { # chomp; # @line=split /\s+/, $_; # if ($line[1] eq $hostname){ # if ($conserver eq "unconsolable") { # $conserver=$key; # } # else { # print "multiple instances of $hostname found on $conserver and $key, aborting\n"; # exit 1; # } # } # } # close (README); # # next LINE; # }; $index=0; while ( $conserver eq "unconsolable" && $index <= $#serverlist ) { $pid=open(README, "$ssh -x -t $serverlist[$index] /usr/sbin/scanhosts $hostname 2> /dev/null | "); while (){ #chomp; @line=split /:/, $_; if ( $line[0] eq "found"){ $conserver=$line[1]; chomp($conserver); } } close README; $index++; }; # so we do an ugly hack and see if conserver is still the default if ($conserver eq "unconsolable"){ print "didn't find anything in maps, falling back to config file\n"; open (README, "< $conserverconf") or die "$conserverconf does not exist\n"; close (README); open (README, "/bin/grep $hostname $conserverconf |") or die "Can't find grep .... damn it was here a minute ago\n"; $count=0; while(){ $grepline=$_; $count+=1; } if ($count < 0) { die "I found a -ve number of entries for $hostname in $conserverconf something really bad has happened\n"; } if ($count > 1) { die "found more than one entry for $hostname in $conserverconf, please check config file\n"; } if ( $count == 0 ){ die "cound not find entry for $hostname in $conserverconf\n"; } @line=split /:/,$grepline; $conserver=$line[0]; close README; } return $conserver; } # #Main part of script # # getopts('aAb:dDe:fFM:qQrsSuvVwx'); $args=proc_args(); $host=which_server; if ($< eq 0){ print "cannot run as root\n"; exit 1; } # # ssh is either in /bin/ssh (linux) or /usr/local/bin/ssh (sun) # we could go looking for it ourselves but we don't know what we'll # find so let's just check those places # if (-f $sunssh) { $ssh=$sunssh; } elsif ( -f $linuxssh) { $ssh=$linuxssh; } else { print "cannot find ssh binary\n"; exit; } if ( -e $qxprof ) { @serverlist=split /\s+/,`/usr/bin/qxprof -a conserver.servers`; #temp ugli hack for first batch of ngclient pcs if ( $serverlist[0] eq "conserver.servers:"){ @reversed=reverse @serverlist; $#reversed--; @serverlist=@reversed } else { $serverlist[0] =~ s/servers=//; } print "Scanning servers for console, please wait\n"; if ($serverlist[0] eq ""){ print "could not find any servers to check\n"; exit 1; } }else { print "Can't find $qxprof Using lcfg NIS map\n"; @serverlist=split /\s+/,`/usr/bin/ypmatch *.conserver.servers lcfg`; } if ($host eq $allservers ){ #get list of all servers print "servers are:@serverlist\n"; foreach $console_server (@serverlist) { chomp($console_server); print "Hosts connected to $console_server.\n"; if (($signo = system($ssh,"-t","$console_server","/usr/bin/console -M localhost $args"))&= 127) { die "program killed by signal $signo\n"; } } } else { #get host to connect to eval {$console_server=get_console($host, @serverlist) }; if ($@ && $@ =~ /get_console/) { print"Cannot determine console server because:\n"; ($filler, $error, $filler) = split /^/m, $@, 3; print $error; print "Terminating\n"; exit; } print "connecting to $host on $console_server\n"; if (($signo = system($ssh,"-t","$console_server","/usr/bin/console -M localhost $args $host")) &= 127) { die "program killed by signal $signo\n"; } } --------------090706040005060000060602-- From bryan@stansell.org Thu Apr 3 10:49:14 2003 Received: from underdog.stansell.org (localhost [127.0.0.1]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h33InDKK004086 for ; Thu, 3 Apr 2003 10:49:13 -0800 (PST) Received: (from bryan@localhost) by underdog.stansell.org (8.12.9/8.12.9/Submit) id h33InDtp004085 for users@conserver.com; Thu, 3 Apr 2003 10:49:13 -0800 (PST) Date: Thu, 3 Apr 2003 10:49:13 -0800 From: Bryan Stansell To: users@conserver.com Message-ID: <20030403184913.GA3942@underdog.stansell.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: openssl-0.9.7a vs conserver-7.2.6 X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 18:49:15 -0000 i just upgraded to openssl-0.9.7a and found that conserver-7.2.6 won't compile now (the client, specifically). i'm on solaris 8, but this may apply to others as well. i get: In file included from ../compat.h:169, from console.c:48: /usr/include/crypt.h:22: parse error before '(' token /usr/include/crypt.h:22: parse error before "const" the fix is to rearrange the #includes in console/console.c. move the openssl includes down a few lines so that it's below version.h: #include #if HAVE_OPENSSL #include #include #endif just wanted to warn folks if you see something similar. 7.2.7 will have this fix. Bryan From bryan@stansell.org Wed Apr 9 08:40:07 2003 Received: from underdog.stansell.org (localhost [127.0.0.1]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h39Fe7KK029506; Wed, 9 Apr 2003 08:40:07 -0700 (PDT) Received: (from bryan@localhost) by underdog.stansell.org (8.12.9/8.12.9/Submit) id h39Fe7sQ029505; Wed, 9 Apr 2003 08:40:07 -0700 (PDT) Date: Wed, 9 Apr 2003 08:40:07 -0700 From: Bryan Stansell To: announce@conserver.com, users@conserver.com Message-ID: <20030409154007.GA29468@underdog.stansell.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: conserver-7.2.7 is available X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2003 15:40:08 -0000 There are quite an array of changes in 7.2.7. None of it was much of a major rewite, but key pieces of code did change to fix bugs and add functionality. As with every release, I have my fingers crossed hoping I didn't break something - let me know if I did. Here's the complete list of changes for you to look at: version 7.2.7 (Apr 9, 2003): - added test suite ('make test') for basic client/server communication tests - changed configure script to provide better checking of options, hp-ux specifics, and functions - console names are no longer case-sensitive - fixed case-sensitive DNS name comparisons - reported by Peter Chubb via Jorgen Hagg - added dmalloc and openssl version numbers to -V output - reordered includes for openssl-0.9.7a compatibility - conserver.rc looks at pidfile to find the master pid - suggested by Petter Reinholdtsen - misplaced code regarding --with-regex - patch by Andreas Wrede - added password support for HP-UX trusted systems - immense help by Greg Brown - potential SIGUSR1 bug where cached terminal server availability wasn't being cleared correctly - reported by Dave Stuit - server is now more forgiving about errors instead of just giving up and shutting everything down - consoles that have trouble coming up (and are forced down) now log when they come back up - suggested by Dave Stuit Bryan Stansell From hanksdc@about-inc.com Fri Apr 18 09:49:16 2003 Received: from xwing.primedia.com (xwing.primedia.com [198.31.57.30]) by underdog.stansell.org (8.12.9/8.12.9) with SMTP id h3IGnFKK002606 for ; Fri, 18 Apr 2003 09:49:15 -0700 (PDT) Received: (qmail 20411 invoked by uid 0); 18 Apr 2003 16:46:26 -0000 Received: from hanksdc@about-inc.com by xwing.primedia.com by uid 1003 with qmail-scanner-1.16 (spamassassin: 2.50. Clear:. Processed in 0.058609 secs); 18 Apr 2003 16:46:26 -0000 Received: from unknown (HELO prm-nyc-bh2.1440Resource.Corp.About.Com) (10.176.1.163) by 0 with SMTP; 18 Apr 2003 16:46:26 -0000 Received: by prm-nyc-bh2.1440Resource.Corp.About.Com with Internet Mail Service (5.5.2653.19) id ; Fri, 18 Apr 2003 12:49:14 -0400 Received: from [10.11.1.145] (10.11.1.145 [10.11.1.145]) by prm-ut-ex1.1440Resource.Corp.About.Com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 2VS8G7YY; Fri, 18 Apr 2003 10:49:05 -0600 Date: Fri, 18 Apr 2003 10:49:18 -0600 (MDT) From: Daniel Hanks X-X-Sender: hanksdc@localhost.localdomain To: users@conserver.com Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Port aliases X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2003 16:49:17 -0000 Hi there, Just found conserver yesterday, have it built and running. It's fabulous so far, but I have just run into one issue. I'm using conserver to serve up serial console sessions from our console host. I have found that I run into problems however, if I have more than two lines in conserver.cf that correspond to the same serial port. For example, if I have the following: host1:/dev/ttyD001:9600p:/dev/null: host1_alias1:/dev/ttyD001:9600p:/dev/null: host1_alias2:/dev/ttyD001:9600p:/dev/null: Trying to make a serial connection to this host via conserver results in lines like this going to the log: [Fri Apr 18 09:29:35 2003] conserver (30590): ERROR: [host1] lost carrier (/dev/ttyD003) [Fri Apr 18 09:29:35 2003] conserver (30590): [host1] automatic reinitialization Is having more than one line corresponding to a port possible? Thanks for any input. -- Dan ======================================================================== Daniel Hanks - Systems/Database Administrator About Inc., Web Services Division ======================================================================== From bryan@stansell.org Fri Apr 18 14:01:51 2003 Received: from underdog.stansell.org (localhost [127.0.0.1]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3IL1pKK003104 for ; Fri, 18 Apr 2003 14:01:51 -0700 (PDT) Received: (from bryan@localhost) by underdog.stansell.org (8.12.9/8.12.9/Submit) id h3IL1pqY003103 for users@conserver.com; Fri, 18 Apr 2003 14:01:51 -0700 (PDT) Date: Fri, 18 Apr 2003 14:01:51 -0700 From: Bryan Stansell To: users@conserver.com Message-ID: <20030418210151.GA3054@underdog.stansell.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Subject: Re: Port aliases X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2003 21:01:52 -0000 nope, every console entry in the cf file is opened and managed, so if you point at the same device file or socket on a terminal server, whichever console happens to come up first will grab the port and the others will fail. i'm kinda wondering, why do you want to reference the same port more than once? is it just so folks can say 'console host1' and 'console host1_alias1' and get the same console? if that's it, the idea is on the TODO list (see the TODO file for the full list). if not, what are you trying to accomplish? glad to hear things seem good aside from this. Bryan On Fri, Apr 18, 2003 at 10:49:18AM -0600, Daniel Hanks wrote: > Hi there, > > Just found conserver yesterday, have it built and running. It's > fabulous so far, but I have just run into one issue. I'm using > conserver to serve up serial console sessions from our console host. I > have found that I run into problems however, if I have more than two > lines in conserver.cf that correspond to the same serial port. For > example, if I have the following: > > host1:/dev/ttyD001:9600p:/dev/null: > host1_alias1:/dev/ttyD001:9600p:/dev/null: > host1_alias2:/dev/ttyD001:9600p:/dev/null: > > Trying to make a serial connection to this host via conserver results in lines like this going to the log: > > [Fri Apr 18 09:29:35 2003] conserver (30590): ERROR: [host1] lost carrier (/dev/ttyD003) > [Fri Apr 18 09:29:35 2003] conserver (30590): [host1] automatic reinitialization > > Is having more than one line corresponding to a port possible? > > Thanks for any input. > > -- Dan > ======================================================================== > Daniel Hanks - Systems/Database Administrator > About Inc., Web Services Division > ======================================================================== From hanksdc@about-inc.com Fri Apr 18 14:58:32 2003 Received: from mx2.about-inc.com ([63.108.194.22]) by underdog.stansell.org (8.12.9/8.12.9) with SMTP id h3ILwVKK003200 for ; Fri, 18 Apr 2003 14:58:32 -0700 (PDT) Received: (qmail 15663 invoked by uid 85); 18 Apr 2003 15:56:05 -0000 Received: from hanksdc@about-inc.com by mx2.about-inc.com with qmail-scanner-0.96 (. Clean. Processed in 0.595228 secs); 18 Apr 2003 15:56:05 -0000 Received: from unknown (HELO prm-nyc-mxbh1.1440Resource.Corp.About.Com) (10.4.2.121) by 0 with SMTP; 18 Apr 2003 15:56:04 -0000 Received: by prm-nyc-mxbh1.1440Resource.Corp.About.Com with Internet Mail Service (5.5.2653.19) id <2VXQGSAG>; Fri, 18 Apr 2003 17:58:29 -0400 Received: from [10.11.1.145] (10.11.1.145 [10.11.1.145]) by prm-ut-ex1.1440Resource.Corp.About.Com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 2VS8HBB2; Fri, 18 Apr 2003 15:58:23 -0600 From: "Hanks, Dan" To: Bryan Stansell Date: Fri, 18 Apr 2003 15:58:36 -0600 (MDT) X-X-Sender: hanksdc@localhost.localdomain In-Reply-To: <20030418210151.GA3054@underdog.stansell.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: users@conserver.com Subject: Re: Port aliases X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2003 21:58:33 -0000 On Fri, 18 Apr 2003, Bryan Stansell wrote: > nope, every console entry in the cf file is opened and managed, so if > you point at the same device file or socket on a terminal server, > whichever console happens to come up first will grab the port and the > others will fail. Ok, figured as much. > > i'm kinda wondering, why do you want to reference the same port more > than once? is it just so folks can say 'console host1' and 'console > host1_alias1' and get the same console? if that's it, the idea is on > the TODO list (see the TODO file for the full list). if not, what are > you trying to accomplish? > Yeah, basically. We manage upwards of 100 boxes. Sometimes it's nice to be able to refer to them by hostname (www.foo.com), sometimes it's nice to refer to them by their physical location (r1m2 (rack 1, machine 2)), and sometimes it's nice to refer to them by the serial port number that connects to them (such as when we're installing them and they don't have a hostname yet...). Just for convenience sake (kinda like 'views'). It would just be nice to be able to refer to a given port by more than one name. > glad to hear things seem good aside from this. > Very pleased so far. -- Dan ======================================================================== Daniel Hanks - Systems/Database Administrator About Inc., Web Services Division ======================================================================== From cfowler@outpostsentinel.com Mon Apr 21 19:31:00 2003 Received: from www.outpostsentinel.com (66-23-198-138.clients.speedfactory.net [66.23.198.138]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3M2Uxwl000306 for ; Mon, 21 Apr 2003 19:31:00 -0700 (PDT) Received: from [192.168.1.7] (skylab.outpostsentinel.com [127.0.0.1]) by www.outpostsentinel.com (8.11.6/8.11.6) with ESMTP id h3LMOhV13616 for ; Mon, 21 Apr 2003 18:24:44 -0400 From: Chris Fowler To: users@conserver.com Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 21 Apr 2003 18:28:43 -0400 Message-Id: <1050964125.2159.46.camel@devel> Mime-Version: 1.0 Subject: ConsoleWorks X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2003 02:31:01 -0000 Is anyone on the list using TDI ConsoleWorks and can give a slight review? We have a client that is looking on integrating our hardware plus TDI. Thanks, Chris From brandon.a.saunders.1@ohio.edu Thu Apr 24 12:01:20 2003 Received: from oak1a.cats.ohiou.edu (oak.cats.ohiou.edu [132.235.8.44]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3OJ1Htn018013 for ; Thu, 24 Apr 2003 12:01:20 -0700 (PDT) Received: from legos.cns.ohiou.edu (legos.cns.ohiou.edu [132.235.197.118]) (authenticated bits=0)h3OIkHhr1548581 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Thu, 24 Apr 2003 14:46:17 -0400 (EDT) Date: Thu, 24 Apr 2003 14:46:15 -0400 From: Brandon Saunders To: ConServer Users Mailing List Message-ID: <9780000.1051209975@legos.cns.ohoiu.edu> In-Reply-To: References: <356200000.1045257303@legos.cns.ohoiu.edu> X-Mailer: Mulberry/3.0.3 (Linux/x86) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="==========1691542778==========" Subject: Re: Hangup command X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2003 19:01:21 -0000 --==========1691542778========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I have finally gotten back around to this problem. Thanks to those who=20 responded to my original message, the comments were helpful. I have found that the open and close will work, but only if I manually set=20 the hupcl option with stty. Conserv appears to be rewriting the stty=20 config on each open and does not set hupcl. Does anyone have any=20 suggestions for making that change permanent? Thank You Brandon Saunders Senior Network Engineer Ohio University Communication Network Services Email: brandon.a.saunders.1@ohiou.edu --On Friday, February 14, 2003 04:55:33 PM -0500 "Greg A. Woods"=20 wrote: > [ On Friday, February 14, 2003 at 16:15:03 (-0500), Brandon Saunders > wrote: ] >> Subject: Hangup command >> >> I have a piece of telephone equipment that I have hooked up to my >> conserver which needs conserver to close (hangup) the serial interface >> when the user logs out. > > You probably can't easily do it automatically, but yes from the console > client you can "down a console" (^Ecd). IIRC that should close the TTY. > > When someone re-connects I think they'll have to "(re)open the tty and > log file" too of course... > >> I have scoured through the man pages and cannot find anything. >> I have tried sending the down command and then re-opening the >> connection, but that is not producing the signaling needed by the >> device to terminate the shell that it operates. > > Well in that case you have a problem with the (default?) STTY settings > for the port and/or hardware wiring for that port. Does it work > correctly if you kill conserver and then use "cu" to connect to the port? > > Closing a TTY on a unix-like system will normally do the right thing, > assuming the port is configured properly and the wiring is done > correctly. > > On some unix-like systems, such as NetBSD, it's important to have the > correct default TTY flags set for the port on system boot in order to > ensure the correct signalling will be generated by the tty driver. See > ttyflags(8) and ttys(5) on a NetBSD system, for example. > > -- > Greg A. Woods > > +1 416 218-0098; ; > Planix, Inc. ; VE3TCP; Secrets of > the Weird > _______________________________________________ > users mailing list > users@conserver.com > https://www.conserver.com/mailman/listinfo/users --==========1691542778========== Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+qDD3/JU6IoYGTd0RAg+XAJ47NzLPebAxbZHvrH0MbGY9n20R8ACfSl++ URx2yeztU3jp5LtVe0ovlaQ= =Ta/1 -----END PGP SIGNATURE----- --==========1691542778==========-- From cfowler@outpostsentinel.com Thu Apr 24 12:06:15 2003 Received: from www.outpostsentinel.com (66-23-198-138.clients.speedfactory.net [66.23.198.138]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3OJ6Etn018059 for ; Thu, 24 Apr 2003 12:06:15 -0700 (PDT) Received: from [192.168.2.8] (skylab.outpostsentinel.com [127.0.0.1]) by www.outpostsentinel.com (8.11.6/8.11.6) with ESMTP id h3OJ3vI18582; Thu, 24 Apr 2003 15:03:57 -0400 From: Christopher Fowler To: Brandon Saunders In-Reply-To: <9780000.1051209975@legos.cns.ohoiu.edu> References: <356200000.1045257303@legos.cns.ohoiu.edu> <9780000.1051209975@legos.cns.ohoiu.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 24 Apr 2003 15:08:03 -0400 Message-Id: <1051211284.29856.76.camel@cfowler.outpostsentinel.com> Mime-Version: 1.0 cc: ConServer Users Mailing List Subject: Re: Hangup command X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2003 19:06:16 -0000 Modify the source On Thu, 2003-04-24 at 14:46, Brandon Saunders wrote: > I have finally gotten back around to this problem. Thanks to those who > responded to my original message, the comments were helpful. > > I have found that the open and close will work, but only if I manually set > the hupcl option with stty. Conserv appears to be rewriting the stty > config on each open and does not set hupcl. Does anyone have any > suggestions for making that change permanent? > > Thank You > > Brandon Saunders > Senior Network Engineer > Ohio University Communication Network Services > Email: brandon.a.saunders.1@ohiou.edu > > > --On Friday, February 14, 2003 04:55:33 PM -0500 "Greg A. Woods" > wrote: > > > [ On Friday, February 14, 2003 at 16:15:03 (-0500), Brandon Saunders > > wrote: ] > >> Subject: Hangup command > >> > >> I have a piece of telephone equipment that I have hooked up to my > >> conserver which needs conserver to close (hangup) the serial interface > >> when the user logs out. > > > > You probably can't easily do it automatically, but yes from the console > > client you can "down a console" (^Ecd). IIRC that should close the TTY. > > > > When someone re-connects I think they'll have to "(re)open the tty and > > log file" too of course... > > > >> I have scoured through the man pages and cannot find anything. > >> I have tried sending the down command and then re-opening the > >> connection, but that is not producing the signaling needed by the > >> device to terminate the shell that it operates. > > > > Well in that case you have a problem with the (default?) STTY settings > > for the port and/or hardware wiring for that port. Does it work > > correctly if you kill conserver and then use "cu" to connect to the port? > > > > Closing a TTY on a unix-like system will normally do the right thing, > > assuming the port is configured properly and the wiring is done > > correctly. > > > > On some unix-like systems, such as NetBSD, it's important to have the > > correct default TTY flags set for the port on system boot in order to > > ensure the correct signalling will be generated by the tty driver. See > > ttyflags(8) and ttys(5) on a NetBSD system, for example. > > > > -- > > Greg A. Woods > > > > +1 416 218-0098; ; > > Planix, Inc. ; VE3TCP; Secrets of > > the Weird > > _______________________________________________ > > users mailing list > > users@conserver.com > > https://www.conserver.com/mailman/listinfo/users > > > > ---- > > _______________________________________________ > users mailing list > users@conserver.com > https://www.conserver.com/mailman/listinfo/users From bryan@stansell.org Thu Apr 24 14:20:07 2003 Received: from underdog.stansell.org (localhost [127.0.0.1]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3OLK7tn018505 for ; Thu, 24 Apr 2003 14:20:07 -0700 (PDT) Received: (from bryan@localhost) by underdog.stansell.org (8.12.9/8.12.9/Submit) id h3OLK7aW018504 for users@conserver.com; Thu, 24 Apr 2003 14:20:07 -0700 (PDT) Date: Thu, 24 Apr 2003 14:20:07 -0700 From: Bryan Stansell To: Conserver Users Mailing List Message-ID: <20030424212007.GD18276@underdog.stansell.org> References: <356200000.1045257303@legos.cns.ohoiu.edu> <9780000.1051209975@legos.cns.ohoiu.edu> <1051211284.29856.76.camel@cfowler.outpostsentinel.com> <356200000.1045257303@legos.cns.ohoiu.edu> <9780000.1051209975@legos.cns.ohoiu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1051211284.29856.76.camel@cfowler.outpostsentinel.com> <9780000.1051209975@legos.cns.ohoiu.edu> User-Agent: Mutt/1.4.1i Subject: Re: Hangup command X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2003 21:20:08 -0000 since that was less than helpful, i'll mention that to actually modify the source all you should have to do is edit conserver/consent.c and "fix" the parity[] array. basically, you have a list of {symbol, flags that get set, flags that get cleared} tuples. just add 'HUPCL' to the 'flags that get set' part of any symbols you'd like to use. so, as an example, you'll see: {'n', CS8, 0} you'll want to make that {'n', CS8 | HUPCL, 0} and you'll want to do that for the other ones in the list as well, probably. that list is really two lists, one for termios systems and one for termio systems. this pointer should work for the termios systems and part of the list (the #if HAVE_TERMIOS_H section). i haven't looked into the termio piece since i'm assuming most folks have termios-based systems. and if you really wanted to get crazy you could create a new symbol and use that in the config file for consoles you want to have HUPCL take effect and the original symbols for non-HUPCL consoles. anyway, i hope this is enough to get you going and have things work. if you run into problems or have questions, feel free to post to the list or send me email directly. Bryan On Thu, Apr 24, 2003 at 03:08:03PM -0400, Christopher Fowler wrote: > Modify the source > > > On Thu, 2003-04-24 at 14:46, Brandon Saunders wrote: > > I have finally gotten back around to this problem. Thanks to those who > > responded to my original message, the comments were helpful. > > > > I have found that the open and close will work, but only if I manually set > > the hupcl option with stty. Conserv appears to be rewriting the stty > > config on each open and does not set hupcl. Does anyone have any > > suggestions for making that change permanent? > > > > Thank You > > > > Brandon Saunders > > Senior Network Engineer > > Ohio University Communication Network Services > > Email: brandon.a.saunders.1@ohiou.edu From brandon.a.saunders.1@ohio.edu Thu Apr 24 16:43:12 2003 Received: from oak1a.cats.ohiou.edu (oak.cats.ohiou.edu [132.235.8.44]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3ONhBtn018805; Thu, 24 Apr 2003 16:43:11 -0700 (PDT) Received: from BAS_LAPTOP (dhcp-206-160.cns.ohiou.edu [132.235.206.160]) (authenticated bits=0)h3ONgPhr1516814verify=NOT); Thu, 24 Apr 2003 19:42:26 -0400 (EDT) Date: Thu, 24 Apr 2003 19:42:16 -0400 From: Brandon Saunders To: Bryan Stansell , Conserver Users Mailing List Message-ID: <319649.1051213336@BAS_LAPTOP> In-Reply-To: <20030424212007.GD18276@underdog.stansell.org> References: <356200000.1045257303@legos.cns.ohoiu.edu> <9780000.1051209975@legos.cns.ohoiu.edu> <1051211284.29856.76.camel@cfowler.outpostsentinel.com> <356200000.1045257303@legos.cns.ohoiu.edu> <9780000.1051209975@legos.cns.ohoiu.edu> <20030424212007.GD18276@underdog.stansell.org> X-Mailer: Mulberry/3.0.3 (Win32) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="==========00339603==========" X-MailScanner-VirusCheck: Found to be clean X-MailScanner-Information: http://www.cns.ohiou.edu/email/spam-virus.html X-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.7, required 5, INVALID_MSGID, IN_REP_TO, PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT, REFERENCES, SPAM_PHRASE_03_05) Subject: Re: Hangup command X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2003 23:43:12 -0000 --==========00339603========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Brian, Thank you very much. Brandon --On Thursday, April 24, 2003 2:20 PM -0700 Bryan Stansell=20 wrote: > since that was less than helpful, i'll mention that to actually modify > the source all you should have to do is edit conserver/consent.c and > "fix" the parity[] array. basically, you have a list of {symbol, flags > that get set, flags that get cleared} tuples. just add 'HUPCL' to the > 'flags that get set' part of any symbols you'd like to use. so, as an > example, you'll see: > > {'n', CS8, 0} > > you'll want to make that > > {'n', CS8 | HUPCL, 0} > > and you'll want to do that for the other ones in the list as well, > probably. that list is really two lists, one for termios systems and > one for termio systems. this pointer should work for the termios > systems and part of the list (the #if HAVE_TERMIOS_H section). i > haven't looked into the termio piece since i'm assuming most folks have > termios-based systems. > > and if you really wanted to get crazy you could create a new symbol and > use that in the config file for consoles you want to have HUPCL take > effect and the original symbols for non-HUPCL consoles. anyway, i hope > this is enough to get you going and have things work. if you run into > problems or have questions, feel free to post to the list or send me > email directly. > > Bryan > > On Thu, Apr 24, 2003 at 03:08:03PM -0400, Christopher Fowler wrote: >> Modify the source >> >> >> On Thu, 2003-04-24 at 14:46, Brandon Saunders wrote: >> > I have finally gotten back around to this problem. Thanks to those >> > who responded to my original message, the comments were helpful. >> > >> > I have found that the open and close will work, but only if I manually >> > set the hupcl option with stty. Conserv appears to be rewriting the >> > stty config on each open and does not set hupcl. Does anyone have >> > any suggestions for making that change permanent? >> > >> > Thank You >> > >> > Brandon Saunders >> > Senior Network Engineer >> > Ohio University Communication Network Services >> > Email: brandon.a.saunders.1@ohiou.edu > _______________________________________________ > users mailing list > users@conserver.com > https://www.conserver.com/mailman/listinfo/users --==========00339603========== Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: Mulberry PGP Plugin v2.0 Comment: processed by Mulberry PGP Plugin iQA/AwUBPqh2XPyVOiKGBk3dEQKaOgCfUxICBAb+0/E96R618NTFOsQ3FqMAn0+t QANYojTnPDSvlKQRDqbwwMwl =7rUY -----END PGP SIGNATURE----- --==========00339603==========-- From cfowler@outpostsentinel.com Fri Apr 25 13:01:37 2003 Received: from www.outpostsentinel.com (66-23-198-138.clients.speedfactory.net [66.23.198.138]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3PK1atn024505 for ; Fri, 25 Apr 2003 13:01:36 -0700 (PDT) Received: from [192.168.2.8] (skylab.outpostsentinel.com [127.0.0.1]) by www.outpostsentinel.com (8.11.6/8.11.6) with ESMTP id h3PJxJT20374 for ; Fri, 25 Apr 2003 15:59:19 -0400 From: Christopher Fowler To: users@conserver.com Content-Type: multipart/mixed; boundary="=-tCcbBQnUSE2weEPLFMkb" X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 25 Apr 2003 16:03:37 -0400 Message-Id: <1051301018.13972.68.camel@cfowler.outpostsentinel.com> Mime-Version: 1.0 Subject: gift X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2003 20:01:38 -0000 --=-tCcbBQnUSE2weEPLFMkb Content-Type: text/plain Content-Transfer-Encoding: 7bit Don't say I don't give anything back :) Someone mod this to support all command line options. And clean it up a bit. --=-tCcbBQnUSE2weEPLFMkb Content-Disposition: attachment; filename=console.pl Content-Transfer-Encoding: quoted-printable Content-Type: text/x-perl; name=console.pl; charset=ISO-8859-1 #!/usr/bin/perl sub cpanMirrorSpeak { my $mod =3D $_[0]; die < -u \n"; } sub console_pArgs { console_syntax() unless (getopts("s:u:h")); console_syntax() if not $Getopt::Std::opt_s; console_syntax() if not $Getopt::Std::opt_u; console_syntax() if $Getopt::Std::opt_h; console_syntax() if not @ARGV; $USER =3D $Getopt::Std::opt_u; $SERVER =3D $Getopt::Std::opt_s; $CONSOLE =3D $ARGV[0]; return; } # # Implement enough of the portcommander protocol # to attach to the required console (or die trying), # return the live socket. # sub connect_console { my $SERVER =3D $_[0]; my $CONSOLE =3D $_[1]; my $USER =3D $_[2]; my $PASS =3D $_[3]; # # Create the socket to the main server # We'll recoeve a port number then connect to secondary # server for console data # my $sock =3D new IO::Socket::INET (PeerAddr =3D> $SERVER, PeerPort =3D> 782, Proto =3D> 'tcp',) or=20 return -1; =09 # We do not want buffered output to socket $sock->autoflush(); ($_ =3D <$sock>) ; return -1 unless /ok/ ; # Specify console name print $sock "call:$CONSOLE\n"; # Only valid reply is a port number, # stick that in $1. ($_ =3D <$sock>); return -1 unless /^(\d+)/ ; close($sock); $sock =3D new IO::Socket::INET (PeerAddr =3D> $SERVER, PeerPort =3D> $1, Proto =3D> 'tcp',) or return -1; $sock->autoflush(); setsockopt($sock, SOL_SOCKET, SO_KEEPALIVE, 1); ($_ =3D <$sock>) ; return unless /ok/ ; # tell server we wish to log in print $sock $CMD_LOGIN; # TODO: test reply. ($_ =3D <$sock>) ; # specify user name print $sock "$USER\n"; ($_ =3D <$sock>) ; if (/^host:/) { print $sock "$CONSOLE\n"; #TODO #validate we are connected #to the console ($_ =3D <$sock>) ; } if (/^passwd:/) { print "Enter $USER\@$SERVER\'s password: "; $PASS =3D getPassword(); print $sock "$PASS\n"; ($_ =3D <$sock>) ; return -1 if (/Sorry/) ; } return $sock ; } sub getPassword { \*STDOUT->flush(); \*STDIN->autoflush(); my $t1 =3D POSIX::Termios->new; my $t2 =3D POSIX::Termios->new; $t1->getattr(); $t2->getattr(); my $c_lflag =3D $t1->getlflag(); $t1->setlflag($c_lflag &=3D ~&POSIX::ECHO); $t1->setattr( 0, &POSIX::TCSANOW ); my $pass; $pass =3D ; chomp($pass); $t2->setattr( 0, &POSIX::TCSANOW ); print "\n"; return $pass; } # Main # my $cCon; console_pArgs(); if(( $cCon =3D connect_console($SERVER, $CONSOLE, $USER, "password")) =3D= =3D -1) { die "Could not connect to console!\n"; } print "[Enter `^Ec?' for help]\n"; \*STDOUT->flush(); sub cfmakeraw { my $tty =3D $_[0]; $tty->getattr(); my $c_iflag =3D $tty->getiflag(); my $c_oflag =3D $tty->getoflag(); my $c_lflag =3D $tty->getlflag(); my $c_cflag =3D $tty->getcflag(); $tty->setiflag($c_iflag &=3D ~&POSIX::IGNBRK); $tty->setiflag($c_iflag &=3D ~&POSIX::BRKINT); $tty->setiflag($c_iflag &=3D ~&POSIX::PARMRK); $tty->setiflag($c_iflag &=3D ~&POSIX::ISTRIP); $tty->setiflag($c_iflag &=3D ~&POSIX::INLCR); $tty->setiflag($c_iflag &=3D ~&POSIX::IGNCR); $tty->setiflag($c_iflag &=3D ~&POSIX::ICRNL); $tty->setiflag($c_iflag &=3D ~&POSIX::IXON); $tty->setoflag($c_oflag &=3D ~&POSIX::OPOST); $tty->setlflag($c_lflag &=3D ~&POSIX::ECHO); $tty->setlflag($c_lflag &=3D ~&POSIX::ECHONL); $tty->setlflag($c_lflag &=3D ~&POSIX::ICANON); $tty->setlflag($c_lflag &=3D ~&POSIX::ISIG); $tty->setlflag($c_lflag &=3D ~&POSIX::IEXTEN); $tty->setcflag($c_cflag &=3D ~&POSIX::CSIZE); $tty->setcflag($c_cflag &=3D ~&POSIX::PARENB); $tty->setcflag($c_cflag | &POSIX::CS8); } my $termios =3D POSIX::Termios->new; my $old =3D POSIX::Termios->new; $termios->getattr(); $old->getattr(); cfmakeraw($termios); $termios->setattr( 0, &POSIX::TCSANOW ); #cfmakeraw sets the terminal attributes as follows: #termios_p->c_iflag &=3D ~(IGNBRK|BRKINT|PARMRK|ISTRIP #|INLCR|IGNCR|ICRNL|IXON); #termios_p->c_oflag &=3D ~OPOST; #termios_p->c_lflag &=3D ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); #termios_p->c_cflag &=3D ~(CSIZE|PARENB); #termios_p->c_cflag |=3D CS8; my $fdset =3D new IO::Select; my $wfdset =3D new IO::Select; my $r_ready; my $w_ready; my $error; my $timeout =3D 30; my $err; $fdset->add($cCon); $fdset->add(\*STDIN); while (1) { SELECT: ($r_ready, $w_ready, $error) =3D=20 IO::Select->select($fdset, $wfdset, $err, $timeout); # If nothing has occured, we have timedout if($r_ready eq "") { goto SELECT; } foreach my $ready (@$r_ready) { my $data; if($ready =3D=3D \*STDIN) { sysread($ready, $data, 1); print $cCon $data; }=20 if($ready =3D=3D $cCon) { if(sysread($ready, $data, 1) =3D=3D 0) { $old->setattr( 1, &POSIX::TCSANOW ); exit(0); } print $data; \*STDOUT->flush(); } } } --=-tCcbBQnUSE2weEPLFMkb-- From cfowler@outpostsentinel.com Fri Apr 25 13:08:58 2003 Received: from www.outpostsentinel.com (66-23-198-138.clients.speedfactory.net [66.23.198.138]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3PK8vtn024549 for ; Fri, 25 Apr 2003 13:08:58 -0700 (PDT) Received: from [192.168.2.8] (skylab.outpostsentinel.com [127.0.0.1]) by www.outpostsentinel.com (8.11.6/8.11.6) with ESMTP id h3PK6eT20387; Fri, 25 Apr 2003 16:06:40 -0400 From: Christopher Fowler To: Christopher Fowler In-Reply-To: <1051301018.13972.68.camel@cfowler.outpostsentinel.com> References: <1051301018.13972.68.camel@cfowler.outpostsentinel.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 25 Apr 2003 16:10:59 -0400 Message-Id: <1051301459.13973.70.camel@cfowler.outpostsentinel.com> Mime-Version: 1.0 cc: users@conserver.com Subject: Re: gift X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2003 20:08:59 -0000 It also needs WIN32 support POSIX::Termios is not supported under winbloze. Chris On Fri, 2003-04-25 at 16:03, Christopher Fowler wrote: > Don't say I don't give anything back :) > > Someone mod this to support all command line options. And clean it > up a bit. > > > > > ---- > > #!/usr/bin/perl > > > sub cpanMirrorSpeak { > my $mod = $_[0]; > die < You don't have $mod installed. Please install a copy from your > favourite CPAN mirror. > > perl -MCPAN -e 'install( "$mod" )' > EOT > } > > eval { require POSIX; }; > if( $@ ) { > cpanMirrorSpeak("POSIX"); > } > > eval { require IO::Socket; }; > if( $@ ) { > cpanMirrorSpeak("IO::Socket"); > } > > eval { require Getopt::Std; }; > if( $@ ) { > cpanMirrorSpeak("Getopt::Std"); > } > > eval { require IO::Select; }; > if( $@ ) { > cpanMirrorSpeak("IO::Select"); > } > > use Getopt::Std; > use POSIX; > use IO::Socket; > use IO::Select; > use strict; > > # Static variables > my $USER; > my $SERVER; > my $CONSOLE; > > > # Commands > my $CMD_LOGIN = "c;"; > > > sub console_syntax { > die "$0 [-h] -s -u \n"; > } > > sub console_pArgs { > console_syntax() unless (getopts("s:u:h")); > console_syntax() if not $Getopt::Std::opt_s; > console_syntax() if not $Getopt::Std::opt_u; > console_syntax() if $Getopt::Std::opt_h; > console_syntax() if not @ARGV; > > $USER = $Getopt::Std::opt_u; > $SERVER = $Getopt::Std::opt_s; > $CONSOLE = $ARGV[0]; > > return; > } > > # > # Implement enough of the portcommander protocol > # to attach to the required console (or die trying), > # return the live socket. > # > sub connect_console { > > my $SERVER = $_[0]; > my $CONSOLE = $_[1]; > my $USER = $_[2]; > my $PASS = $_[3]; > # > # Create the socket to the main server > # We'll recoeve a port number then connect to secondary > # server for console data > # > my $sock = new IO::Socket::INET (PeerAddr => $SERVER, > PeerPort => 782, > Proto => 'tcp',) or > return -1; > > # We do not want buffered output to socket > $sock->autoflush(); > > ($_ = <$sock>) ; > return -1 unless /ok/ ; > > # Specify console name > print $sock "call:$CONSOLE\n"; > > # Only valid reply is a port number, > # stick that in $1. > ($_ = <$sock>); > return -1 unless /^(\d+)/ ; > > close($sock); > > > $sock = new IO::Socket::INET (PeerAddr => $SERVER, > PeerPort => $1, > Proto => 'tcp',) or > return -1; > > $sock->autoflush(); > setsockopt($sock, SOL_SOCKET, SO_KEEPALIVE, 1); > > ($_ = <$sock>) ; > return unless /ok/ ; > > # tell server we wish to log in > print $sock $CMD_LOGIN; > > # TODO: test reply. > ($_ = <$sock>) ; > > # specify user name > print $sock "$USER\n"; > ($_ = <$sock>) ; > > if (/^host:/) { > print $sock "$CONSOLE\n"; > > #TODO > #validate we are connected > #to the console > ($_ = <$sock>) ; > } > > if (/^passwd:/) { > print "Enter $USER\@$SERVER\'s password: "; > $PASS = getPassword(); > print $sock "$PASS\n"; > > ($_ = <$sock>) ; > return -1 if (/Sorry/) ; > } > > return $sock ; > } > > sub getPassword { > > \*STDOUT->flush(); > \*STDIN->autoflush(); > > my $t1 = POSIX::Termios->new; > my $t2 = POSIX::Termios->new; > $t1->getattr(); > $t2->getattr(); > > my $c_lflag = $t1->getlflag(); > $t1->setlflag($c_lflag &= ~&POSIX::ECHO); > $t1->setattr( 0, &POSIX::TCSANOW ); > > my $pass; > $pass = ; > chomp($pass); > $t2->setattr( 0, &POSIX::TCSANOW ); > > print "\n"; > > return $pass; > } > > > # Main > # > my $cCon; > > console_pArgs(); > if(( $cCon = connect_console($SERVER, $CONSOLE, $USER, "password")) == -1) { > die "Could not connect to console!\n"; > } > > print "[Enter `^Ec?' for help]\n"; > \*STDOUT->flush(); > > > > > > > > sub cfmakeraw { > my $tty = $_[0]; > $tty->getattr(); > my $c_iflag = $tty->getiflag(); > my $c_oflag = $tty->getoflag(); > my $c_lflag = $tty->getlflag(); > my $c_cflag = $tty->getcflag(); > $tty->setiflag($c_iflag &= ~&POSIX::IGNBRK); > $tty->setiflag($c_iflag &= ~&POSIX::BRKINT); > $tty->setiflag($c_iflag &= ~&POSIX::PARMRK); > $tty->setiflag($c_iflag &= ~&POSIX::ISTRIP); > $tty->setiflag($c_iflag &= ~&POSIX::INLCR); > $tty->setiflag($c_iflag &= ~&POSIX::IGNCR); > $tty->setiflag($c_iflag &= ~&POSIX::ICRNL); > $tty->setiflag($c_iflag &= ~&POSIX::IXON); > $tty->setoflag($c_oflag &= ~&POSIX::OPOST); > $tty->setlflag($c_lflag &= ~&POSIX::ECHO); > $tty->setlflag($c_lflag &= ~&POSIX::ECHONL); > $tty->setlflag($c_lflag &= ~&POSIX::ICANON); > $tty->setlflag($c_lflag &= ~&POSIX::ISIG); > $tty->setlflag($c_lflag &= ~&POSIX::IEXTEN); > $tty->setcflag($c_cflag &= ~&POSIX::CSIZE); > $tty->setcflag($c_cflag &= ~&POSIX::PARENB); > $tty->setcflag($c_cflag | &POSIX::CS8); > } > > my $termios = POSIX::Termios->new; > my $old = POSIX::Termios->new; > $termios->getattr(); > $old->getattr(); > cfmakeraw($termios); > $termios->setattr( 0, &POSIX::TCSANOW ); > > > #cfmakeraw sets the terminal attributes as follows: > #termios_p->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP > #|INLCR|IGNCR|ICRNL|IXON); > #termios_p->c_oflag &= ~OPOST; > #termios_p->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); > #termios_p->c_cflag &= ~(CSIZE|PARENB); > #termios_p->c_cflag |= CS8; > > > my $fdset = new IO::Select; > my $wfdset = new IO::Select; > my $r_ready; > my $w_ready; > my $error; > my $timeout = 30; > my $err; > > $fdset->add($cCon); > $fdset->add(\*STDIN); > > while (1) { > > SELECT: > > ($r_ready, $w_ready, $error) = > IO::Select->select($fdset, $wfdset, $err, $timeout); > > # If nothing has occured, we have timedout > if($r_ready eq "") { > goto SELECT; > } > > foreach my $ready (@$r_ready) { > my $data; > > if($ready == \*STDIN) { > sysread($ready, $data, 1); > print $cCon $data; > } > > if($ready == $cCon) { > if(sysread($ready, $data, 1) == 0) { > $old->setattr( 1, &POSIX::TCSANOW ); > exit(0); > } > print $data; > \*STDOUT->flush(); > } > } > } > > > ---- > > _______________________________________________ > users mailing list > users@conserver.com > https://www.conserver.com/mailman/listinfo/users From brandon.a.saunders.1@ohio.edu Fri Apr 25 13:24:13 2003 Received: from oak1a.cats.ohiou.edu (oak.cats.ohiou.edu [132.235.8.44]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3PKOCtn024599; Fri, 25 Apr 2003 13:24:13 -0700 (PDT) Received: from legos.cns.ohiou.edu (legos.cns.ohiou.edu [132.235.197.118]) (authenticated bits=0)h3PKMglk1378367verify=NOT); Fri, 25 Apr 2003 16:22:42 -0400 (EDT) Date: Fri, 25 Apr 2003 16:22:40 -0400 From: Brandon Saunders To: Bryan Stansell , Conserver Users Mailing List Message-ID: <27890000.1051302160@legos.cns.ohoiu.edu> In-Reply-To: <20030424212007.GD18276@underdog.stansell.org> References: <356200000.1045257303@legos.cns.ohoiu.edu> <9780000.1051209975@legos.cns.ohoiu.edu> <1051211284.29856.76.camel@cfowler.outpostsentinel.com> <356200000.1045257303@legos.cns.ohoiu.edu> <9780000.1051209975@legos.cns.ohoiu.edu> <20030424212007.GD18276@underdog.stansell.org> X-Mailer: Mulberry/3.0.3 (Linux/x86) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="==========1677710493==========" X-MailScanner-VirusCheck: Found to be clean X-MailScanner-Information: http://www.cns.ohiou.edu/email/spam-virus.html X-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.7, required 5, IN_REP_TO, PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT, REFERENCES, SPAM_PHRASE_03_05) Subject: Re: Hangup command X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2003 20:24:14 -0000 --==========1677710493========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Bryan, Thank you. I made that change and it appears to be working as you=20 indicated. Brandon --On Thursday, April 24, 2003 02:20:07 PM -0700 Bryan Stansell=20 wrote: > since that was less than helpful, i'll mention that to actually modify > the source all you should have to do is edit conserver/consent.c and > "fix" the parity[] array. basically, you have a list of {symbol, flags > that get set, flags that get cleared} tuples. just add 'HUPCL' to the > 'flags that get set' part of any symbols you'd like to use. so, as an > example, you'll see: > > {'n', CS8, 0} > > you'll want to make that > > {'n', CS8 | HUPCL, 0} > > and you'll want to do that for the other ones in the list as well, > probably. that list is really two lists, one for termios systems and > one for termio systems. this pointer should work for the termios > systems and part of the list (the #if HAVE_TERMIOS_H section). i > haven't looked into the termio piece since i'm assuming most folks have > termios-based systems. > > and if you really wanted to get crazy you could create a new symbol and > use that in the config file for consoles you want to have HUPCL take > effect and the original symbols for non-HUPCL consoles. anyway, i hope > this is enough to get you going and have things work. if you run into > problems or have questions, feel free to post to the list or send me > email directly. > > Bryan > > On Thu, Apr 24, 2003 at 03:08:03PM -0400, Christopher Fowler wrote: >> Modify the source >> >> >> On Thu, 2003-04-24 at 14:46, Brandon Saunders wrote: >> > I have finally gotten back around to this problem. Thanks to those >> > who responded to my original message, the comments were helpful. >> > >> > I have found that the open and close will work, but only if I manually >> > set the hupcl option with stty. Conserv appears to be rewriting the >> > stty config on each open and does not set hupcl. Does anyone have >> > any suggestions for making that change permanent? >> > >> > Thank You >> > >> > Brandon Saunders >> > Senior Network Engineer >> > Ohio University Communication Network Services >> > Email: brandon.a.saunders.1@ohiou.edu > _______________________________________________ > users mailing list > users@conserver.com > https://www.conserver.com/mailman/listinfo/users --==========1677710493========== Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+qZkQ/JU6IoYGTd0RAs3DAJ9kUPjXTmObHHc6X3Lse8OX+efC9ACgjCUo K7WYzI5zGyn3UGOKtiUq3HI= =siSV -----END PGP SIGNATURE----- --==========1677710493==========-- From hanksdc@about-inc.com Fri Apr 25 13:47:53 2003 Received: from prm-ut-ex1.1440Resource.Corp.About.Com (netscreen-t.aboutws.com [63.108.71.130]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3PKlqtn024666 for ; Fri, 25 Apr 2003 13:47:53 -0700 (PDT) Received: by orion.orem1.northsky.com with Internet Mail Service (5.5.2653.19) id ; Fri, 25 Apr 2003 14:47:48 -0600 Received: from [10.11.1.145] (10.11.1.145 [10.11.1.145]) by prm-ut-ex1.1440Resource.Corp.About.Com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id JS82QN77; Fri, 25 Apr 2003 14:44:34 -0600 From: "Hanks, Dan" To: users@conserver.com Date: Fri, 25 Apr 2003 14:44:20 -0600 (MDT) X-X-Sender: hanksdc@localhost.localdomain In-Reply-To: <1051301018.13972.68.camel@cfowler.outpostsentinel.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: gift X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2003 20:47:54 -0000 On 25 Apr 2003, Christopher Fowler wrote: > Don't say I don't give anything back :) > > Someone mod this to support all command line options. And clean it > up a bit. > I take it (from playing around with it a bit) that this doesn't (yet) support encryption? -- Dan ======================================================================== Daniel Hanks - Systems/Database Administrator About Inc., Web Services Division ======================================================================== From bryan@stansell.org Fri Apr 25 14:05:26 2003 Received: from underdog.stansell.org (localhost [127.0.0.1]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3PL5Qtn024755 for ; Fri, 25 Apr 2003 14:05:26 -0700 (PDT) Received: (from bryan@localhost) by underdog.stansell.org (8.12.9/8.12.9/Submit) id h3PL5Qlj024754 for users@conserver.com; Fri, 25 Apr 2003 14:05:26 -0700 (PDT) Date: Fri, 25 Apr 2003 14:05:26 -0700 From: Bryan Stansell To: Conserver Users Mailing List Message-ID: <20030425210526.GA24716@underdog.stansell.org> References: <356200000.1045257303@legos.cns.ohoiu.edu> <9780000.1051209975@legos.cns.ohoiu.edu> <1051211284.29856.76.camel@cfowler.outpostsentinel.com> <356200000.1045257303@legos.cns.ohoiu.edu> <9780000.1051209975@legos.cns.ohoiu.edu> <20030424212007.GD18276@underdog.stansell.org> <27890000.1051302160@legos.cns.ohoiu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27890000.1051302160@legos.cns.ohoiu.edu> User-Agent: Mutt/1.4.1i Subject: Re: Hangup command X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2003 21:05:27 -0000 cool. good to hear. since it worked i'm planning on integrating that functionality into the next rev of the code, so it should be a bit easier next time. ;-) Bryan On Fri, Apr 25, 2003 at 04:22:40PM -0400, Brandon Saunders wrote: > Bryan, > > Thank you. I made that change and it appears to be working as you > indicated. > > Brandon From cfowler@outpostsentinel.com Fri Apr 25 14:08:36 2003 Received: from outpostsentinel.com (66-23-198-138.clients.speedfactory.net [66.23.198.138]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3PL8Ztn024784 for ; Fri, 25 Apr 2003 14:08:36 -0700 (PDT) Received: (from cfowler@localhost) by outpostsentinel.com (8.11.6/8.11.6) id h3PLAXa01424; Fri, 25 Apr 2003 17:10:33 -0400 Date: Fri, 25 Apr 2003 17:10:33 -0400 From: Christopher Fowler To: "Hanks, Dan" Message-ID: <20030425211033.GA1398@moses.outpostsentinel.com> References: <1051301018.13972.68.camel@cfowler.outpostsentinel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i cc: users@conserver.com Subject: Re: gift X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2003 21:08:37 -0000 On Fri, Apr 25, 2003 at 02:44:20PM -0600, Hanks, Dan wrote: > I take it (from playing around with it a bit) that this doesn't (yet) support encryption? > Nope, just a simple connection. I've got on in Java too. but, I also have many utilities like this that do a lot for me in the console areana. From cfowler@outpostsentinel.com Mon Apr 28 07:38:01 2003 Received: from www.outpostsentinel.com (66-23-198-138.clients.speedfactory.net [66.23.198.138]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3SEc0tn014282 for ; Mon, 28 Apr 2003 07:38:00 -0700 (PDT) Received: from [192.168.2.8] (skylab.outpostsentinel.com [127.0.0.1]) by www.outpostsentinel.com (8.11.6/8.11.6) with ESMTP id h3SEZTp28763 for ; Mon, 28 Apr 2003 10:35:29 -0400 From: Christopher Fowler To: users@conserver.com Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 28 Apr 2003 10:40:23 -0400 Message-Id: <1051540823.2094.7.camel@cfowler.outpostsentinel.com> Mime-Version: 1.0 Subject: open client key X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 14:38:02 -0000 [cfowler@cfowler console]$ ./console -c ../contrib/client.pem -M 192.168.2.231 -l root P2 console: Encryption required by server for login when I do an strace, I never see an attempt to open the client.pem file. Am I missing something? On the server, [root@cas8]# /sbin/conserver -b783 -c /etc/server.pem conserver (96): conserver.com version 7.2.5 conserver (96): Started as `root' by `root' at Mon Apr 28 10:32:17 2003 Enter PEM pass phrase: I did not generate the key right because I can not enter the PEM passphrase everytime it is started. Thanks, Chris From slammert@panasas.com Mon Apr 28 12:09:35 2003 Received: from localhost.localdomain (gw2.panasas.com [65.194.124.178]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3SJ9Ytn014783 for ; Mon, 28 Apr 2003 12:09:34 -0700 (PDT) Received: from panasas.com (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h3SJ8lY7015377 for ; Mon, 28 Apr 2003 15:08:47 -0400 Message-ID: <3EAD7C3F.7040400@panasas.com> Date: Mon, 28 Apr 2003 15:08:47 -0400 From: Steve Lammert Organization: Panasas, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Conserver Users Mailing List Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Timeout connecting to server X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 19:09:36 -0000 We are using Conserver 7.2.7 to serve about 900 console lines on 25 Cyclades TS terminal concentrators, from a Sun Ultra 5 running Solaris 8. We had no problems at levels of 500-600 lines, but the recent expansion to 900 lines appears to have led to the following interesting behavior: After the server has been up for ten days or so, a few users begin experiencing timeouts when connecting to a small number of console lines, viz: -------------------------------------------------------- myhost$ console beta-15-1 < --- Three minutes of silence --- > console: connect: 61897@conserver: Connection timed out -------------------------------------------------------- Logging into the Conserver server, I notice a number of connections to port 61897 in CLOSE_WAIT state. These entries tend to hang around for a LONG time (e.g. days): -------------------------------------------------------------------- conserver# netstat -a|grep 61897 *.61897 *.* 0 0 32768 0 LISTEN lyell.panasas.com.61897 kinsman.2458 1 0 33304 0 ESTABLISHED lyell.panasas.com.61897 build-bsd6.1851 57920 0 33304 0 CLOSE_WAIT lyell.panasas.com.61897 build-bsd6.1855 57920 0 33304 0 CLOSE_WAIT lyell.panasas.com.61897 build-bsd6.1863 57920 0 33304 0 CLOSE_WAIT lyell.panasas.com.61897 rack-bsd2.2776 57920 0 33304 0 CLOSE_WAIT lyell.panasas.com.61897 rack-bsd2.2778 57920 0 33304 0 CLOSE_WAIT lyell.panasas.com.61897 rack-bsd2.2781 57920 0 33304 0 CLOSE_WAIT lyell.panasas.com.61897 rack-bsd2.2783 57920 0 33304 0 CLOSE_WAIT lyell.panasas.com.61897 kinsman.1984 57920 0 33304 0 CLOSE_WAIT -------------------------------------------------------------------- One also sees timeouts when using commands such as "console -x"... the list of connections pauses at a certain point, and eventually times out. It seems likely that a single Conserver daemon (out of the 55 or so that are spawned to handle 900 lines) is being affected. Restarting Conserver is sometimes (but not always) effective in clearing this up. In many cases, though, the only solution is to reboot the server. I had previously bumped up certain values in /etc/system (e.g. "maxusers", "tcp:tcp_conn_hash_size") to better handle the large number of connections to Conserver, and I'm also planning to install the latest Solaris patch cluster, in case this is a Solaris TCP/IP issue... ... but I thought I ought to ask the List as well, in case others have seen this before. TIA, S -- -- steve lammert software engineer voice: +1-412-323-3500 slammert@panasas.com panasas, inc fax: +1-412-323-3511 From slammert@panasas.com Mon Apr 28 12:21:11 2003 Received: from localhost.localdomain (gw2.panasas.com [65.194.124.178]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3SJLAtn014824 for ; Mon, 28 Apr 2003 12:21:11 -0700 (PDT) Received: from panasas.com (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h3SJKOY7015475; Mon, 28 Apr 2003 15:20:24 -0400 Message-ID: <3EAD7EF8.3050909@panasas.com> Date: Mon, 28 Apr 2003 15:20:24 -0400 From: Steve Lammert Organization: Panasas, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 CC: Conserver Users Mailing List References: <3EAD7C3F.7040400@panasas.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Timeout connecting to server X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 19:21:12 -0000 So, I solved my immediate problem by using "lsof" (Sol8 binary obtained via freshmeat.net) to obtain the pid of the conserver daemon which was not responding. Killing the pid, then sending the "reconnect" signal to Conserver, and I'm back in business. ... but I'd still like to know why this happens ... Cheers, S Steve Lammert wrote: > > We are using Conserver 7.2.7 to serve about 900 console lines on 25 > Cyclades TS terminal concentrators, from a Sun Ultra 5 running Solaris > 8. We had no problems at levels of 500-600 lines, but the recent > expansion to 900 lines appears to have led to the following interesting > behavior: > > After the server has been up for ten days or so, a few users begin > experiencing timeouts when connecting to a small number of console > lines, viz: > > -------------------------------------------------------- > myhost$ console beta-15-1 > < --- Three minutes of silence --- > > console: connect: 61897@conserver: Connection timed out > -------------------------------------------------------- > > Logging into the Conserver server, I notice a number of connections to > port 61897 in CLOSE_WAIT state. These entries tend to hang around for a > LONG time (e.g. days): > > -------------------------------------------------------------------- > conserver# netstat -a|grep 61897 > *.61897 *.* 0 0 32768 0 LISTEN > lyell.panasas.com.61897 kinsman.2458 1 0 33304 0 ESTABLISHED > lyell.panasas.com.61897 build-bsd6.1851 57920 0 33304 0 CLOSE_WAIT > lyell.panasas.com.61897 build-bsd6.1855 57920 0 33304 0 CLOSE_WAIT > lyell.panasas.com.61897 build-bsd6.1863 57920 0 33304 0 CLOSE_WAIT > lyell.panasas.com.61897 rack-bsd2.2776 57920 0 33304 0 CLOSE_WAIT > lyell.panasas.com.61897 rack-bsd2.2778 57920 0 33304 0 CLOSE_WAIT > lyell.panasas.com.61897 rack-bsd2.2781 57920 0 33304 0 CLOSE_WAIT > lyell.panasas.com.61897 rack-bsd2.2783 57920 0 33304 0 CLOSE_WAIT > lyell.panasas.com.61897 kinsman.1984 57920 0 33304 0 CLOSE_WAIT > -------------------------------------------------------------------- > > One also sees timeouts when using commands such as "console -x"... the > list of connections pauses at a certain point, and eventually times out. > It seems likely that a single Conserver daemon (out of the 55 or so > that are spawned to handle 900 lines) is being affected. > > Restarting Conserver is sometimes (but not always) effective in clearing > this up. In many cases, though, the only solution is to reboot the server. > > I had previously bumped up certain values in /etc/system (e.g. > "maxusers", "tcp:tcp_conn_hash_size") to better handle the large number > of connections to Conserver, and I'm also planning to install the latest > Solaris patch cluster, in case this is a Solaris TCP/IP issue... > > ... but I thought I ought to ask the List as well, in case others have > seen this before. > > TIA, > S > > -- -- steve lammert software engineer voice: +1-412-323-3500 slammert@panasas.com panasas, inc fax: +1-412-323-3511 From aaron@osdl.org Mon Apr 28 13:04:44 2003 Received: from mail.osdl.org (air-2.osdl.org [65.172.181.6]) by underdog.stansell.org (8.12.9/8.12.9) with ESMTP id h3SK4itn014931 for ; Mon, 28 Apr 2003 13:04:44 -0700 (PDT) Received: from osdlab.pdx.osdl.net (osdlab.pdx.osdl.net [172.20.1.28]) by mail.osdl.org (8.11.6/8.11.6) with ESMTP id h3SK4hW28595 for ; Mon, 28 Apr 2003 13:04:43 -0700 Date: Mon, 28 Apr 2003 13:04:43 -0700 (PDT) From: Aaron Burt X-X-Sender: To: Conserver Users Mailing List In-Reply-To: <3EAD7EF8.3050909@panasas.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: Timeout connecting to server X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 20:04:45 -0000 On Mon, 28 Apr 2003, Steve Lammert wrote: > > So, I solved my immediate problem by using "lsof" (Sol8 binary obtained > via freshmeat.net) to obtain the pid of the conserver daemon which was > not responding. Killing the pid, then sending the "reconnect" signal to > Conserver, and I'm back in business. > > ... but I'd still like to know why this happens ... I've seen similar behavior when a terminal server port is refusing connections or some such. The daemon that handles the port sleeps and retries, but while it's sleeping, all its consoles are unresponsive. There isn't an easy, permanent fix for the problem, unless one could fork off a misbehaving console into its own daemon, perhaps using some of the tricks developed for dynamic reconfig.