HP XP Command View Advanced Edition Software User Manual
Page 250
ARG mediaTypeValue;
IF mediaTypeValue = '0000' THEN
mediaTypeStr = 'SSD';
ELSE IF mediaTypeValue = '0001' THEN
mediaTypeStr = 'SAS 15K';
ELSE IF mediaTypeValue = '0002' THEN
mediaTypeStr = 'SAS 10K';
ELSE IF mediaTypeValue = '0003' THEN
mediaTypeStr = 'SATA 7.2K';
ELSE IF mediaTypeValue = '0004' THEN
mediaTypeStr = 'EXTERNAL M';
ELSE IF mediaTypeValue = '0005' THEN
mediaTypeStr = 'SAS 7.2K';
ELSE IF mediaTypeValue = '0006' THEN
mediaTypeStr = 'MIXED MEDIA';
ELSE IF mediaTypeValue = '0007' THEN
mediaTypeStr = 'EXTERNAL H';
ELSE IF mediaTypeValue = '0008' THEN
mediaTypeStr = 'EXTERNAL L';
ELSE
mediaTypeStr = '';
mediaTypeStr = '"'mediaTypeStr'"';
RETURN mediaTypeStr;
KTDEMO02 (Create a tiering policy group definition file)
/* REXX */
/**********************************************************************/
/* */
/* All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd. */
/* */
/**********************************************************************/
/* */
/* KTDEMO02 - A sample demonstration script that */
/* generates TPG configuration dataset. */
/* */
/* This sample script uses the following CLI commands. */
/* - KTIMPORT */
/* */
/* This sample script assumes the following settings. */
/* 1) DSK configuration dataset is already created. */
/* 2) Tiering policy information CSV dataset is already created. */
/* 3) Policy ID of tiering policy information CSV dataset is */
/* specified in POLICY() option value in the script's argument. */
/* 4) The CSV and DSK dataset name's prefix is PREFIX() option */
/* value in the script's argument. */
/* If argument is "PREFIX(KT.DEMO) POLICY(POLICY1)", */
/* CSV dataset name is : KT.DEMO.POLICY.POLICY1 */
/* DSK dataset name is : KT.DEMO.DSK.SNnnnnn.LOCAL */
/* nnnnn is serial number */
/* */
/**********************************************************************/
/* Sample script begins. */
SAY "#-- BEGIN KTDEMO02.";
/*
* Parse argument specified in the EXEC command.
*/
Sample scripts
250