NetBSD Problem Report #23933

Received: (qmail 7689 invoked by uid 605); 30 Dec 2003 19:19:50 -0000
Message-Id: <20031230191634.2FBD832F84@telstar.bjan.net>
Date: Tue, 30 Dec 2003 12:16:34 -0700 (MST)
From: bjan@bjan.net
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: bjan@bjan.net
To: gnats-bugs@gnats.NetBSD.org
Subject: dhclient is gratuitously noisy
X-Send-Pr-Version: 3.95

>Number:         23933
>Category:       bin
>Synopsis:       dhclient is gratuitously noisy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 30 19:20:00 +0000 2003
>Closed-Date:    Sun Sep 23 13:54:41 +0000 2018
>Last-Modified:  Sun Sep 23 13:54:41 +0000 2018
>Originator:     Bruce J.A. Nourish
>Release:        NetBSD 1.6ZG
>Organization:

>Environment:


System: NetBSD telstar.bjan.net 1.6ZG NetBSD 1.6ZG (TELSTAR) #0: Mon Dec 29 00:10:30 MST 2003 bjan@telstar.bjan.net:/usr/obj/sys/arch/i386/compile/TELSTAR i386
Architecture: i386
Machine: i386
>Description:
dhclient -q insists on printing stuff like:

New Network Number: 192.168.1.0
New Broadcast Address: 192.168.1.255

This makes the boot sequence output look pretty horrible. It also goes
against the man page, which says that -q should suppress all non-error
messages.

I think, however, that there are legitimate reasons for an ifconfig.int
script to generate output. If so (and assuming we agree that it is worth
making the boot output look decent), there are three obvious solutions:

(1) Put every interface on it's own line. e.g.:

