From owner-freebsd-bugs Tue Nov 20 16: 0: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D534737B405 for ; Tue, 20 Nov 2001 16:00:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fAL001t54428; Tue, 20 Nov 2001 16:00:01 -0800 (PST) (envelope-from gnats) Date: Tue, 20 Nov 2001 16:00:01 -0800 (PST) Message-Id: <200111210000.fAL001t54428@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Garrett Wollman Subject: bin/32129: ntpdc -c does not work as advertised Reply-To: Garrett Wollman Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/32129; it has been noted by GNATS. From: Garrett Wollman To: Ceri Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/32129: ntpdc -c does not work as advertised Date: Tue, 20 Nov 2001 18:51:15 -0500 (EST) < said: > -c command > The command argument is interpreted as an interactive format com- > mand and is added to the list of commands to be executed on the > specified host(s). Multiple -c options may be given. > which indicates that all commands specified should default to the host > given on the command line. Yes, but that doesn't mean what you think it means. > root@rhadamanth setantae# ntpdc -c "showpeer ntp2b.mcc.ac.uk" > remote 130.88.200.98, local 62.254.251.122 This is a query for information *about* ntp2b.mcc.ac.uk from your machine, pc3-card3-0-cust122.cdf.cable.ntl.com. The host on the command line is the host to query. Compare the output of: ntpdc -c peers ntp2b.mcc.ac.uk and: ntpdc -c "peers ntp2b.mcc.ac.uk" When you said: > root@rhadamanth setantae# ntpdc -c showpeer ntp2b.mcc.ac.uk ntpdc correctly interepreted that as a request to query ntp2b.mcc.ac.uk for some information, but then determined that the command you gave it (`showpeer') was not properly formed. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message