YPMATCH(1) BSD General Commands Manual YPMATCH(1)NAME
ypmatch -- print the values of one or more keys in a YP database
SYNOPSIS
ypmatch [-kt] [-d domainname] key ... mapname
ypmatch -x
DESCRIPTION
The ypmatch utility prints out the values of one or more keys from the YP database specified by mapname, which may be a map name or a map
nickname.
The options are as follows:
-d domainname
Specify a domain other than the default domain.
-k Display map keys. This option is useful with maps in which the values are null or the key is not part of the value.
-t Inhibit translation of map nicknames to their corresponding map names.
-x Display the map nickname table.
SEE ALSO domainname(1), ypcat(1), yp(8), ypbind(8), ypset(8)AUTHORS
Theo De Raadt <deraadt@theos.com>.
BSD December 3, 1993 BSD
Check Out this Related Man Page
ypmatch(1) General Commands Manual ypmatch(1)NAME
ypmatch - print the values of one or more keys from a NIS map
SYNOPSYS
ypmatch [ -kt ] [ -d domain ] key ... mapname
ypmatch -x
DESCRIPTION
ypmatch prints the values of one or more keys from the NIS database specified by mapname, which may be a map name or a map nickname.
OPTIONS -d domain
Specify a domain other than the default domain as returned by domainname(1).
-k Display map keys. This option is useful with maps in which the values are null or the key is not part of the value.
-t This option inhibits map nickname translation.
-x Display the map nickname translation table.
FILES
/var/yp/nicknames
map nickname translation table.
SEE ALSO domainname(8), nicknames(5), ypbind(8), ypcat(1), yppoll(8), ypserv(8), yset(8), ypwhich(1)AUTHOR
ypmatch is part of the yp-tools package, which was written by Thorsten Kukuk <kukuk@suse.de>.
YP Tools 2.9 May 1999 ypmatch(1)
Hello,
We can get the full info by typing:
ypmatch username passwd
aaaa : yyyy: ... ... : LastName Gname : ... ...
However, I'd like to know how could we get the username based on LastName and Given name please?
Thanks a lot,
ly (3 Replies)
Hi
I am moving from shell scripting part to network shell scripting.
Can some one give me basic idea for all network related commands like
ypmatch,ypcat,NIS etc...
Documentation wiil be highly appreciated (1 Reply)
Hello - I have a script which creates a NIS user on Solaris machine. Before creating the user I check if the user being created laready exists or not using ypmatch and use $? to get the exit code. If a user exists, I get 0, works fine. However when the user is not found, the shell scripts exits by... (1 Reply)
I cannot use my id in ypmatch.
wats is the use of this. to whom I need to check it out to get done
ypmatch ssmfkfaliases
ypmatch: can't match ssmfkf.
Reason: no such map in server's NIS domain (1 Reply)