//
// Name: DisableCntlReset.script
// Date: 03-22-2007
// Revision:
//
//
// Comments:
// This script is to set the HostNVSRAMByte 0x1B of the LnxclVMWare
// host type NVSRAM region to 0 for disabling the  propagation of 
// the bus/target/LUN reset that one controller received to the other 
// controller in a dual controller DS4K subsystem. 
//
// 
// For Controller A
show " ";
show " Display current setting and then Disable Controller Reset";
show " propagation in controller A  ... "; 
show controller [a] HostNVSRAMBYTE [13,0x1b];
set controller [a] HostNVSRAMBYTE [13,0x1b]=0x00;
// Now for Controller B
show " ";
show " Display current setting and then Disable Controller Reset";
show " propagation in controller B  ... "; 
show controller [b] HostNVSRAMBYTE [13,0x1b];
set controller [b] HostNVSRAMBYTE [13,0x1b]=0x00;
// Verify the settings
show " ";
show " Display new Disable Controller Reset setting for  ";
show " controllers A and B ..."; 
show controller [a] HostNVSRAMBYTE [13,0x1b];
show controller [b] HostNVSRAMBYTE [13,0x1b];
//
// 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];
