![]() |
![]() |
You need information about your server machine to rebuild its replacement. You also need information about client node machines to rebuild or restore them. Follow this procedure to specify that information and store it in the server database:
Server Machine
Issue the DEFINE MACHINE command. with ADSMSERVER=YES. For example, to define machine MACH22 in building 021, 2nd floor, in room 2929, with a priority of 1, enter:
define machine tsm1 adsmserver=yes priority=1
Client Machines
Issue the DEFINE MACHINE command. For example, to define machine MACH22 in building 021, 2nd floor, in room 2929, with a priority of 1, enter:
define machine mach22 building=021 floor=2 room=2929 priority=1
Issue the DEFINE MACHNODEASSOCIATION command. Use this association information to identify client nodes on machines that were destroyed. You should restore the file spaces associated with these nodes. For example, to associate node CAMPBELL with machine MACH22, enter:
define machnodeassociation mach22 campbell
To query machine definitions, issue the QUERY MACHINE command. See the example, in Client Recovery Scenario.
The following partial output is from a query on an AIX client machine.
+--------------------------------------------------------------------------------+ |--1 Host Name: mach22 with 256 MB Memory Card | |--- 256 MB Memory Card | |--- | |--4 Operating System: AIX Version 4 Release 3 | |--- | |--- Hardware Address: 10:00:5x:a8:6a:46 | +--------------------------------------------------------------------------------+
Specify characteristics and recovery instructions one line at a time with separate INSERT MACHINE commands:
insert machine mach22 1 characteristics="Host Name: mach22 with 256 MB Memory Card" insert machine mach22 2 characteristics="Operating System: AIX Version 4 Release 3"
insert machine mach22 1 - recoveryinstructions="Recover this machine for accounts receivable dept."
The following example shows how to use a local program to add machine characteristics or recovery instructions:
+--------------------------------------------------------------------------------+ | echo "devices" > clientinfo.txt | | lsdev -C | sort -d -f >> clientinfo.txt | | echo "logical volumes by volume group" >> clientinfo.txt | | lsvg -o | lsvg -i -l >> clientinfo.txt | | echo "file systems" >> clientinfo.txt | | df >> clientinfo.txt | +--------------------------------------------------------------------------------+
The file, clientinfo.txt, is then transferred to the MVS operating system and processed by the REXX EXEC, which builds a macro of INSERT commands (one INSERT command for each line in clientinfo.txt). Figure 73 is the example REXX EXEC named ANRMACHI that is shipped with DRM.
Figure 73. Example of a REXX EXEC File to Insert the Machine Characteristics
+--------------------------------------------------------------------------------+
|/*REXX*/ |
|/* Read machine characteristics from a file and build TSM macro commands |
|/* to insert the information into the machine characteristics table. |
|/* Invoke with: |
|/* exec anrmachi machinename infodsn outmacrodsn |
| |
|arg MACHINENAME INDSN OUTDSN . |
| |
|'FREE FI(INDD OUTDD)' |
|'ALLOC DA('INDSN') F(INDD) SHR REUSE' |
|'DELETE 'OUTDSN |
|'ALLOC DA('OUTDSN') F(OUTDD) NEW REUSE RECFM(V) LRECL(255)' |
|OLINE.1 = 'delete machine 'MACHINENAME' type=characteri' |
|'EXECIO 1 DISKW OUTDD (STEM OLINE.' |
| |
|L = 1 |
|do forever |
| 'EXECIO 1 DISKR INDD (STEM ILINE.' |
| if RC = 0 then do |
| OLINE.1 = 'insert machine 'MACHINENAME L' characteri='strip(ILINE.1,'TRAILING'|
| 'EXECIO 1 DISKW OUTDD (STEM OLINE.' |
| L = L + 1 |
| end |
| else leave |
|end /* do */ |
| |
|'EXECIO 0 DISKR INDD (FINIS' |
|'EXECIO 0 DISKW OUTDD (FINIS' |
|'FREE FI(INDD OUTDD)' |
+--------------------------------------------------------------------------------+
The ANRMACHI REXX EXEC is run from a TSO command line as follows:
exec anrmachi acctsrecv clininfo.txt clininfo.mac
The macro is then run on an administrative client of the MVS operating system to load the data into the database.
> dsmadmc -id=xxx -pw=xxx macro clientinfo.macYou can view your machine characteristics by issuing the QUERY MACHINE command with FORMAT=CHARACTERISTICS parameter.
To insert recovery instructions, you can use the same technique by changing the 'characteri=' parameter in the REXX EXEC to 'recoveryinst=' with the RECOVERYINSTRUCTIONS parameter.