Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ypwhich(1) [netbsd man page]

YPWHICH(1)						    BSD General Commands Manual 						YPWHICH(1)

NAME
ypwhich -- return hostname of NIS server of map master SYNOPSIS
ypwhich [-T] [-d domain] [[-h] host] ypwhich [-fTt] [-d domain] [-h host] -m [mname] ypwhich -x DESCRIPTION
ypwhich tells which NIS server supplies NIS services to a client, or which is the master for a map. If invoked without arguments, it gives the NIS server for the local machine. If host is specified, that machine is queried to find out which NIS server it is using. The options are as follows: -d domain Specify a domain other than the default domain. -f When used in conjunction with -m, force ypwhich to query host directly, without using the local copy of ypbind(8). -h host Specify a host other than localhost to query for information. -m [mname] Find the master NIS server for the named map. mname can be a map name or nickname. If mname is omitted, ypwhich will produce a list of available maps. -T Use TCP protocol instead of UDP. -t Inhibit translation of map nicknames to their corresponding map names. -x Display the map nickname table, found in /var/yp/nicknames. A built-in default translation table is used if /var/yp/nicknames does not exist (see nicknames(5) for details). EXIT STATUS
ypwhich exits with a non-zero exit code if -m is used, and there was a problem in determining the map's master. SEE ALSO
domainname(1), ypcat(1), ypmatch(1), nicknames(5), nis(8), ypbind(8), yppoll(8), ypset(8) AUTHORS
Charles D. Cranor Greywolf BSD
January 24, 2008 BSD

Check Out this Related Man Page

NIS(8)							    BSD System Manager's Manual 						    NIS(8)

NAME
nis, yp -- description of the NIS (formerly YP) subsystem SYNOPSIS
ypbind [-ypset] ypbind [-ypsetme] ypset [-h host] [-d domain] server yppoll [-h host] [-d domain] mapname ypcat [-kt] [-d domainname] mapname ypcat -x ypmatch [-kt] [-d domainname] key ... mapname ypmatch -x ypwhich [-d domain] [[-t] -m [mname] | host] ypwhich -x ypserv [-d] [-x] yppush [-d domainname] [-h hostname] [-v] mapname ypxfr [-bcf] [-d domain] [-h host] [-s domain] [-C tid prog ipadd port] mapname ypinit -m [domainname] ypinit -s master_server [domainname] yptest rpc.yppasswdd [-noshell] [-nogecos] [-nopw] [-m arg1 arg2 ...] DESCRIPTION
The NIS subsystem allows network management of passwd and group file entries through the functions getpwent(3) and getgrent(3). NIS also provides hooks for other client programs, such as amd(8) and rpc.bootparamd(8), that can use NIS maps. Password maps in standard YP are insecure, because the pw_passwd field is accessible by any user. A common solution to this is to generate a secure map (using ``makedbm -s'') which can only be accessed by a client bound to a privileged port. To activate the secure map, see the appropriate comment in /var/yp/Makefile.yp. The NIS subsystem is conditionally started in /etc/rc. See the /etc/rc.conf file for configuration variables. SEE ALSO
domainname(1), ypcat(1), ypmatch(1), ypwhich(1), ypclnt(3), group(5), hosts_access(5), nsswitch.conf(5), passwd(5), rc.conf(5), rc(8), ypbind(8), ypinit(8), yppoll(8), yppush(8), ypserv(8), ypset(8), yptest(8), ypxfr(8) HISTORY
The NIS client subsystem was originally written by Theo de Raadt to be compatible with Sun's implementation. The NIS server suite was origi- nally written by Mats O Jansson. BUGS
If ypbind(8) cannot find a server, the system behaves the same way as Sun's code: it hangs. The 'secure map' feature is not compatible with non-BSD implementations as found e.g. in Solaris. BSD
February 26, 2005 BSD
Man Page

12 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

NIS trouble

