*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> ypmatch (1)              
Title
Content
Arch
Section
 

ypmatch(1)

Contents


NAME    [Toc]    [Back]

       ypmatch  - print the value of one or more keys from an NIS
       map

SYNOPSIS    [Toc]    [Back]

       ypmatch [-d domain] [-k] [-t] key... mname

       ypmatch -x

OPTIONS    [Toc]    [Back]

       Displays key values for specified domain.   Displays  key,
       followed  by  a  colon (:), before displaying value of the
       key. This is useful if the keys are not duplicated in  the
       returned  values, or if the number of specified keys is so
       large that the output is confusing.  Inhibits  translation
       of  nickname  to  mapname.  For  example, ypmatch -t zippy
       passwd

              fails because there is no map named  passwd,  while
              ypmatch zippy passwd

              succeeds  because  ypmatch translates it to ypmatch
              zippy passwd.byname.  Displays map nickname  table.
              This  option  tells  ypmatch  to list the nicknames
              (mnames) with their associated mapnames.

DESCRIPTION    [Toc]    [Back]

       The ypmatch command prints the values associated with  one
       or  more  keys  from the Network Information Service (NIS)
       map (database) specified by mname, which may be  either  a
       mapname or a map nickname.

       Multiple  keys  can be specified. After the key values and
       the map name have been specified, ypmatch searches the map
       for  all of the specified keys. The specified keys must be
       exact values in terms of capitalization  and  length.  The
       ypmatch  command does not have a pattern matching capability.
 If ypmatch cannot match a key, it produces a diagnostic
 message.

       The  default list of mapnames served by NIS is as follows:
       passwd.byname,  passwd.byuid,  group.byname,  group.byuid,
       hosts.byname,    hosts.byaddr,    networks.byname,    networks.byaddr,
   services.byname,   rpc.bynumber,    protocols.byname,
   protocols.bynumber,  netgroup.byuser,  netgroup.byhost,
 mail.alias.

EXAMPLES    [Toc]    [Back]

       The following are sample command lines that illustrate how
       to  use  the ypmatch command to access information in each
       of the maps:

       ----------------------------------------------------------
       Mapname              Sample command
       ----------------------------------------------------------
       passwd.byname        ypmatch user1 passwd.byname
       passwd.byuid         ypmatch uid1 passwd.byuid
       group.byname         ypmatch group1 group.byname
       group.byuid          ypmatch gid1 group.bygid
       hosts.byname         ypmatch host1 host.byname

       hosts.byaddr         ypmatch hostaddr1 hosts.byaddr
       networks.byname      ypmatch network1 networks.byname
       networks.byaddr      ypmatch netaddr1 networks.byaddr
       services.byname      ypmatch servport/tcp services.byname
       rpc.bynumber         ypmatch rpcnum rpc.bynumber
       protocols.byname     ypmatch proto1 protocols.byname
       protocols.bynumber   ypmatch protonum1 protocols.bynumber
       netgroup.byuser      ypmatch user1 netgroup.byuser
       netgroup.byhost      ypmatch host1 netgroup.byhost
       mail.alias           ypmatch mailgroup1 mail.alias
       ----------------------------------------------------------

SEE ALSO    [Toc]    [Back]

      
      
       ypfiles(4), ypcat(1)

       Network Administration: Services



                                                       ypmatch(1)
[ Back ]
 Similar pages
Name OS Title
ypmatch Linux print the values of one or more keys from a NIS map
ypcat OpenBSD print the values of all keys in a YP database
ypcat Linux print values of all keys in a NIS database
ypmatch FreeBSD print the values of one or more keys in a YP database
ypcat FreeBSD print the values of all keys in a YP database
ypmatch OpenBSD print the values of one or more keys in a YP database
ypmatch HP-UX print values of selected keys in Network Information Service map
DXmPrintWgtAugmentList Tru64 Defines additional print formats and lets you add new options to the print widget option menus.
ssh-keyscan OpenBSD gather ssh public keys
dnssec-makekeyset HP-UX used to produce a set of DNSSEC keys
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service