HPlogo Using the Node Management Services (NMS) Utilities > Chapter 5 Using NMMGR in Maintenance Mode

COPYCONF

MPE documents

Complete PDF
Table of Contents
Index

Copies a configuration subtree.

Syntax


  COPYCONF srcpath[:srcfile][,[destpath][:destfile]] [;KEEP][;NOVERS]

Parameters

srcpath

The name of a configuration path in the source file that describes the location of the subtree to copy (source path). It is composed of one to eight path identifiers separated by periods:

pathid.pathid.pathid...

srcfile

The name of an NMMGR configuration file (NCONF file) that contains the subtree to be copied (source file). The format is:

filename[.groupname[.accountname]]

A file lockword may not be specified. A file equation may be employed through explicit use of the back-reference:

*DESIGNATOR

destpath

The name of the path that describes where the subtree is to be placed in the destination file (destination path), in the same format as srcpath. Select and type-select path identifiers may be changed from the corresponding identifier in srcpath as long as the new identifier is type-compatible. If this parameter is not specified, the destination path is assumed to be the same as the path specified in srcpath.

destfile

The name of an NMMGR configuration file that is to receive the copied data (destination file). The format is the same as srcfile. This file name may be the same as that specified in srcfile, which allows you to copy data from one location within a file to another location in the same file. If this parameter is not specified, the destination file is assumed to be the same as the source file.

KEEP

Designates that if the destpath already exists in destfile, the operation will not be performed. The default (when KEEP is not specified) is to replace the destination subtree with the source path.

NOVERS

Designates that no version check will be performed on the source or destination paths. The default is to perform version checks.

Description

COPYCONF allows data to be copied from one configuration file into another file, or into the same file in a different location. Source and destination paths are used to direct where a subtree is to come from and where it is to be copied to. (You can also copy a configuration subtree using the NMMGR Configuration Subtree Copy screen in screen mode.)

Example

To copy data from one file into another file using the same path (the command must be entered in one line):
  NMMGR> COPYCONF NETXPORT.NI.LAN1.INTERNET:FILEA,NETXPORT.NI.LAN1.INTERNET;FILEB
To copy data to a different path in the same file:

  NMMGR> COPYCONF LINKCONF.LINK1:FILEA, LINKCONF.LINK2:FILEA




CONTINUE


DELETECONF