[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 6

ypserv Daemon

Purpose

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

Syntax

/usr/lib/netsvc/yp/ypserv

Description

The ypserv daemon looks up information in its local Network Information Service (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:

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

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

Related Information

The chmaster command, chslave command, domainname command, makedbm command, mkmaster command, mkslave command, ypcat command, ypinit command, ypmatch command, yppoll command, yppush command, ypset command, ypwhich command, ypxfr command.

Network Information Service (NIS) Overview for System Management in AIX Version 4.3 System Management Guide: Communications and Networks.

System Resource Controller Overview in AIX Version 4.3 System Management Guide: Operating System and Devices.

Network File System (NFS) Overview for System Management, NIS Maps in AIX Version 4.3 System Management Guide: Communications and Networks.

Remote Procedure Call Overview for Programming in AIX Version 4.3 Communications Programming Concepts.

How to Configure NIS in AIX Version 4.3 System Management Guide: Communications and Networks.

List of NIS Commands.


[ Previous | Next | Contents | Glossary | Home | Search ]