Bringing up ath0:
[Hello, I'm a noisy interface.]
Bringing up bge0:

Simple, straightforward, but not particularly nice.

(2) Have a flag in the first line of an ifconfig.int script like so:

#NOISY
dhclient $int

e.g.:

Bringing up ath0:
[Helloo, I'm a noisy interface.]
Bringing up interfaces: bge0.

Fairly simple, but rather inconsistant.

(3) Get rid of the "all on one line" method altogether:

Redirect the script output to somewhere in /tmp. Then, based on whether
the file is empty or not, and the exit status of the script, use the 
appropriate format: 

[Assuming no -q flag to dhclient]

Bringing up ath0: OK.
ath0: Internet Software Consortium DHCP Client V3.0.1rc11
ath0: Copyright 1995-2002 Internet Software Consortium.
ath0: All rights reserved.
ath0: For info, please visit http://www.isc.org/products/DHCP
ath0: 
ath0: Listening on BPF/ath0/00:0c:41:16:a7:95
ath0: Sending on   BPF/ath0/00:0c:41:16:a7:95
ath0: Sending on   Socket/fallback
ath0: DHCPREQUEST on ath0 to 255.255.255.255 port 67
ath0: DHCPACK from 192.168.1.1
ath0: New Network Number: 192.168.1.0
ath0: New Broadcast Address: 192.168.1.255
ath0: bound to 192.168.1.102 -- renewal in 38415 seconds.
Bringing up bge0: OK.
Bringing up ppp0: FAILED.
ppp0: chat returned NO CARRIER


P.S.: I've just figured out how to do this without a temp file.

>How-To-Repeat:

# dhclient -q $int

>Fix:
I can code up any of the above. Let me know.
>Release-Note:
>Audit-Trail:

From: Berndt Josef Wulf <wulf@ping.net.au>
To: bjan@bjan.net, gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: Re: bin/23933: dhclient is gratuitously noisy
Date: Wed, 31 Dec 2003 09:32:42 +1030

 On Wed, 31 Dec 2003 05:46 am, bjan@bjan.net wrote:
 > >Number:         23933
 > >Category:       bin
 > >Synopsis:       dhclient is gratuitously noisy
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       low
 > >Responsible:    bin-bug-people
 > >State:          open
 > >Class:          change-request
 > >Submitter-Id:   net
 > >Arrival-Date:   Tue Dec 30 19:20:00 UTC 2003
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Bruce J.A. Nourish
 > >Release:        NetBSD 1.6ZG
 > >Organization:
 > >
 > >Environment:
 >
 > System: NetBSD telstar.bjan.net 1.6ZG NetBSD 1.6ZG (TELSTAR) #0: Mon Dec 29
 > 00:10:30 MST 2003
 > bjan@telstar.bjan.net:/usr/obj/sys/arch/i386/compile/TELSTAR i386
 > Architecture: i386
 > Machine: i386
 >
 > >Description:
 >
 > dhclient -q insists on printing stuff like:
 >
 > New Network Number: 192.168.1.0
 > New Broadcast Address: 192.168.1.255
 >
 > This makes the boot sequence output look pretty horrible. It also goes
 > against the man page, which says that -q should suppress all non-error
 > messages.
 >
 > I think, however, that there are legitimate reasons for an ifconfig.int
 > script to generate output. If so (and assuming we agree that it is worth
 > making the boot output look decent), there are three obvious solutions:
 >
 > (1) Put every interface on it's own line. e.g.:
 >
 > Bringing up ath0:
 > [Hello, I'm a noisy interface.]
 > Bringing up bge0:
 >
 > Simple, straightforward, but not particularly nice.
 >
 > (2) Have a flag in the first line of an ifconfig.int script like so:
 >
 > #NOISY
 > dhclient $int
 >
 > e.g.:
 >
 > Bringing up ath0:
 > [Helloo, I'm a noisy interface.]
 > Bringing up interfaces: bge0.
 >
 > Fairly simple, but rather inconsistant.
 >
 > (3) Get rid of the "all on one line" method altogether:
 >
 > Redirect the script output to somewhere in /tmp. Then, based on whether
 > the file is empty or not, and the exit status of the script, use the
 > appropriate format:
 >
 > [Assuming no -q flag to dhclient]
 >
 > Bringing up ath0: OK.
 > ath0: Internet Software Consortium DHCP Client V3.0.1rc11
 > ath0: Copyright 1995-2002 Internet Software Consortium.
 > ath0: All rights reserved.
 > ath0: For info, please visit http://www.isc.org/products/DHCP
 > ath0:
 > ath0: Listening on BPF/ath0/00:0c:41:16:a7:95
 > ath0: Sending on   BPF/ath0/00:0c:41:16:a7:95
 > ath0: Sending on   Socket/fallback
 > ath0: DHCPREQUEST on ath0 to 255.255.255.255 port 67
 > ath0: DHCPACK from 192.168.1.1
 > ath0: New Network Number: 192.168.1.0
 > ath0: New Broadcast Address: 192.168.1.255
 > ath0: bound to 192.168.1.102 -- renewal in 38415 seconds.
 > Bringing up bge0: OK.
 > Bringing up ppp0: FAILED.
 > ppp0: chat returned NO CARRIER
 >
 >
 > P.S.: I've just figured out how to do this without a temp file.
 >
 > >How-To-Repeat:
 >
 > # dhclient -q $int
 >
 > >Fix:
 >
 > I can code up any of the above. Let me know.
 >
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:

 I'm sorry, but I fail to see how two lines of, IMHO, vital INFORMATION for 
 each configured network device can be described as noisy, especially when 
 considering that it conveys important network configuration stats.

 Those who don't like it may try to redirect output to the /dev/null device.

 cheerio Berndt
 -- 
 Name	: Berndt Josef Wulf		| +++ With BSD on Packet Radio +++
 E-Mail	: wulf at ping dot net dot au	|    tfkiss, tnt, dpbox, wampes
 ICQ	: 18196098			|  VK5ABN, Nairne, South Australia 
 URL	: http://www.ping.net.au/~wulf	| MBOX : vk5abn@vk5abn.#lmr.#sa.au.oc
 Sysinfo	: DEC Miata 500AU, NetBSD-1.6ZF	| BBS  : vk5abn.#lmr.#sa.aus.oc 
 -- 
 Name	: Berndt Josef Wulf		| +++ With BSD on Packet Radio +++
 E-Mail	: wulf at ping dot net dot au	|    tfkiss, tnt, dpbox, wampes
 ICQ	: 18196098			|  VK5ABN, Nairne, South Australia 
 URL	: http://www.ping.net.au/~wulf	| MBOX : vk5abn@vk5abn.#lmr.#sa.au.oc
 Sysinfo	: DEC Miata 500AU, NetBSD-1.6ZF	| BBS  : vk5abn.#lmr.#sa.aus.oc 


From: "Bruce J.A. Nourish" <bjan@bjan.net>
To: Berndt Josef Wulf <wulf@ping.net.au>
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: bin/23933: dhclient is gratuitously noisy
Date: Tue, 30 Dec 2003 15:24:59 -0700

 On Wed, Dec 31, 2003 at 09:32:42AM +1030, Berndt Josef Wulf wrote:
 > I'm sorry, but I fail to see how two lines of, IMHO, vital INFORMATION for 
 > each configured network device can be described as noisy, especially when 
 > considering that it conveys important network configuration stats.

 Did you actually read the PR?

 You've completely missed the point. It is, as you yourself say, 
 "INFORMATION," not an error. Therefore it contradicts the man page
 specification.


 > Those who don't like it may try to redirect output to the /dev/null device.

 But then they won't see error messages!

 -- 
 Bruce J.A. Nourish <bjan+public@bjan.net> http://bjan.freeshell.org
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 23 Sep 2018 13:54:41 +0000
State-Changed-Why:
dhclient removed. sorry your bug was not answered at the time.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.