SET FOREIGN_KEY_CHECKS = 0;

ALTER TABLE `OMC_PUB`.`omcPubVarConf` ADD PRIMARY KEY IF NOT EXISTS (`instance`);

INSERT IGNORE INTO `OMC_PUB`.`omcPubVarConf` (`instance`, `pubVarName`, `pubVarValue`, `remark`) VALUES (31, 'Resource Threshold', '90', 'The threshold unit is %');

INSERT IGNORE INTO `OMC_PUB`.`omcPubVarConf` (`instance`, `pubVarName`, `pubVarValue`, `remark`) VALUES (32, 'NeLicenseUser', 'agtuser', 'Order to opear NE');

INSERT IGNORE INTO `OMC_PUB`.`omcPubVarConf` (`instance`, `pubVarName`, `pubVarValue`, `remark`) VALUES (33, 'NELicensePwd', 'admin123', 'Order to opear NE');

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 1 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 1 AND `alarmCode` = 2;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 1 AND `alarmCode` = 3;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 2 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 2 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 3 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 3 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 4 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 4 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 5 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 5 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 6 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 6 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 7 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 7 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 8 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 8 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 9 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 9 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 10 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 10 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 11 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 11 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 12 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 12 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 13 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 13 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 14 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 14 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 15 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 15 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 16 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 16 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 17 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 17 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 18 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 18 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 19 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 19 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 20 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 20 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 21 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 21 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 22 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 22 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 23 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 23 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 24 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 24 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 25 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 25 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 26 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 26 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 27 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 27 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 28 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 28 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 29 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 29 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 30 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 30 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 31 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 31 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 32 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 32 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 33 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 33 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 34 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 34 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 35 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 35 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 36 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 36 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 37 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 37 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 38 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 38 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 39 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 39 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 40 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 40 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 41 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 41 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 42 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 42 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 43 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 43 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 44 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 44 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 45 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 45 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 46 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 46 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 47 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 47 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 48 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 48 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 49 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 49 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 50 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 50 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 51 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 51 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 52 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 52 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 53 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 53 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 54 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 54 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 55 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 55 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 56 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 56 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 57 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 57 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 58 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 58 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 59 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 59 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 60 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 60 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 61 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 61 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 62 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 62 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 63 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 63 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 64 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 64 AND `alarmCode` = 1;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 65 AND `alarmCode` = 0;

DELETE FROM `OMC_PUB`.`sysAlarmConf` WHERE `sysTypeNo` = 350 AND `compCode` = 65 AND `alarmCode` = 1;

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (320, 0, 1, 'M3UA link (link name: BSC01)error', 'M3UA link (link name: BSC01)error', 0, 2, '', '', NULL, 'MSC', '', 0, 0, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (320, 0, 2, 'CIC error', 'CIC error', 0, 2, '', '', NULL, 'MSC', NULL, 0, 0, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (320, 0, 3, 'SGS Link (ip = x.x.x.x) not reachable', 'SGS Link (ip = x.x.x.x) not reachable', 0, 1, '', '', NULL, 'MSC', NULL, 0, 0, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (320, 0, 4, 'The number of VLR users exceeds the threshold 80%', 'The number of VLR users exceeds the threshold 80%', 0, 2, '', '', NULL, 'MSC', NULL, 0, 0, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (320, 0, 5, 'Session resources are busy (usage over 80%)', 'Session resources are busy (usage over 80%)', 0, 2, '', '', NULL, 'MSC', NULL, 0, 0, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (320, 0, 6, 'Media resources are busy (usage over 80%)', 'Media resources are busy (usage over 80%)', 0, 2, '', '', NULL, 'MSC', NULL, 0, 0, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (320, 0, 7, 'Media gateway (ip = x.x.x.x) not reachable', 'Media gateway (ip = x.x.x.x) not reachable', 0, 1, '', '', NULL, 'MSC', NULL, 0, 0, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (320, 0, 8, 'SIP gateway (ip = x.x.x.x)not reachable', 'SIP gateway (ip = x.x.x.x)not reachable', 0, 1, '', '', NULL, 'MSC', NULL, 0, 0, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (320, 0, 9, 'Media resources assigned failed (tg name: abc)', 'Media resources assigned failed (tg name: abc)', 0, 4, '', '', NULL, 'MSC', NULL, 0, 0, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (320, 0, 10, 'TCAP resources are busy (usage over 80%)', 'TCAP resources are busy (usage over 80%)', 0, 1, '', '', NULL, 'MSC', NULL, 0, 0, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (320, 0, 11, 'SIP resources are busy (usage over 80%)', 'SIP resources are busy (usage over 80%)', 0, 1, '', '', NULL, 'MSC', NULL, 0, 0, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (350, 0, 1, 'Error SMSC version', 'Error SMSC version', 0, 2, '', '', '0', 'SMSC', NULL, 0, 9999, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (350, 0, 2, 'Error system parameter', 'Error system parameter', 0, 2, '', '', NULL, 'SMSC', '', 0, 11, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (350, 0, 3, 'Can not assign process id', 'Can not assign process id', 0, 2, '', '', NULL, 'SMSC', '', 0, 4, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (350, 0, 4, 'pending resource to be exhausted', 'pending resource to be exhausted', 0, 1, '', '', NULL, 'SMSC', '', 0, 4, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (350, 0, 5, 'sip resource to be exhausted', 'sip resource to be exhausted', 0, 1, '', '', NULL, 'SMSC', '', 0, 4, 0);

INSERT IGNORE INTO `OMC_PUB`.`sysAlarmConf` (`sysTypeNo`, `compCode`, `alarmCode`, `alarmDesc_1`, `alarmDesc_2`, `alarmType`, `alarmLevel`, `alarmNote_1`, `alarmNote_2`, `smsNumber`, `level_1`, `level_2`, `instanceNo`, `EventCode`, `SendAlert`) VALUES (350, 0, 6, 'SMPP link  went down', 'SMPP link  went down', 0, 1, '', '', NULL, 'SMSC', 'SMSC', 0, 24, 0);

UPDATE `OMC_PUB`.`sysAlarmConf` SET `alarmDesc_1` = 'Database error', `alarmDesc_2` = 'Database error', `alarmType` = 0, `alarmLevel` = 4, `alarmNote_1` = '', `alarmNote_2` = '', `smsNumber` = NULL, `level_1` = 'HLR', `level_2` = '', `instanceNo` = 0, `EventCode` = 12, `SendAlert` = 0 WHERE `sysTypeNo` = 330 AND `compCode` = 0 AND `alarmCode` = 2;

UPDATE `OMC_PUB`.`sysAlarmConf` SET `alarmDesc_1` = 'Not supported MAP service', `alarmDesc_2` = 'Not supported MAP service', `alarmType` = 0, `alarmLevel` = 3, `alarmNote_1` = '', `alarmNote_2` = '', `smsNumber` = NULL, `level_1` = 'HLR', `level_2` = '', `instanceNo` = 0, `EventCode` = 20, `SendAlert` = 0 WHERE `sysTypeNo` = 330 AND `compCode` = 0 AND `alarmCode` = 3;

INSERT IGNORE INTO `OMC_PUB`.`sysMenuConf` (`keyId`, `menuTypeNo`, `level_1`, `level_2`, `level_3`, `level_4`, `level_5`, `name_1`, `name_2`, `httpLink`, `privilege`, `remark_1`, `remark_2`) VALUES (332, 0, 3, 91, 0, 0, 0, 'Alarm Event', 'Alarm Event', '../../fault/alarmList/alarmEvent_index.php', 2, '', '');

SET FOREIGN_KEY_CHECKS = 1;