sortColumn = LIB_SORT_DEFAULT; $sortCriteria->ascending = true; $drives = get_all_drives($user, $sortCriteria); foreach ($driveGuids as $driveGuid) { error_log( "- - - - - - - - set_controlPath($user, $libGuid, $driveGuid) " ); } //set_command_path_drive($user, $libGuid, $driveGuid); if(get_snmp_audit_logging_enabled($user) == '1') { foreach ($driveGuids as $driveGuid) { foreach($drives as $drive) { if($drive->guid == $driveGuid) { error_log("send_snmp_audit_logging_drive_config_changed_trap"); send_snmp_audit_logging_drive_config_changed_trap($user, $drive->name, $drive->wwnn, $drive->logicalAddress, $drive->serialNumber, "A tape drive configuration setting has been changed from the web UI"); break; } } } } $cpType = get_control_path_type($user, $libGuid); set_multi_command_path_drives($user, $libGuid, $driveGuids, $cpType); $returnMessage = "Set Control Path Complete."; } ?>