// Name: SameWWN.scr
// Date: 05/08/2004
// Revision:
// 05-04-2004: added show commands before and after the NVSRAM settings
//             added controller reset commands for fw 05.3x and higher
// 
// *** Setup RAID controllers to have Same WWN ***
// The World Wide Names (node) will be same for each controller pair.
//
// The controllers must be reset or power-cycled before these settings take affect.
//
// Use Same WWN
show "Showing the current state of WWN NVSRAM setting"; 
show controller[a] nvsrambyte[0x34]; 
show controller[b] nvsrambyte[0x34]; 
//
show "Setting to enable sane WWN for each controller ..."; 
set controller[a] nvsrambyte[0x34] = 0x06,0x02;
set controller[b] nvsrambyte[0x34] = 0x06,0x02;
show controller[a] nvsrambyte[0x34]; 
show controller[b] nvsrambyte[0x34]; 
//
// 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. 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]; 

