From wrsomsky@halcyon.com Thu May 13 08:36:02 1999
Return-Path: <wrsomsky@halcyon.com>
Received: from smtp04.nwnexus.com (smtp04.nwnexus.com [206.63.63.52])
	by hub.freebsd.org (Postfix) with ESMTP id D1DAF14C81
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 13 May 1999 08:36:01 -0700 (PDT)
	(envelope-from wrsomsky@halcyon.com)
Received: from gramarye (evt-lx100-ip43.nwnexus.net [204.57.235.43])
	by smtp04.nwnexus.com (8.8.8/8.8.8) with ESMTP id IAA10660
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 13 May 1999 08:35:57 -0700 (PDT)
Received: (from wrsomsky@localhost)
	by gramarye (8.9.3/8.9.3) id IAA00937;
	Thu, 13 May 1999 08:33:41 -0700 (PDT)
	(envelope-from wrsomsky)
Message-Id: <199905131533.IAA00937.gramarye.wrsomsky@halcyon.com>
Date: Thu, 13 May 1999 08:33:41 -0700 (PDT)
From: "William R. Somsky" <wrsomsky@halcyon.com>
Reply-To: wrsomsky@halcyon.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Change "netstat" mode in daily "status-network" script
X-Send-Pr-Version: 3.2

>Number:         11689
>Category:       misc
>Synopsis:       Change "netstat" mode in daily "status-network" script
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 13 08:40:01 PDT 1999
>Closed-Date:    Fri Jun 8 07:09:36 PDT 2001
>Last-Modified:  Fri Jun 08 07:12:33 PDT 2001
>Originator:     William R. Somsky
>Release:        FreeBSD 3.2-BETA i386
>Organization:
>Environment:

	demand-dialed ppp;
	/etc/host.conf set to hosts:bind order;

>Description:

	On a machine with demand-dialed ppp, invocation of the
	daily "420.status-network" script causes the machine
	to dial the network to perform the number-to-name
	resolution of the "netstat -i" within the script.

>How-To-Repeat:

	Invoke /etc/periodic/daily/420.status-network
	on a machine with demand-dialed ppp.

>Fix:

	Suggest that the "netstat -i" in the script
	be changed to "netstat -in" (print as numbers).

	Suggested patch below:

*** 420.status-network:orig	Sun Aug 17 10:55:33 1997
--- 420.status-network	Thu May 13 08:15:53 1999
***************
*** 7,11 ****
      echo ""
      echo "Network interface status:"
  
!     netstat -i
  fi
--- 7,11 ----
      echo ""
      echo "Network interface status:"
  
!     netstat -in
  fi
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Fri Jun 8 07:09:36 PDT 2001 
State-Changed-Why:  
FreeBSD 4.2-RELEASE and later have daily_status_network_usedns="NO" 
periodic.conf(5) knob. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=11689 
>Unformatted:
