O'Reilly logo

Solaris™ Operating Environment Boot Camp by Dominic Butler, David Rhodes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Map Propagation

When any changes occur to the maps, the master needs to distribute the new copies to the slaves. It actually transfers the files using the NIS transport itself, as we saw earlier when we built the slaves (these were the “Transferring <map name>” messages).

There are two commands used to propagate the maps around the servers: ypxfr and yppush.

Ypxfr

This runs on the slave and communicates with the ypxfrd running on the master to request the download of an individual map. For example, to update the hosts file from the master we could run the following command:

fluorine# /usr/lib/netsvc/yp/ypxfr hosts.byname
flourine#

It's possible that sometimes the slave maps may not get updated for some reason; maybe the slave server was down ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required