Solaris Naming Administration Guide

Updating Public Keys Arguments and Examples

The nisupdkeys command is located in /usr/lib/nis. The nisupdkeys command uses the following arguments (for a complete description of the nisupdkeys command and a full list of all its arguments, see the nisupdkeys man page):

Table 8-4 nisupdkeys Arguments



(no argument) 

Updates all keys of servers for current domain 


Updates the keys of the directory object for the named directory. 

-H servername

Updates the keys of the named server for the current domain directory object. A fully qualified host name can be used to update the keys of servers in other domains. 

-s -H servername

Updates the keys of all the directory objects served by the named server. 


Clears the keys. 

Table 8-5gives an example of updating a public key:

Table 8-5 Updating a Public Key: Command Examples



Update all keys of all servers of the current domain (

rootmaster# /usr/lib/nis/nisupdkeys

Fetch Public key for server 


Updating's public key.  

Public key: public-key

Update keys of all servers supporting the domain directory object.

salesmaster# nisupdkeys

Screen notices not shown) 

Update keys for a server named master7 in all the directories that store them.

rootmaster# nisupdkeys -H master7

Clear the keys stored by the directory object.

rootmaster# nisupdkeys -C

Clear the keys for the current domain directory object for the server named master7.

rootmaster# nisupdkeys -C -H master7