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

ypwhich(1)						      General Commands Manual							ypwhich(1)

NAME
ypwhich - list which host is Network Information System server or map master SYNOPSIS
domain] [hostname] domain] [mname]] Remarks The Network Information Service (NIS) was formerly known as Yellow Pages (YP). Although the name has changed, the functionality of the service remains the same. DESCRIPTION
lists the host name of the Network Information System (NIS) server that supplies NIS services to a NIS client. It can also print the NIS server that is the master for mname. The mname can be either a mapname or a map nickname. A map nickname is a synonym by which a NIS map can be referenced. If invoked without arguments, prints the host name of the NIS server serving the local machine. If hostname is specified, that machine is queried to determine which NIS server it is using. Options recognizes the following command-line options and arguments: Specify a domain other than the one returned by domainname(1). Specify the version (n) of which is to be queried. Permitted values for n are 2 for V2 and 3 for V3. V3 is the default. Inhibit the translation of a map's nickname to its corresponding mapname. For example, fails because there is no map named whereas translates to This option is useful if a mapname is identical to a nickname (which is not true of any HP map). List the master NIS server for a map. No hostname can be specified with The mname can be a mapname or a map nickname. If mname is omitted, a complete list of available maps and the corresponding host names of the master NIS servers is produced. Display the nickname for each NIS map. WARNINGS
Starting with ONCplus version B.11.31.02, the NIS Version 1 protocol is no longer available. AUTHOR
was developed by Sun Microsystems, Inc. SEE ALSO
domainname(1), ypserv(1M), ypset(1M), ypfiles(4). ypwhich(1)
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