ypserv Daemon

Purpose

Looks up information in local Network Information Services (NIS) maps.

Syntax

/usr/lib/netsvc/yp/ypserv

Description

The ypserv daemon looks up information in its local Network Information Services (NIS) maps. The operations performed by the ypserv daemon are defined for the implementor by the NIS Protocol Specification and for the programmer by the /usr/include/rpcsvc/yp_prot.h header file. Communication with the ypserv daemon is by means of Remote Procedure Calls (RPC).

The ypserv daemon runs only on server machines. The ypserv daemon is started and stopped by the following System Resource Controller (SRC) commands:

startsrc -s ypserv
stopsrc -s ypserv

The ypserv daemon performs the following operations on a specified map within an NIS domain:

Item Description
Match Takes a key and returns the associated value.
Get_first Returns the first key-value pair from the map.
Get_next Enumerates the next key-value pair in the map.
Get_all Ships the entire NIS map to a requestor in response to a single RPC request.
Get_order_number Supplies information about a map instead of map entries. The order number actually exists in the map as a key-value pair, but the server does not return it through the normal lookup functions. However, the pair will be visible if you examine the map with the makedbm command.
Get_master_name Supplies information about a map instead of map entries. The master name actually exists in the map as a key-value pair, but the server does not return it through the normal lookup functions. However, the pair will be visible if you examine the map with the makedbm command.

Log information is written to the /var/yp/ypserv.log file if it exists when the ypserv daemon starts running.

If the /var/yp/securenets file exists, the ypservr command only responds to hosts within the ip range specified in this file.

Files

Item Description
/etc/rc.nfs Contains the startup script for the NFS and NIS daemons.
/var/yp/ypserv.log Contains the log for the ypserv daemon.