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."
To help automate the adding of client machine information, a sample awk script named machchar.awk.smp is shipped with DRM. 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 | +--------------------------------------------------------------------------------+
Figure 84 is an example procedure named machchar to add machine characteristics. The machchar.awk.smp script is shipped with DRM and is located in the /opt/tivoli/tsm/server/bin directory.
Figure 84. Example of Awk Script File to Insert Machine Characteristics
+--------------------------------------------------------------------------------+ |# Read machine characteristics from a file and build TSM macro commands | |# to insert the information into the machine characteristics table. | |# Invoke with: | | | |# nawk -f machchar.awk -v machine=acctrcv filewithinfo | | BEGIN { | | print "delete machine "machine" type=characteri" | | } | | { | | print "insert machine "machine" "NR" characteri=\""$0"\"" | | } | | END { | | } | +--------------------------------------------------------------------------------+ |
nawk -f machchar.awk -v machine=acctrcv clientinfo.txt > clientinfo.mac
> dsmadmc -id=xxx -pw=xxx macro clientinfo.macYou can view your machine characteristics by issuing the QUERY MACHINE command with FORMAT=CHARACTERISTICS parameter.