© Copyright IBM Corp. 2003. All rights reserved. 299
Appendix G. TSM_Config_Tape.mcr
macro file
The following is an example of the TSM_Config_Tape.mcr reference in “ITSM
server WIP configuration” on page 184.
Example 10-6 TSM_Config_Tape.mcr file
------------------------------------------------- Begin Macro --------------------------------------
/* ==================================================================== */
/* */
/* */
/* (C) COPYRIGHT International Business Machines Corp. 2002 */
/* All Rights Reserved */
/* Licensed Materials - Property of IBM */
/* */
/* US Government Users Restricted Rights - Use, duplication or */
/* disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */
/* */
/* ==================================================================== */
/*================================================================*/
/* */
/* Macro:tsmtask-2.mcr */
/* */
G
300 IBM Web Infrastructure Orchestration
/* Author:Tivoli Services */
/* */
/* Date:09/23/2003 */
/* */
/* Description: Build TSM Server configuration. The */
/* definitions in this macro must be edited */
/* to reflect the customers environment. */
/* */
/* */
/*================================================================*/
/*================================================================*/
/* */
/* Create the Tape Library */
/* */
/*================================================================*/
/* Use this for all libraries */
DEFine LIBRARY dlt_lib LIBTYPE=SCSI
/* uncomment for IBM DLT Library */
DEFine path aus0010labpf01 dlt_lib srctype=server desttype=library
device=lb3.0.0.1 online=yes
/*================================================================*/
/* */
/* Create the Tape Drives */
/* */
/*================================================================*/
/* uncomment for each tape drive in the DLT Library */
DEFine DRIVE dlt_lib tape1 ELEMent=1030
DEFine path aus0010labpf01 tape1 srctype=server desttype=drive
library=dlt_lib device=mt0.0.0.1 online=yes
DEFine DRIVE dlt_lib tape2 ELEMent=1031
DEFine path aus0010labpf01 tape2 srctype=server desttype=drive
library=dlt_lib device=mt1.0.0.1 online=yes
/*DEFine DRIVE dlt_lib tape3 ELEMent=1032 */
/*DEFine path aus0010labpf01 tape3 srctype=server desttype=drive
library=dlt_lib device=mt2.0.0.1 online=yes */
/*DEFine DRIVE dlt_lib tape4 ELEMent=1033 */
/*DEFine path aus0010labpf01 tape4 srctype=server desttype=drive
library=dlt_lib device=mt3.0.0.1 online=yes */
Appendix G. TSM_Config_Tape.mcr macro file 301
/*DEFine DRIVE dlt_lib tape5 ELEMent=1034 */
/*DEFine path aus0010labpf01 tape5 srctype=server desttype=drive
library=dlt_lib device=mt4.0.0.1 online=yes */
/*DEFine DRIVE dlt_lib tape6 ELEMent=1035 */
/*DEFine path aus0010labpf01 tape6 srctype=server desttype=drive
library=dlt_lib device=mt5.0.0.1 online=yes */
/*================================================================*/
/* */
/* Create the Device Classes */
/* */
/*================================================================*/
/* Set MOUNTLIMIT to be the number of drives */
DEFine DEVCLASS DLTTAPE LIBRARY=dlt_lib DEVTYPE=DLT FORMAT=dlt35
ESTCAPACITY=35G PREFIX=TSM MOUNTLIMIT=2
/*================================================================*/
/* */
/* Description: Build storage pool definitions using this */
/* macro. */
/* */
/* */
/*================================================================*/
/*================================================================*/
/* */
/* Create the Storage Pools */
/* */
/*================================================================*/
/* Unified storage pools */
DEFine STGpool prod_vpool DLTTAPE DESC="Primary vault pool" MAXSCRATCH=150
REU=3 POOLTYPE=copy
DEFine STGpool prod_tpool DLTTAPE DESC="Primary tape pool" MAXSCRATCH=150
REU=0 HIghmig=100 LOwmig=50
update STGpool prod_dpool NEXTstgpool=prod_tpool
/* WAS server storage pools */
DEFine STGpool db_vpool DLTTAPE DESC="was vault pool" MAXSCRATCH=150 REU=3
POOLTYPE=copy
DEFine STGpool db_tpool DLTTAPE DESC="wastape pool" MAXSCRATCH=150 REU=0
HIghmig=100 LOwmig=50
update STGpool db_dpool NEXTstgpool=db_tpool
302 IBM Web Infrastructure Orchestration
/*================================================================*/
/* */
/* Description: Build tape library definitions using this */
/* macro. */
/* */
/* */
/*================================================================*/
/*================================================================*/
/* */
/* Checkin the Tapes */
/* */
/*================================================================*/
/* Single tape */
/*checkin libv dlt_lib H00000 STAT=SCR */
/* Multiple tapes */
/* checkin libv dlt_lib volr=H00001,H00009 search=yes STAT=SCR */
/* Label and checkin multiple tapes */
label libv dlt_lib checkin=scratch search=yes labelsource=barcode
overwrite=yes
/*================================================================*/
/* */
/* */
/* */
/* Description: Build client schedule definitions using this */
/* macro. */
/* */
/* */
/* Description: Administrative work is automated by these */
/* schedules. */
/* 1. Migration of disk pools to tape pools */
/* 2. Copy of tape pools to vault pools */
/* 3. Reclamation of vault pools */
/* 4. Reclamation of tape pools */
/* 5. Make a full backup the TSM DB to tape */
/* 6. Run expiration processing */
/*================================================================*/
/* Daily system activities */
/*del script Daily_act */
def script Daily_act "/*
------------------------------------------------------*/" \

Get IBM Web Infrastructure Orchestration now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.