private void deleteStorageHWIDs(StorageSystem storage,List<Initiator> initiators){
  if (initiators == null || initiators.isEmpty()) {
    _log.debug("No initiators ...");
    return;
  }
  CIMObjectPath hwIdManagementSvc=_cimPath.getStorageHardwareIDManagementService(storage);
  for (  Initiator initiator : initiators) {
    try {
      CIMArgument[] createHwIdIn=_helper.getDeleteStorageHardwareIDArgs(storage,initiator);
      CIMArgument[] createHwIdOut=new CIMArgument[5];
      _helper.invokeMethod(storage,hwIdManagementSvc,SmisConstants.DELETE_STORAGE_HARDWARE_ID,createHwIdIn,createHwIdOut);
    }
 catch (    WBEMException e) {
      _log.error("deleteStorageHWIDs -- WBEMException: " + e.getMessage());
    }
catch (    Exception e) {
      _log.error("deleteStorageHWIDs -- Exception: " + e.getMessage());
    }
  }
}

private void deleteStorageHWIDs ( StorageSystem storage , List < Initiator > initiators ) { if ( initiators == null || initiators . isEmpty ( ) ) { _log . debug ( "No initiators ..." ) ; return ; } CIMObjectPath hwIdManagementSvc = _cimPath . getStorageHardwareIDManagementService ( storage ) ; for ( Initiator initiator : initiators ) { try { CIMArgument [ ] createHwIdIn = _helper . getDeleteStorageHardwareIDArgs ( storage , initiator ) ; CIMArgument [ ] createHwIdOut = new CIMArgument [ 5 ] ; _helper . invokeMethod ( storage , hwIdManagementSvc , SmisConstants . DELETE_STORAGE_HARDWARE_ID , createHwIdIn , createHwIdOut ) ; } catch ( WBEMException e ) { _log . error ( "deleteStorageHWIDs -- WBEMException: " + e . getMessage ( ) ) ; } catch ( Exception e ) { _log . error ( "deleteStorageHWIDs -- Exception: " + e . getMessage ( ) ) ; } } }
method invokes the smi - s operation to remove the initiator hardware id from the array . this should be called whenever the initiator is removed from an export or when the export is deleted .
