// IMPORTANT: You Must REPLACE Z In The Script Commands In This File With The 
// Appropriate Host Number/Index Of The Host Type That You Want To ENABLE AVT.
//
// Name: Enable AVT Script
// Date: 02-26-2003
// Revision:
// - 08-20-2004, the value z has been change to 5 so that the user does not need
//                       to make manual modifications to enable avt for Linux 
//                       het host region.
//                     
// Comments:
// This script is to set the HostNVSRAMByte 0x24 to 1 for enabling AVT.
// Because in fw 5.x or higher, the AVT is enable by host type; one
// must supply to correct number of the host type in order for the
// script to work correctly. Please refer to the table below for 
// the cross reference between host type and host number. 
//
// Host number/index	Host Type	                        Note
//     0		Windows Non-Clustered (SP5 or higher)
//     1		Windows Clustered (SP5 or higher)
//     2		Windows 2000 Non-Clustered
//     3		Windows 2000 Clustered
//     4		NetWare-IBMSAN				enable by default
//     5		Linux					enable by default
//     6		AIX
//     7		HP-UX					enable by default
//     8		Solaris (Sparc)
//     9		PTX					enable by default
//    10		Irix
//    11		Netware Failover			enable by default
//    12		IBM TS SAN VCE				enable by default
//    13		LNXCL
//
// Replace the value z in the following script commands with the appropriate host 
// index/number.
// 
//
// For Controller A
show " ";
show " Displayed old setting and then enable AVT in controller A"; 
show controller [a] HostNVSRAMBYTE [5,0x24];
set controller [a] HostNVSRAMBYTE [5,0x24]=0x01;
// Now for Controller B
show " ";
show " Displayed old setting and then enable AVT in controller B"; 
show controller [b] HostNVSRAMBYTE [5,0x24];
set controller [b] HostNVSRAMBYTE [5,0x24]=0x01;
// Verify the settings
show " ";
show " Displayed new setting for controllers A and B"; 
show controller [a] HostNVSRAMBYTE [5,0x24];
show controller [b] HostNVSRAMBYTE [5,0x24];
//
// For fw 5.3x.xx.xx and later ...,  you can reset the
// controller using these two script commands. Otherwise, you
// must manually reset the controller.
//
show " ";
show "reset controllers A and B";
reset Controller [a];
reset Controller [b];
