1ypset(1M) System Administration Commands ypset(1M)
2
3
4
6 ypset - point ypbind at a particular server
7
9 /usr/sbin/ypset [-d ypdomain] [-h host] server
10
11
13 In order to run ypset, ypbind must be initiated with the −ypset or
14 −ypsetme options. See ypbind(1M). ypset tells ypbind to get NIS ser‐
15 vices for the specified ypdomain from the ypserv process running on
16 server. If server is down, or is not running ypserv, this might not be
17 discovered until an NIS client process tries to obtain a binding for
18 the domain. At this point, the binding set by ypset is tested by
19 ypbind. If the binding is invalid, ypbind attempts to rebind for the
20 same domain.
21
22
23 ypset is useful for binding a client node that is not on a broadcast
24 net, or is on a broadcast net that is not running an NIS server host.
25 It is also useful for debugging NIS client applications, for instance,
26 where an NIS map exists only at a single NIS server host.
27
28
29 Where several hosts on the local net are supplying NIS services, ypbind
30 can rebind to another host, even while you attempt to find out if the
31 ypset operation succeeded. For example, if you enter the ypset command
32 below, you might get the subsequent response from ypwhich:
33
34 example% ypset host1
35 example% ypwhich
36 host2
37
38
39
40
41 The sequence shown above is a function of the NIS subsystem's attempt
42 to load-balance among the available NIS servers, and occurs when host1
43 does not respond to ypbind because it is not running ypserv (or is
44 overloaded), and host2, running ypserv, obtains the binding.
45
46
47 server indicates which NIS server to bind to, and must be specified as
48 a name or an IP address. This works only if the node has a current
49 valid binding for the domain in question and ypbind has been set to
50 allow use of ypset. In most cases, server should be specified as an IP
51 address.
52
53
54 ypset tries to bind over a connectionless transport. The NIS library
55 call, yp_all(), uses connection-oriented transport and derives the NIS
56 server's address based on the connectionless address supplied by
57 ypset.
58
59
60 Refer to ypfiles(4) for an overview of the NIS name service.
61
63 -d ypdomain Use ypdomain, instead of the default domain.
64
65
66 -h host Set ypbind's binding on host, instead of locally. Spec‐
67 ify host as a name.
68
69
71 See attributes(5) for descriptions of the following attributes:
72
73
74
75
76 ┌─────────────────────────────┬─────────────────────────────┐
77 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
78 ├─────────────────────────────┼─────────────────────────────┤
79 │Availability │SUNWnisu │
80 └─────────────────────────────┴─────────────────────────────┘
81
83 ypwhich(1), ypfiles(4), attributes(5)
84
85
86
87SunOS 5.11 14 Sep 1992 ypset(1M)