Subject: Re: help me analyze my servers failure
To: None <port-mac68k@netbsd.org>
From: None <josh@ssimr.com>
List: port-mac68k
Date: 04/09/2001 20:20:05
On Mon, Apr 09, 2001 at 04:42:09PM -0700, Cameron Kaiser wrote:
> > What happens is I can't get in, nor can any clients connect to access
> > the services. It is still up on my network (judging from port-scans
> > done with agnet tools from another Mac on my network). I have been
> > running it headless, but when I stick the monitor back on - even
> > though I can still get a display - I can't get a keyboard response. I
> > find out either when I try to telnet into the server, or someone
> > trying to check their mail in the house or send mail finds they can't.
> 
> There's not enough information here.

That is correct. 

Bob Nestor suggested Im running out of swap space. I mention this here
because I have the same problem testing that as I will evertyhing
else. Which is everything is very clean right now. If Bob is right,
then I have an application slowly leaking memory. I'm running bind,
sendmail, gnu-pop3 daemon from compiled source. The apache daemon is
from a package at install time and the telnet daemon was done with the
install. 

I have a few applicatons but for the most part they aren't being used
by anyone except me when I log in - for example I'm using mutt with
emacs to send this e-mail.

> 
> Can they get in at all?

Telnet - no! pop3 and smtp -no! I didn't check the http daemon, dns,
or the ntp daemon. And for whatever reason no console is available as
stated at the start.

> What about pinging it? 

pinging yes - the machine is pingable and even port scanable.

> Can they get in after
> bootup, and then not later? What does ifconfig say? What about netstat -r?

yes, everything works again after bootup.


output showing the state after restarting - the problem being figuring
both what I'm running that I don't need ( I don't need any IP6 as far
as I can tell) and what it was that happened before the failure. Guess
I'll have to try this in a day or two.

bash-2.04$ swapctl -l 
Device      512-blocks     Used    Avail Capacity  Priority
/dev/sd0b       300000        0   300000     0%    0

bash-2.04$ ifconfig -a
mc0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 08:00:07:dc:a1:1c
        inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::a00:7ff:fedc:a11c%mc0 prefixlen 64 scopeid 0x1
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33228
        inet 127.0.0.1 netmask 0xff000000
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet6 ::1 prefixlen 128
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
sl1: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
tun0: flags=10<POINTOPOINT> mtu 1500
tun1: flags=10<POINTOPOINT> mtu 1500
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280

bash-2.04$ netstat -r
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface
default            router.gw-josh-dsl UGS         1      348   1500  mc0
loopback           localhost          UGRS        0        0  33228  lo0
localhost          localhost          UH          1       28  33228  lo0
192.168.1          link#1             UC          0        0   1500  mc0
router.gw-josh-dsl 00:20:78:d2:3f:fd  UHL         1       28   1500  mc0
roberta.gw-josh-ds 08:00:07:dc:a1:1c  UHL         2      189   1500  lo0
192.168.1.100      00:30:65:43:5b:e6  UHL         1    15679   1500  mc0
192.168.1.101      00:20:78:1c:80:13  UHL         0       40   1500  mc0

XNS:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

ISO:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

X.25:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

AppleTalk:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

Internet6:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface
::                 localhost          UGRS        0        0  33228  lo0 =>
::                 localhost          UGRS        0        0  33228  lo0
localhost          localhost          UH         12        0  33228  lo0
::127.0.0.0        localhost          UGRS        0        0  33228  lo0
::224.0.0.0        localhost          UGRS        0        0  33228  lo0
::255.0.0.0        localhost          UGRS        0        0  33228  lo0
::ffff:0.0.0.0     localhost          UGRS        0        0  33228  lo0
2002::             localhost          UGRS        0        0  33228  lo0
2002:7f00::        localhost          UGRS        0        0  33228  lo0
2002:e000::        localhost          UGRS        0        0  33228  lo0
2002:ff00::        localhost          UGRS        0        0  33228  lo0
fe80::             localhost          UGRS        0        0  33228  lo0
fe80::%mc0         link#1             UC          0        0   1500  mc0
fe80::%lo0         fe80::1%lo0        U           0        0  33228  lo0
fec0::             localhost          UGRS        0        0  33228  lo0
ff01::             localhost          U           0        0  33228  lo0
ff02::%mc0         link#1             UC          0        0   1500  mc0
ff02::%lo0         fe80::1%lo0        UC          0        0  33228  lo0


-- 
Josh Kuperman
josh@ssimr.com
http://www.ssimr.com

and while I'm at it, here's the output of top.


bash-2.04$ top
load averages:  0.32,  0.19,  0.12    20:17:13
19 processes:  18 sleeping, 1 on processor

Memory: 12M Act, 3716K Inact, 496K Wired, 42M Free, 146M Swap free


  PID USERNAME PRI NICE   SIZE   RES STATE     TIME   WCPU    CPU COMMAND
  380 josh       2    0  3660K 3680K sleep     0:28  6.10%  6.10% emacs
  425 josh      10    0   536K  984K sleep     0:00 11.84%  2.15% bash
  302 root       2    0   112K 1068K sleep     0:14  0.05%  0.05% telnetd
  303 josh      10    0   560K 1020K sleep     0:03  0.00%  0.00% bash
  370 josh      10    0   532K 1240K sleep     0:02  0.00%  0.00% mutt
  272 root       2    0  1356K 1224K sleep     0:02  0.00%  0.00% named
  229 root       2    0   660K  980K sleep     0:01  0.00%  0.00% httpd
  426 josh      36    0   116K  660K onproc    0:00  0.00%  0.00% top
  379 josh      18    0   408K  240K sleep     0:00  0.00%  0.00% ksh
  188 root      10    0   220K  488K sleep     0:00  0.00%  0.00% cron
    1 root      10    0   296K  172K sleep     0:00  0.00%  0.00% init
  276 root       3    0    48K  564K sleep     0:00  0.00%  0.00% getty
  214 root       2    0   672K  980K sleep     0:00  0.00%  0.00% sendmail
  231 nobody     2    0   660K  804K sleep     0:00  0.00%  0.00% httpd
  232 nobody     2    0   660K  800K sleep     0:00  0.00%  0.00% httpd
  230 nobody     2    0   660K  796K sleep     0:00  0.00%  0.00% httpd
  181 root       2    0    68K  556K sleep     0:00  0.00%  0.00% inetd
  262 root       2    0   116K  464K sleep     0:00  0.00%  0.00% lpd