Using the Node Management Services (NMS) Utilities (32022-90053)

Chapter 5 109
Using NMMGR in Maintenance Mode
MERGEDIR
KEEP Indicates that entries in the current directory are to be
retained when duplicate entries exist in the source
directory.
This keyword is not applicable when the source is a
configuration file.
NOKEEP Indicates that entries in the current directory are to be
overwritten with duplicate entries found in the source
directory.
This keyword is not applicable when the source is a
configuration file.
TIMESTAMP Indicates that duplicate entries found in both
directories are to be compared, and the one that was
created most recently will be stored in the current
directory.
This is the default action taken when neither KEEP,
NOKEEP, nor TIMESTAMP is specified.
This keyword is not applicable when the source is a
configuration file.
Description
MERGEDIR takes entries from either another network directory or an
NMMGR configuration file and merges them into the current directory.
Entries that do not exist in the current directory are unconditionally
added to the current directory. Duplicate entries are handled differently
depending upon the source file type. If the source file is a network
directory, then duplicate entries are either ignored or replaced in the
current directory depending on the KEEP, NOKEEP, or TIMESTAMP
keyword used. If the source file is an NMMGR configuration file, then
the duplicate entry is replaced in the current directory.
Example
To merge an entry from the system configuration file and store it as a
local entry, enter the following command:
NMMGR> MERGEDIR NMCONFIG.PUB.SYS ;LOCAL
To merge all global entries from another network directory, overwriting
any duplicates in the current directory, enter the following command:
NMMGR> MERGEDIR RMOTEDIR ;NOKEEP