Create an ASCII file
containing the contents of the desired map.
The ASCII file format must consist of key-value pairs with
space separating the key from its value as in:
key1 value1 key2 value2 key3 value3
Create the NIS map for this file using the makedbm command.
For an ASCII file called mymap.asc:
./makedbm mymap.asc domain_name/mymap
The result is a map called /etc/yp/domain_name/mymap.
Add the new map name to the YP_MAP_X_LATE file
on all servers in the NIS domain.
Create a new map2ascii routine and copy it to all servers on
which you wish the new map
to be converted to ASCII format after it is propagated.
A map2ascii routine is required on any copy-only servers.
Propagate the map to slave servers in the NIS domain using
the yppush command.
For the example map mymap, enter: