IBM Power Systems

IBM Power Systems

About This Blog

Warm wishes and welcome to all AS400 Administrators and Operators.



This is exclusive blog for iSeries system Administrators working anywhere in the world. Also a place for guys and gals who want to share knowledge pertaining to iSeries. This blog has been designed for exchanging knowledge on AS400 or iSeries server administration and operations.



Thursday, March 18, 2010

Saving and Restoring All TCP/IP Configuration Files

Saving just the physical configuration files and then restoring them can cause problems. This is because the logical files, which are used by different functions to access the data stored in the physical files, point to the renamed physical file if just the physical file is restored. The renamed physical file, which is created by the restore database functions, maintains the indexes to the logical files. Another reason to save and restore the configuration files as a group is that there are some dependencies between some of the files. Saving and restoring just a subset of the files could also cause problems, especially when activating TCP/IP processing.

One method to save all TCP/IP files (logical and physical) is to type the following commands:
SAVOBJ OBJ(QATOC*) LIB(QUSRSYS) DEV(*SAVF) OBJTYPE(*FILE) SAVF(yourlib/yoursavf)

SAVOBJ OBJ(QATM*) LIB(QUSRSYS) DEV(*SAVF) OBJTYPE(*FILE) SAVF(yourlib/yoursavf)

To restore all TCP/IP files on the system, use the following commands:

RSTOBJ OBJ(QATOC*) SAVLIB(YOURLIB) DEV(*SAVF) OBJTYPE(*FILE) SAVF(yourlib/yoursavf) MBROPT(*ALL) + ALWOBJDIF(*ALL)

RSTOBJ OBJ(QATM*) SAVELIB(QUSRSYS) DEV(*SAVF) OBJTYPE(*FILE) SAVF(yourlib/yoursavf) MBROPT(*ALL) + ALWOBJDIF(*ALL)

After the restore is complete, there is some required cleanup. Begin by issuing the following command:

WRKOBJ OBJ(QUSRSYS/QATOC*)

After the command has been issued, complete the following steps:

1 Delete all of the old logical files that are named QATOCL00xx (with object description of 'Old name...').
2 Delete all of the old physical files that are named QATOCX00xx (with object description of 'Old name...').

No comments:

Post a Comment