From owner-freebsd-questions Fri Jan 29 10:10:21 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA20216 for freebsd-questions-outgoing; Fri, 29 Jan 1999 10:10:21 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from misha.cisco.com (misha.cisco.com [171.69.206.50]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA20209 for ; Fri, 29 Jan 1999 10:10:18 -0800 (PST) (envelope-from mi@misha.cisco.com) Received: (from mi@localhost) by misha.cisco.com (8.9.1/8.9.1) id NAA17759; Fri, 29 Jan 1999 13:06:32 -0500 (EST) (envelope-from mi) From: Mikhail Teterin Message-Id: <199901291806.NAA17759@misha.cisco.com> Subject: Re: ypcat works, ypxfr does not In-Reply-To: <199901291649.LAA22334@cc942873-a.ewndsr1.nj.home.com> from "Crist J. Clark" at "Jan 29, 1999 11:49:34 am" To: cjclark@home.com Date: Fri, 29 Jan 1999 13:06:26 -0500 (EST) Cc: questions@FreeBSD.ORG Reply-To: mi@aldan.algebra.com X-Mailer: ELM [version 2.4ME+ PL52 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > root@misha:~mi (270) ypcat hosts > > [...] > > root@misha:~mi (271) /usr/libexec/ypxfr -c hosts.byname > > ypxfr: couldn't create udp handle to ypserv: RPC: Program not registered > > > > ypxfr: failed to get order number of hosts.byname: RPC failure talking to server > > ypxfr: Exiting: NIS server/map database error > > > > Any suggestions? My machine runs ypbind only right now, but I wanted > > to set-up a local yp-slave to speed thing yp a bit. But ypinit > > fails, and so does an explicit ypxfr of any of the databases... > > > > ypxfr with explicit `-h master' does not work in the same way... Any > > ideas? > > RTFM. man ypxfr: > > " Ypxfr copies an NIS database (or map) from one NIS server to another us- > ing NIS services." YPXFR(8) FreeBSD System Manager's Manual YPXFR(8) [...] -c Do not send a 'clear current map' request to the ypserv(8) pro- cess running on the local host. This flag is normally used when invoking ypxfr manually on a machine that is not yet running ypserv(8). Without this flag, failure to contact the local NIS server will cause ypxfr to abort the transfer. [...] > You say you only have ypbind running. ypxfr transfers between two > ypservs. That first error is ypxfr not finding ypserv running on your > system. I cannot say off-hand whether the others are cascade failures > due to the first or independent problems. Any other ideas? TIA! -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message