Save Restore Configuration (SAVRSTCFG)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Save/Restore Configuration (SAVRSTCFG) command saves and restores configuration information without requiring a dedicated system. The information saved and restored includes the following:

The user profile of the system default owner (QDFTOWN) becomes the default owner of any objects being restored in the system when the profile of the owner is not known to the system.

If an object already exists on the restore system, the public and private authorities of the existing object are kept. If the object does not exist in the library, all public authorities are restored, but any private authorities must be granted again.

Restrictions:

  1. To use this command, the user must have *SAVSYS authority, or object existence authority for (or be the owner of) each object specified if the object already exists on the system.
  2. This command is shipped with public *EXCLUDE authority.
  3. The user must have either *ALLOBJ authority or authority to the command.
  4. Changes made to the configuration while the SAVRSTCFG command is being run may not be reflected on the restore system, depending on when the changes occurred in relation to the send operation. If the operation cannot obtain a lock on a configuration object, a diagnostic message is issued; and the object is not saved and restored. The operation does not obtain the lock on a configuration object when a change or delete operation against the object does not complete before the default wait timer expires.
  5. If any system resource manager objects are in use, a message is issued and none of them are saved and restored. The commands which can cause this to happen are Work with Hardware Products (WRKHDWPRD) and Work with Hardware Resources (WRKHDWRSC). No display commands can cause the system resource manager database to lock. All other known functions do read-only operations.
  6. Both systems intended to participate in the save and restore operation must be connected to the same APPN network or, if the OptiConnect for I5/OS option is to be used, both systems must be joined by the OptiConnect for I5/OS hardware and software.
Top

Parameters

Keyword Description Choices Notes
OBJ Objects Single values: *ALL, *SRM
Other values (up to 300 repetitions): Generic name, name
Required, Positional 1
RMTLOCNAME Remote location name Name Required, Positional 2
OBJTYPE Object types Single values: *ALL
Other values (up to 5 repetitions): *CFGL, *CNNL, *COSD, *MODD, *NTBD
Optional
SRM System Resource Management *NONE, *TRA Optional
PRECHK Object pre-check *NO, *YES Optional
ALWOBJDIF Allow object differences Single values: *NONE, *ALL
Other values (up to 3 repetitions): *AUTL, *OWNER, *PGP
Optional
Top

Objects (OBJ)

Specifies the objects to be restored. Specify the name of each object, or the generic name of each group of objects to restore. A generic name is a character string that contains one or more characters followed by an asterisk (*). If an asterisk (*) is not specified with the name, the system assumes that the name is a complete object name.

If the Object types (OBJTYPE) parameter has a value of *ALL, all the object types listed in the description of the OBJTYPE parameter are restored, if they have the specified names.

System resource management (SRM) objects cannot be restored individually or by specifying a generic name. To restore only SRM objects, specify *SRM for this parameter and a value for the System Resource Management (SRM) parameter.

This is a required parameter.

Single values

*ALL
All the device configuration objects are restored, depending on the values specified for the OBJTYPE parameter.
*SRM
The device configuration objects are not restored, but system resource management (SRM) objects are restored based on the SRM parameter value.

ATTENTION You must specify SRM(*NONE) on the RSTCFG, unless the system you are restoring to is the exact same hardware configuration that the original configuration was saved on, to prevent the restore of the SRM information. If the SRM information is restored, the configuration objects may become unusable.

Other values (up to 300 repetitions)

generic-name
Specify one or more generic names of groups of objects in the specified library to restore.

Note: A generic name is specified as a character string that contains one or more characters followed by an asterisk (*). If a generic name is specified, then all objects that have names with the same prefix as the generic object name are selected.

name
Specify one or more names of specific objects to restore. Both generic names and specific names can be specified in the same command. A maximum of 300 object names can be specified.
Top

Remote location (RMTLOCNAME)

Specifies the remote location to connect with. Specify the remote location name using the format cccccccc or nnnnnnnn.cccccccc, where nnnnnnnn is the network identifier (ID) and cccccccc is the remote location name.

remote-location-name
Specify the remote location name associated with the system to which you want to restore objects. The local network ID (LCLNETID) network attribute is used as the value of the network identifier.
network-ID.location-name
Specify the network identifier and the remote location name associated with the system to which you want to restore objects.
Top

Object types (OBJTYPE)

Specifies the types of i5/OS system objects that are saved and restored.

*ALL
All configuration object types that are specified by name are saved and restored. If OBJ(*ALL) is specified, all of the saved configuration objects are saved and restored. restored. The following types can be specified:
*CFGL
All configuration list object types are saved and restored.
*CNNL
All connection list object types are saved and restored.
*COSD
All class-of-service description object types are saved and restored.
*IPXD
All Internetwork Packet Exchange object types are saved and restored.
*MODD
All mode description object types are saved and restored.
*NTBD
All NetBIOS description object types are saved and restored.
Top

System Resource Management (SRM)

Specifies the type of system resource management (SRM) information to be saved and restored. This parameter is valid only when *ALL or *SRM is specified on the OBJ parameter.

*NONE
No SRM information is restored.
*TRA
All token-ring adapter information is restored.
Top

Object pre-check (PRECHK)

Specifies whether the save configuration operation ends if any of the objects satisfy the following conditions:

*NO
The save operation continues, saving only configuration and system resource management (SRM) objects that can be saved.
*YES
The save operation ends before any data is written to the media if any configuration objects or system resource manager objects cannot be saved.
Top

Allow object differences (ALWOBJDIF)

Specifies whether differences are allowed between the saved objects and the restored objects.

Notes:

  1. You must have all object (*ALLOBJ) special authority to specify any value other than *NONE for this parameter.
  2. If differences are found, the final message for the restore operation is an escape message rather than the normal completion message.

The types of differences include:

Single values

*NONE
None of the differences listed above are allowed on the restore operation. See the description of each individual value to determine how differences are handled.
*ALL
All of the differences listed above are allowed on the restore operation. See the description of each individual value to determine how differences are handled.

Other values (up to 3 repetitions)

*AUTL
Authorization list differences are allowed. If the saved object had an authorization list and the object exists on the system but does not have the same authorization list, the object is restored with the authorization list of the existing object. If the saved object had an authorization list and the object does not exist and it is being restored to a different system than the save system, the object is restored and it is linked to the authorization list. If the authorization list does not exist, the public authority is set to *EXCLUDE.

If this value is not specified, authorization list differences are not allowed. If the saved object had an authorization list and the object exists on the system but does not have the same authorization list, the object is not restored. If the saved object had an authorization list and the object does not exist and it is being restored to a different system than the save system, the object is restored, but it is not linked to the authorization list, and the public authority is set to *EXCLUDE.

*OWNER
Ownership differences are allowed. If an object already exists on the system with a different owner than the saved object, the object is restored with the owner of the object on the system.

If this value is not specified, ownership differences are not allowed. If an object already exists on the system with a different owner than the saved object, the object is not restored.

*PGP
Primary group differences are allowed. If an object already exists on the system with a different primary group than the saved object, the object is restored with the primary group of the object on the system.

If this value is not specified, primary group differences are not allowed. If an object already exists on the system with a different primary group than the saved object, the object is not restored.

Top

Examples

Example 1: Saving and Restoring Generic Objects

SAVRSTCFG   OBJ(ABCD*)  RMTLOCNAME(SYSTEM1)  OBJTYPE(*CFGL)
            ALWOBJDIF(*NONE)

This command saves and restores all objects whose names begin with ABCD and whose object type is configuration list (*CFGL). Only those objects that have no differences on SYSTEM1 will be restored.

Example 2: Saving and Restoring All Objects

SAVRSTCFG   OBJ(*ALL)  RMTLOCNAME(SYSTEM1)

This command saves and restores all configuration objects whose types match the five object types listed on the OBJTYPE parameter.

Top

Error messages

*ESCAPE Messages

CPCAD80
&1 objects saved and restored.
CPFAD8D
An error occurred during the &1 operation.
CPFAD80
Unable to establish connection from &1 to &2.
CPFAD81
User profile &1 not found on remote location &2.
CPFAD82
Remote location &1 not found.
CPFAD83
Remote location &1 cannot be source location.
CPFAD84
ObjectConnect internal error, function code &1, return code &2.
CPFAD86
Location name &1 unable to close &2.
CPFAD88
Unable to establish connection from &1 to &2.
CPFAD93
APPC failure. Failure code is &3.
CPF389C
ObjectConnect internal error, function code &1, return code &2.
Top