// Name: Enable Drive Migration 
//  
// Date: 01-23-2006 
// Revision: 1.5
//   Version 1.4 fixed the misleading on/off comment - CMVC 296330. 
//   Version 1.5 change the wording about the expected value. 
// Comments: 
// This script is intended to work with controllers at Firmware 05.30.xx.xx and 
// higher only. 
//
// This script returned the FAStT to it’s default operation of importing 
// configuration informration from disks. 
//
// This script will reboot both controllers in the FAStT unit. If your 
// hosts are configured for multi-path support, this can be done with I/O 
// running to the controllers. If your hosts are not configured for 
// redundant access you must schedule downtime before running this 
// script. 
//
// See the directions at the bottom of this script if you do not have multi 
// path software installed and wish to prevent the controller restarts 
//
// Show the current state of Drive Migration 
show "Showing the current state of Drive Migration. The return value might have";
show "bit 1 set to 1, which means drive migration is disable. Note: The value";
show "will be returned as a hex value. Normally, the return value might be ";
show "either 0x82 or 0x2 (bit7 .... bit1bit0=xxxx xx1x)."; 
show " ";
show controller[a] nvsrambyte[0x35]; 
show controller[b] nvsrambyte[0x35]; 
//
// Setting Drive Migration to Enable 
show "Setting Drive Migration to Enable";
set controller[a] nvsrambyte[0x35] = 0x02,0x00; 
set controller[b] nvsrambyte[0x35] = 0x02,0x00; 
show "Showing the new state of Drive Migration. The return value should have";
show "bit 1 set to 0, which means drive migration is enable. This should be";
show "the default setting for the DS4000 controllers. Note: The value will";
show "be returned as a hex value (bit7 .... bit1bit0=xxxx xx0x).";
show " ";
show controller[a] nvsrambyte[0x35]; 
show controller[b] nvsrambyte[0x35]; 
//
// Reset Controllers to make changes active. Note: 
// To prevent the controllers from restarting, add ’//’ to the beginning 
// of each of the lines below. This will comment out the restart of the 
// controllers. Important: The controllers will have to be restarted for the 
// changes in this script to take effect. 
//
show "Resetting controller A"; 
reset Controller [a]; 
show "Resetting controller B"; 
reset Controller [b]; 
show "Drive Migration is now enabled.";
