8980 BIOS clock is sometimes one hour fast
[unleashed.git] / usr / src / man / man1m / ypset.1m
blob857aadfa6f85ad38e1a419451ec80a1a9a64fd3f
1 '\" te
2 .\" Copyright (c) 2000 Sun Microsystems, Inc. All Rights Reserved.
3 .\" Copyright 1989 AT&T
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH YPSET 1M "Sep 14, 1992"
8 .SH NAME
9 ypset \- point ypbind at a particular server
10 .SH SYNOPSIS
11 .LP
12 .nf
13 \fB/usr/sbin/ypset\fR [\fB-d\fR \fIypdomain\fR] [\fB-h\fR \fIhost\fR] \fIserver\fR
14 .fi
16 .SH DESCRIPTION
17 .sp
18 .LP
19 In order to run \fBypset\fR, \fBypbind\fR must be initiated with the
20 \fB\(miypset\fR or \fB\(miypsetme\fR options. See \fBypbind\fR(1M). \fBypset\fR
21 tells \fBypbind\fR to get NIS services for the specified \fIypdomain\fR from
22 the \fBypserv\fR process running on \fIserver\fR. If \fIserver\fR is down, or
23 is not running \fBypserv\fR, this might not be discovered until an NIS client
24 process tries to obtain a binding for the domain. At this point, the binding
25 set by \fBypset\fR is tested by \fBypbind\fR. If the binding is invalid,
26 \fBypbind\fR attempts to rebind for the same domain.
27 .sp
28 .LP
29 \fBypset\fR is useful for binding a client node that is not on a broadcast net,
30 or is on a broadcast net that is not running an NIS server host. It is also
31 useful for debugging NIS client applications, for instance, where an NIS map
32 exists only at a single NIS server host.
33 .sp
34 .LP
35 Where several hosts on the local net are supplying NIS services, \fBypbind\fR
36 can rebind to another host, even while you attempt to find out if the
37 \fBypset\fR operation succeeded.  For example, if you enter the \fBypset\fR
38 command below, you might get the subsequent response from \fBypwhich\fR:
39 .sp
40 .in +2
41 .nf
42 example% ypset host1
43 example% ypwhich
44 host2
45 .fi
46 .in -2
47 .sp
49 .sp
50 .LP
51 The sequence shown above is a function of the NIS subsystem's attempt to
52 load-balance among the available NIS servers, and occurs when \fBhost1\fR does
53 not respond to \fBypbind\fR because it is not running \fBypserv\fR (or is
54 overloaded), and \fBhost2\fR, running \fBypserv\fR, obtains the binding.
55 .sp
56 .LP
57 \fIserver\fR indicates which NIS server to bind to, and must be specified as a
58 name or an IP address. This works only if the node has a current valid binding
59 for the domain in question and \fBypbind\fR has been set to allow use of
60 \fBypset\fR. In most cases, \fIserver\fR should be specified as an IP address.
61 .sp
62 .LP
63 \fBypset\fR tries to bind over a connectionless transport. The NIS library
64 call, \fByp_all()\fR, uses connection-oriented transport and derives the NIS
65 server's address  based on the connectionless address supplied by \fBypset\fR.
66 .sp
67 .LP
68 Refer to \fBypfiles\fR(4) for an overview of the NIS name service.
69 .SH OPTIONS
70 .sp
71 .ne 2
72 .na
73 \fB\fB-d\fR\fI ypdomain\fR\fR
74 .ad
75 .RS 15n
76 Use \fIypdomain\fR, instead of the default domain.
77 .RE
79 .sp
80 .ne 2
81 .na
82 \fB\fB-h\fR\fI host\fR\fR
83 .ad
84 .RS 15n
85 Set \fBypbind\fR's binding on \fIhost\fR, instead of locally. Specify
86 \fIhost\fR as a name.
87 .RE
89 .SH SEE ALSO
90 .sp
91 .LP
92 \fBypwhich\fR(1), \fBypfiles\fR(4), \fBattributes\fR(5)