:eek: hi all, I have a NIS trouble on a server. when I create a file on a server (server1), the group of this file is the number of the group and not its name. when I create a file with this group on another server which depends of another NIS slave, the file is created with the group name.... (10 Replies)
Discussion started by: farzolito
10 Replies

2. UNIX for Advanced & Expert Users

Server name + IP address removed from host table after rebooting

Hi, I have a problem with a Unix server (SCO Unix version 3.2). If this server is rebooted the own server name and it's IP address is removed from the host table. How is this possible? How can i solve this problem? (3 Replies)
Discussion started by: FIRE
3 Replies

3. UNIX for Advanced & Expert Users

NIS config problem

Hi Experts, For configuring NIS server/clients which i've done several times already, i faced some problem which i have not seen before. The problem is that after configuring NIS server & the clients, for instance when i run "ypcat hosts " it gives this message: "No such map in domain services"... (5 Replies)
Discussion started by: nikk
5 Replies

4. Shell Programming and Scripting

need help to write perl code

I have 2 files , one is master file and another file i am genearting which contains Number of fails for all host & version. The first file is master file which contains 2 column, Test Case name and Product Name: daily/DB/attach/attach_redundancy.exp: YRS daily/DB/help/help.exp: ... (0 Replies)
Discussion started by: getdpg
0 Replies

5. UNIX for Dummies Questions & Answers

Extracting all table names from a given server

Using ksh and sqlplus... does anybody have an idea of how we can possibly extract all table names from server :confused:? thanks in advance. (6 Replies)
Discussion started by: fmina
6 Replies

6. Red Hat

smartd problem

Hi guys, i am facing this problem, I had configured NIS server in my network and it was ruing good.. but once i changed my IP after this problem started... please help me out..!! Oct 25 15:01:01 kickstart-server smartd: smartd shutdown failed Oct 25 15:01:01 kickstart-server smartd:... (1 Reply)
Discussion started by: daya.pandit
1 Replies

7. Solaris

NIS Client issues

Hey All! Today I am getting an error with my NIS client From what I understand, my server is running properly... on my client side.. online 2:01:12 svc:/network/nis/client:default # ps -ef |grep ypbind root 2745 1 0 02:01:12 ? 0:00... (12 Replies)
Discussion started by: Keepcase
12 Replies

8. Linux

Names/nicknames for certain punctuation

(0 Replies)
Discussion started by: SilversleevesX
0 Replies

9. What is on Your Mind?

Names/nicknames for certain punctuation

I know that forward slash and backslash are "whack" and "backwhack," and I know that a pound-sign or number sign is "crunch" and an exclamation point, "bang." What I would like to know is whether or not there's a popular nickname for the dollar sign. I call it "cash," but that may just be Yank... (6 Replies)
Discussion started by: SilversleevesX
6 Replies

10. Red Hat

NIS problem

Hello Everyone! When my NIS clients sync to the master server they have a problem with only the group maps. Upon executing "ypcat group" on the client, just one entry displayed for groups. That entry corresponds to the local group account (/etc/group) on the master. This particular group... (0 Replies)
Discussion started by: pingmeback
0 Replies

11. Shell Programming and Scripting

How to pass tablenames from a file to shell script to execute create statement in DB2

Hi, I am new to Shell Scripting, and I need to create nicknames for 600 tables in db2. I have the file names in a text file and i have to pass these table names to a shell script create nicknames in db2. Can some one please help me in this regard. (1 Reply)
Discussion started by: kamalanaatha
1 Replies

12. Shell Programming and Scripting

Forcing a tty session but getting a password prompt?

I have a master host I want to use to issue some start/stop of LDAP services. I changed the client hosts /etc/sudoers to have Defaults:infra !requiretty The master host kicks off the jobs using the infra account doing a ssh session to the infra account on the clients. #!/bin/ksh ps -fu... (5 Replies)
Discussion started by: J-Man
5 Replies