Compare commits

..
412 Commits
Author SHA1 Message Date
TsMask 2bebf6b729 chore: 更新版本号 2.2503.6 2025-05-09 19:41:50 +08:00
TsMask 17591b1705 chore: 更新版本号 2.2503.5 2025-04-12 10:11:01 +08:00
TsMask 5d9425c457 chore: 更新版本号 2.2503.4 2025-03-31 20:06:01 +08:00
TsMask d8624c2fe9 chore: 更新版本号 2.2503.3 2025-03-21 15:36:13 +08:00
TsMask cb8692cf44 chore: 更新版本号 2.2503.2 2025-03-14 11:04:59 +08:00
TsMask cc45dd1be3 chore: 更新版本号 2.2503.1 2025-03-08 11:11:18 +08:00
TsMask 56d62831eb fix: badeb 中文字符串替换 2025-03-04 18:09:37 +08:00
TsMask 246fb027cd fix: badeb 中文字符串替换 2025-03-04 16:13:51 +08:00
TsMask 7818759109 chore: 更新版本号 2.2502.4 2025-02-28 19:56:37 +08:00
TsMask 48d5a0a783 feat: 添加kylin|anolis打包rpm 2025-02-24 16:36:32 +08:00
TsMask e42d35c5e0 chore: 更新版本号 2.2502.3 2025-02-21 21:11:29 +08:00
zhangsz 667f6b1987 fix: ... 2025-02-21 19:39:40 +08:00
zhangsz 6adf76b589 fix: build arm /amd 2025-02-21 19:38:51 +08:00
zhangsz 49f0ba4a7a fix: ... 2025-02-20 21:20:04 +08:00
zhangsz 27826e4523 fix: ... 2025-02-20 21:16:25 +08:00
zhangsz 1316629dc8 fix:... 2025-02-20 21:06:47 +08:00
zhangsz 82a0d32f15 fix: git ignore 2025-02-20 20:42:35 +08:00
zhangsz 83ce21d2c3 fix: ... 2025-02-20 20:39:35 +08:00
zhangsz 1efc851b39 fix: support openEuler build 2025-02-20 19:50:18 +08:00
TsMask d9c16a616c chore: 更新版本号 2.2502.2 2025-02-14 19:41:46 +08:00
TsMask a2800bed0d chore: 更新版本号 2.2502.1 2025-02-08 19:47:04 +08:00
TsMask cf97351fc9 chore: 更新版本号 2.2501.4 2025-01-24 20:42:17 +08:00
TsMask 251284aa38 chore: 更新版本号 2.2501.3 2025-01-17 18:43:50 +08:00
TsMask 1fe4eddd33 del: 移除程序打包service错误 2025-01-11 11:37:40 +08:00
TsMask 6211a88f2e del: 移除captrace/data2html/crontask程序 2025-01-11 10:17:20 +08:00
TsMask b73cd05af8 chore: 更新版本号 2.2501.2 2025-01-10 19:41:54 +08:00
TsMask 16d20fcad4 chore: 更新版本号 2.2501.1 2025-01-03 21:51:22 +08:00
TsMask 9f1a097e2a chore: 更新版本号 2.2412.4 2024-12-28 10:56:29 +08:00
TsMask cfa0825e22 chore: 更新版本号 2.2412.3 2024-12-20 18:55:56 +08:00
TsMask 5bc958e911 chore: 更新版本号 2.2412.2 2024-12-13 21:23:58 +08:00
TsMask e636f76506 chore: 更新版本号 2.2412.1 2024-12-09 09:58:32 +08:00
TsMask 1ca15477ca chore: 更新版本号 2.2411.4 2024-11-30 17:14:23 +08:00
TsMask 7ce96a7178 chore: 更新版本号 2.2411.3 2024-11-23 16:38:37 +08:00
TsMask 639107ba3d chore: 更新版本号 2.2411.2 2024-11-15 18:17:41 +08:00
simonzhangsz dd0d67c0ea update spec for ky10 arm build 2024-11-12 09:24:50 +08:00
simonzhangsz 343e32735d update spec for build 2024-11-08 19:39:40 +08:00
simonzhangsz 37477ad9f1 update spec for build 2024-11-08 19:25:56 +08:00
simonzhangsz 1fb64561c4 update spec for build 2024-11-08 19:15:39 +08:00
simonzhangsz abb2a8a33d update spec for build 2024-11-08 19:11:31 +08:00
TsMask 1dc143c062 chore: 更新版本号 2.2411.1 2024-11-08 17:56:57 +08:00
simonzhangsz ff7973194f update makepkg.sh 2024-11-07 16:40:44 +08:00
simonzhangsz c9277f1123 shell to sed fe src/hooks 2024-11-07 15:16:15 +08:00
simonzhangsz b8c1740875 update make package shell 2024-11-07 14:57:42 +08:00
simonzhangsz 121cbea72e update make package sh 2024-11-07 14:46:21 +08:00
simonzhangsz 3e08ef0cc4 update build package shell script 2024-11-07 14:37:00 +08:00
simonzhangsz 38dabd180d support customized images and locales for FE 2024-11-07 11:47:18 +08:00
simonzhangsz cd6578f57c update npm install --force 2024-11-05 18:02:49 +08:00
TsMask f403456185 chore: 更新版本号 2.2410.4 2024-11-02 15:35:36 +08:00
simonzhangsz dbded5635f update git ignore list 2024-11-01 17:29:25 +08:00
simonzhangsz 44fad7ae82 Optimize the packaging process 2024-11-01 17:24:37 +08:00
simonzhangsz ec00a5fdec update sh 2024-10-31 10:05:56 +08:00
simonzhangsz f57e479e54 update build 2024-10-30 17:14:32 +08:00
simonzhangsz ceb385bbc6 .. 2024-10-30 16:02:31 +08:00
simonzhangsz fb6526e0a0 make package update 2024-10-30 15:59:25 +08:00
simonzhangsz 6ed5e0c425 update make 2024-10-30 15:07:23 +08:00
simonzhangsz 109c8ad68a update make package 2024-10-30 14:59:11 +08:00
simonzhangsz 6a48f1182f update git ignore 2024-10-30 12:07:15 +08:00
simonzhangsz 8b4492153c update make package 2024-10-30 11:14:36 +08:00
simonzhangsz c659fa38d2 make package update 2024-10-30 10:20:06 +08:00
simonzhangsz 21ce1d667e git ignore release 2024-10-30 09:42:59 +08:00
simonzhangsz 136f00ab62 dpkg debian package for general and BA tag 2024-10-29 19:40:17 +08:00
simonzhangsz b8e0dc30ac release main line version 2.2410.3 2024-10-25 16:47:36 +08:00
simonzhangsz c01c84e2e4 change git local root dir 2024-10-24 16:40:12 +08:00
simonzhangsz 25bf25c459 fix: upgrade config file by upgconf.sh 2024-10-23 16:14:33 +08:00
zhangsz 6205a6c178 chmod +x 2024-10-22 15:11:02 +08:00
simonzhangsz 00aad81aab update make package shell script 2024-10-22 15:06:13 +08:00
simonzhangsz b2333b119d copyright 2023 change to 2024 2024-10-22 14:13:00 +08:00
TsMask 3074d4a16a chore: 更新版本号 2.2410.2 2024-10-18 10:48:11 +08:00
TsMask 12fb46302a fix: deb安装前systemctl enable前reload 2024-10-12 16:06:54 +08:00
TsMask c17ba60b56 Merge branch 'main' of http://192.168.2.166:3180/OMC/build.ems 2024-10-12 15:52:26 +08:00
TsMask b83e486c36 chore: 更新版本号 2.2410.1 2024-10-12 15:52:23 +08:00
simonzhangsz debef0a5f1 export open api v2409.4 2024-10-12 10:58:58 +08:00
TsMask fea9a201c8 chore: 更新版本号 2.2409.4 2024-09-27 11:30:27 +08:00
simonzhangsz 912fc763a8 tips update 2024-09-25 18:21:39 +08:00
TsMask eea255ff95 fix: deb卸载systemctl操作判断 2024-09-21 16:32:23 +08:00
TsMask 586b4c2f5a fix: deb卸载systemctl操作判断 2024-09-21 16:12:45 +08:00
TsMask 1c565bdd61 fix: deb安装前systemctl stop的操作判断 2024-09-21 12:11:47 +08:00
TsMask ac25c16e74 fix: deb安装对systemctl stop的操作 2024-09-21 11:46:05 +08:00
TsMask c726cdc65b chore: 更新版本号 2.2409.3 2024-09-20 19:04:46 +08:00
simonzhangsz 472538f649 fix: .. 2024-09-04 18:34:45 +08:00
simonzhangsz 20e5f2bcf5 fix... 2024-09-04 18:32:45 +08:00
simonzhangsz 67bbf47c87 fix: ... 2024-09-04 18:29:42 +08:00
simonzhangsz 050edce089 fix: ... 2024-09-04 18:24:17 +08:00
simonzhangsz 06302a33e6 fix: ... 2024-09-04 17:59:32 +08:00
simonzhangsz 432a526dc2 fix: ... 2024-09-04 17:45:24 +08:00
simonzhangsz acaefa8dae fix: ... 2024-09-04 17:36:13 +08:00
simonzhangsz 0012615659 fix: .... 2024-09-04 17:34:18 +08:00
simonzhangsz 0114e59ed0 fix: wasm file issue 2024-09-04 17:31:50 +08:00
simonzhangsz b6e06a39e0 fix: ... 2024-09-04 17:21:21 +08:00
simonzhangsz b30f9d45fe fix:. .. 2024-09-04 17:19:16 +08:00
simonzhangsz 123e621b05 fix: ... 2024-09-04 17:14:22 +08:00
simonzhangsz 00d992dd4d fix: change var 2024-09-04 17:07:46 +08:00
simonzhangsz 9b9b9e9267 fix: build error with wiregasm.wasm.gz 2024-09-04 16:56:58 +08:00
simonzhangsz 31a072d4e2 fix: rm build step in omc.spec 2024-09-04 16:36:33 +08:00
simonzhangsz 842417b63c fix: remove install step 2024-09-04 16:28:06 +08:00
simonzhangsz d8b25cd071 fix: ... 2024-09-04 16:16:28 +08:00
simonzhangsz 8a63fb0173 fix: stop service at the begin install 2024-09-04 16:13:15 +08:00
simonzhangsz 8d3dccbeef fix: ... 2024-09-04 14:56:50 +08:00
simonzhangsz 915807dc53 opt: rpm support environment parameter to DB install or upgrade 2024-09-04 11:22:33 +08:00
simonzhangsz e7ea8dbf4a fix: postinst enhancement 2024-09-03 18:46:50 +08:00
simonzhangsz 2cfc10c86a fix: postinst with environment param 2024-09-03 16:56:57 +08:00
simonzhangsz ba9fec53f9 release for 2.2409.1 2024-09-03 16:52:46 +08:00
simonzhangsz e5dd8363ca opt: dpkg support environment paramter to do DB install or upgrade 2024-09-03 16:18:34 +08:00
TsMask 480363ae04 chore: 更新版本号2.2408.5 2024-08-31 10:18:36 +08:00
TsMask eca52ccbc9 chore: 更新版本号2.2408.4 2024-08-23 19:07:31 +08:00
TsMask 71311cb6a8 chore: 更新版本号2.2408.3 2024-08-16 19:25:35 +08:00
TsMask 84bb2f5ec9 chore: 更新版本号2.2408.2 2024-08-09 20:07:51 +08:00
TsMask dc8ec525f2 chore: 更新版本号2.2408.1 2024-08-02 10:08:37 +08:00
TsMask bca9f94b01 fix: Nginx配置文件 2024-07-30 18:16:09 +08:00
TsMask 5b31d4739b fix: agt字符改为omc 2024-07-29 18:31:02 +08:00
TsMask 2bdd14a761 chore: 更新版本号 2.2407.4 2024-07-27 11:19:09 +08:00
TsMask b542ee6073 fix: dep打包时默认restconf配置文件信息 2024-07-27 11:17:14 +08:00
TsMask 2717409d47 fix: Nginx配置文件变更 2024-07-27 11:14:32 +08:00
TsMask 9ab3d2d53f del: deb22打包移除kvdb服务绑定 2024-07-27 11:07:46 +08:00
TsMask 8a4bd1216a del: deb18打包移除kvdb服务绑定 2024-07-27 11:07:34 +08:00
TsMask 80f3b33813 del: rpm打包移除kvdb服务绑定 2024-07-27 10:56:53 +08:00
TsMask f66806e127 fix: Nginx配置文件变更 2024-07-27 10:46:19 +08:00
TsMask 10752171a1 chore: 更新版本号 2.2407.3 2024-07-16 11:39:23 +08:00
simonzhangsz 14c0ecbf8e release 2.2407.2 for multi-tenancy 2024-07-11 11:48:57 +08:00
simonzhangsz ccd8a4fd82 opt: setting firewall 2024-07-09 16:18:56 +08:00
simonzhangsz 43d61681aa opt: setting firewall 2024-07-09 16:12:59 +08:00
simonzhangsz 78576a2a40 opt: setting firewall in package installation 2024-07-09 16:11:57 +08:00
simonzhangsz 3ed69ebd5f update package build shell script for adb rename to kvdb 2024-07-09 15:08:29 +08:00
simonzhangsz 9c95b66d2a adb rename to kvdb 2024-07-09 14:20:29 +08:00
simonzhangsz 8b4c5145e0 fix: ... 2024-07-09 11:22:46 +08:00
simonzhangsz b5de6f7bb4 fix: ... 2024-07-09 11:18:24 +08:00
simonzhangsz eaf514673b fix: ... 2024-07-09 10:59:45 +08:00
simonzhangsz 5488290851 fix: arm64 update 2024-07-09 10:56:35 +08:00
simonzhangsz 0220ae6112 fix: update arm64 install shell script 2024-07-09 10:53:45 +08:00
simonzhangsz e6893d76f4 fix: kvdb issues 2024-07-09 10:49:26 +08:00
simonzhangsz e53b949025 fix: kvdb issue 2024-07-09 10:42:32 +08:00
simonzhangsz df3b722680 fix: kvdb issue 2024-07-09 10:36:54 +08:00
simonzhangsz 0a7268c568 fix: kvdb issue 2024-07-09 10:22:29 +08:00
simonzhangsz 5339846f88 fix: kvdb install for arm64 2024-07-09 10:02:31 +08:00
simonzhangsz 6b14855085 disable system auto upgrade 2024-07-08 09:37:04 +08:00
simonzhangsz 2ae019ed88 keep system and logo directory 2024-07-08 09:36:37 +08:00
TsMask 251f798f2e chore: 更新版本号 2.2407.1 2024-07-04 10:25:54 +08:00
TsMask 302011cc19 docs: zh help doc 2024-06-28 16:40:28 +08:00
TsMask d2c5db5e8e chore: 更新版本号 2.2406.4 2024-06-26 19:25:22 +08:00
TsMask d99efba39e sql: 数据库安装升级-c ba/agt 2024-06-26 19:23:07 +08:00
TsMask 848cd8633c docs: en help doc 2024-06-24 18:11:13 +08:00
TsMask baae06d301 chore: 更新版本号 2.2406.3 2024-06-19 19:48:49 +08:00
TsMask ef60460b64 docs: zh help doc 2024-06-18 15:09:35 +08:00
TsMask 912151844e chore: 更新版本号 2.2406.2 2024-06-17 18:05:21 +08:00
TsMask 690e7191bb chore: 更新版本号 2.2406.1 2024-06-06 12:00:30 +08:00
TsMask 27af9d7c37 feat: 默认配置文件追加omc.conf作为脚本配置变量 2024-06-06 11:59:01 +08:00
simonzhangsz 32ae6f747d opt: optize build shell for multi-branch 2024-05-31 17:55:30 +08:00
simonzhangsz 93e3e633d3 fix... 2024-05-31 11:20:56 +08:00
simonzhangsz 2ddfdf4334 opt: support build shell with directory 2024-05-31 11:08:03 +08:00
simonzhangsz b147b5fda1 release 2.2405.4 for main branch 2024-05-30 15:58:06 +08:00
simonzhangsz cdc6c3c3aa fix: remove overwrite omc etc config file 2024-05-27 11:02:33 +08:00
simonzhangsz d3a69d2705 add: update overview doc 2024-05-24 16:43:43 +08:00
simonzhangsz 0da66f0a59 release 2.2405.3 2024-05-24 16:27:01 +08:00
simonzhangsz ca347f27a2 fix: service removed 2024-05-17 19:57:31 +08:00
simonzhangsz aba6f10651 fix: service 2024-05-17 19:47:29 +08:00
simonzhangsz 20ccc7a7b6 release 2.2405.2 2024-05-15 12:13:06 +08:00
simonzhangsz c0a5a207d6 release 2.2405.1 2024-05-10 17:19:56 +08:00
simonzhangsz 3e5f285061 add: api interface and kpi list 2024-05-10 09:53:48 +08:00
simonzhangsz 8872048642 release 2.2404.6 2024-04-29 18:31:28 +08:00
simonzhangsz 2c7be31ca3 release 2.2404.5 2024-04-26 18:34:40 +08:00
simonzhangsz 347614b127 fix: adb conf issue 2024-04-25 14:15:30 +08:00
simonzhangsz ee3e8b8032 fix: adb conf issue 2024-04-25 14:13:58 +08:00
simonzhangsz dd315bf439 fix: ... 2024-04-19 20:36:15 +08:00
simonzhangsz f985f40eca fix: copy yaml from default 2024-04-19 20:29:32 +08:00
simonzhangsz 2a2a131574 fix: ... 2024-04-19 19:58:09 +08:00
simonzhangsz a434d276f6 fix: ... 2024-04-19 19:48:16 +08:00
simonzhangsz 439a960fd0 fix: adb issue 2024-04-19 19:38:49 +08:00
simonzhangsz 5a1a60c569 opt: adb 2024-04-17 18:46:35 +08:00
simonzhangsz 7cbfd4757e opt: adb 2024-04-17 18:37:16 +08:00
simonzhangsz e603a06880 opt: adb package adjustment 2024-04-17 18:00:43 +08:00
simonzhangsz f2f08f4c00 opt: remove old adb package 2024-04-17 16:02:42 +08:00
simonzhangsz 55b3bc7152 opt: adb change directory 2024-04-17 16:00:23 +08:00
simonzhangsz 94ce3910e0 opt: redis db protect by password 2024-04-16 11:29:37 +08:00
simonzhangsz 3ae1829b2e fix:... 2024-04-16 09:26:15 +08:00
simonzhangsz bcd6960653 fix: ... 2024-04-15 18:44:10 +08:00
simonzhangsz 88c88d67cb release 2.2404.4 version 2024-04-15 11:58:39 +08:00
simonzhangsz e4c75b87f1 Merge branch 'main' of http://192.168.2.166:3180/OMC/build.ems 2024-04-12 19:35:19 +08:00
simonzhangsz 11f2165968 release 2.2404.3 2024-04-12 19:35:18 +08:00
TsMask c132f6c554 docs: zh and en help doc 2024-04-09 14:28:46 +08:00
simonzhangsz f30d587baa release version 2.2404.2 2024-04-08 11:02:51 +08:00
simonzhangsz 70ad2bcde0 fix: adb(redis) cannot start after reboot 2024-04-08 11:02:25 +08:00
simonzhangsz 5a43c9fa0a r2.2404.1 2024-04-02 11:52:33 +08:00
simonzhangsz e7ed1ee23c changed version to 2.2403.3 2024-03-29 09:43:00 +08:00
simonzhangsz 1a87403514 version 2.2403.2 2024-03-27 15:07:06 +08:00
simonzhangsz a4771e3335 fix: arm64 redis depend 2024-03-27 15:02:21 +08:00
simonzhangsz 85f8ceef64 fix: ... 2024-03-26 11:16:23 +08:00
simonzhangsz decc009db0 fix: all-in-one packages issue 2024-03-26 11:15:21 +08:00
simonzhangsz 2915caff5f fix: all-in-on package 2024-03-26 10:32:01 +08:00
simonzhangsz 1b6db2a8fc fix: all-in-one package 2024-03-26 10:12:15 +08:00
simonzhangsz 4e7bd18921 fix: ... 2024-03-26 09:51:20 +08:00
simonzhangsz 057b66f1d6 fix: all-in-one package issue 2024-03-26 09:50:17 +08:00
simonzhangsz f1c9cdb20d fix: all-in-one package 2024-03-26 09:42:13 +08:00
simonzhangsz e4eb83585e fix: change redis db installation in env all-in-one 2024-03-25 18:37:57 +08:00
simonzhangsz 9cb3a32976 add: quickstart of build for BA 2024-03-18 21:08:17 +08:00
simonzhangsz cab0925653 fix: adjustment db directory 2024-03-08 15:03:22 +08:00
simonzhangsz ca061181e6 fix: build rpm part 2024-03-08 11:26:49 +08:00
simonzhangsz 87002d8201 fix: build deb part ok 2024-03-08 10:24:14 +08:00
simonzhangsz 433e4c6340 fix: build.sh 2024-03-07 18:25:03 +08:00
simonzhangsz 8406d68283 fix: build 2024-03-07 18:21:06 +08:00
simonzhangsz eff9f8d565 fix: build.sh 2024-03-07 17:14:52 +08:00
simonzhangsz 0b68a7b3da add: new build script 2024-03-07 17:01:10 +08:00
simonzhangsz 02b88827eb version change to 2.2403.1 2024-03-06 19:44:05 +08:00
simonzhangsz fa31ac4f0d fix: change to version 2.2402.6 2024-02-21 19:00:17 +08:00
simonzhangsz 6b8e8d04d7 fix:... 2024-02-18 11:37:40 +08:00
simonzhangsz fd4ad885c0 fix: clear FE old index hash files 2024-02-18 11:29:51 +08:00
simonzhangsz 3b273be5d0 fix:pre install clear old files 2024-02-18 11:16:25 +08:00
TsMask f058e3ee3b version change to 2.2402.5 2024-02-04 10:57:21 +08:00
simonzhangsz bd7b8293ed fix: ba internationalization switching issue 2024-02-02 11:20:57 +08:00
simonzhangsz ed401f4f89 version change to 2.2402.4 2024-02-01 10:27:27 +08:00
simonzhangsz 28a1da570b fix: to 2.2401.4 2024-01-26 17:19:27 +08:00
simonzhangsz 2f8a98d7cd fix: change to 2.2401.3 2024-01-18 09:53:40 +08:00
simonzhangsz 99adcc22b7 fix: omc installation issue 2024-01-17 10:40:35 +08:00
simonzhangsz 6715efec4d add: open api json file 2024-01-16 09:56:26 +08:00
simonzhangsz b7994b0e85 fix: certs update 2024-01-12 14:59:30 +08:00
simonzhangsz edd12fb06d fix: postinst and rm 2024-01-12 14:46:45 +08:00
simonzhangsz a9e22e1d92 fix: postrm update 2024-01-12 09:34:36 +08:00
simonzhangsz 7afb2bf3af fix:... 2024-01-11 17:23:25 +08:00
simonzhangsz 7e97c56514 fix: build script update 2024-01-11 16:53:30 +08:00
simonzhangsz fc2cbd1e35 fix:postrm update 2024-01-11 15:34:59 +08:00
simonzhangsz 05ce228239 fix: postinst update 2024-01-11 14:55:10 +08:00
simonzhangsz 287c26201d fix: postinst update 2024-01-11 14:54:27 +08:00
simonzhangsz 8ab8944bdb fix: postinst update 2024-01-11 14:22:43 +08:00
simonzhangsz f52461329d fix: postinst update 2024-01-11 14:19:35 +08:00
simonzhangsz c029e32ab1 fix: version 2.2401.2 2024-01-11 11:46:02 +08:00
simonzhangsz 8c58dc1191 fix: postinst update 2024-01-10 18:12:15 +08:00
simonzhangsz 1bbdd3fab9 fix: postinst 2024-01-10 17:26:35 +08:00
simonzhangsz 6c72779483 fix: omc.spec update 2024-01-10 17:12:15 +08:00
simonzhangsz 81e254ab76 fix: postinst update 2024-01-10 17:05:21 +08:00
simonzhangsz 53c5ef5457 fix: certs renew 2024-01-10 11:36:11 +08:00
simonzhangsz 3fd8d21e2c fix: customized sql 2024-01-10 11:25:02 +08:00
TsMask bd1bc5ef00 docs: en help doc 2024-01-09 17:55:36 +08:00
simonzhangsz 4ae62691b1 fix: dpkg overwrite exist log 2024-01-08 18:06:27 +08:00
simonzhangsz 458de65e45 fix: alarm definition 2024-01-08 18:05:55 +08:00
TsMask de47bac51b docs: zh and en help doc 2024-01-05 20:07:24 +08:00
TsMask e20ecc11d6 docs: en help doc 2024-01-04 17:14:51 +08:00
TsMask b9de77d612 docs: en help doc 2024-01-04 17:10:49 +08:00
simonzhangsz 4e9f5125c4 fix: customized sql 2024-01-04 16:24:23 +08:00
simonzhangsz 7400561d23 fix: whole sys_config for customized sql 2024-01-04 13:57:07 +08:00
simonzhangsz 23f0a25e0a fix: change to verision 2.2401.1 2024-01-03 20:45:33 +08:00
simonzhangsz 0027e57392 add: omc alarm definition 2024-01-03 20:45:08 +08:00
simonzhangsz 66c6d7fcc9 fix: customized sql 2024-01-02 19:55:07 +08:00
simonzhangsz e8a151d07d fix: static dir 2023-12-29 21:00:42 +08:00
simonzhangsz 68b9f881f6 fix: agt customized dir 2023-12-29 17:20:34 +08:00
simonzhangsz e38efdae72 fix: change to 2.2312.10 2023-12-29 10:27:01 +08:00
simonzhangsz d82dad8d3d fix: 2.2312.9-20231222 release note 2023-12-22 16:34:22 +08:00
simonzhangsz db7ed45622 fix: ba customzied sql 2023-12-22 11:11:54 +08:00
simonzhangsz 5c779aff60 fix: postinst update 2023-12-22 10:32:27 +08:00
simonzhangsz a35dd637c5 fix: ba customized sql 2023-12-22 10:07:12 +08:00
simonzhangsz 0d321657c2 fix: ba customized sql 2023-12-22 09:21:11 +08:00
simonzhangsz 9dbdeb6f9e fix: ba logo file name 2023-12-21 20:58:19 +08:00
simonzhangsz 92a6e62f98 fix: doc and interfaces 2023-12-21 20:12:44 +08:00
simonzhangsz 448aec4e86 fix: ba customized 2023-12-21 20:12:24 +08:00
simonzhangsz 3e38056e71 fix: version 2.2312.9 2023-12-21 20:10:00 +08:00
simonzhangsz c73c74dbde fix: custom option 2023-12-20 20:06:03 +08:00
simonzhangsz e73bb75dfc fix: control and postinst add option1/option2 2023-12-20 19:44:59 +08:00
TsMask ff2ace4df8 add: en help doc 2023-12-20 17:04:01 +08:00
TsMask 840f3a1c9b add: en help doc 2023-12-20 15:02:51 +08:00
simonzhangsz 9a6b240b3e fix: interface and overview update 2023-12-08 14:54:28 +08:00
simonzhangsz 6d139b71d7 fix: redis conf slaveof udm default ip 2023-12-06 18:01:57 +08:00
simonzhangsz 2e50b86f88 fix: logo 2023-12-06 17:31:51 +08:00
simonzhangsz f22d43ac18 fix: name 2023-12-06 15:45:05 +08:00
simonzhangsz 5caf675514 fix: to 2.2312.8 2023-12-06 15:09:51 +08:00
simonzhangsz 14b9a8c794 fix:doc 2023-12-06 14:58:11 +08:00
simonzhangsz 10c02071e3 fix: doc and logo 2023-12-06 14:47:53 +08:00
simonzhangsz 351f96bc83 fix: arrange doc directory 2023-12-02 17:32:39 +08:00
simonzhangsz 29c9fcfb6c fix: add zh help doc 2023-11-29 19:04:52 +08:00
simonzhangsz 461b26f95c fix: 。。。 2023-11-24 19:33:59 +08:00
simonzhangsz c7f721c9b7 fix: 2.2311.8 2023/11/24 version 2023-11-24 19:30:57 +08:00
simonzhangsz f529baa189 add: zh help doc 2023-11-24 17:42:26 +08:00
simonzhangsz 62b5603a61 fix: docs 2023-11-20 17:22:01 +08:00
simonzhangsz 378415ea72 fix: change to release 2.2311.8 2023-11-20 17:17:23 +08:00
simonzhangsz 00e8b54f5e fix: ... 2023-11-10 15:08:28 +08:00
simonzhangsz 603a50e038 fix: nginx default server port 80 2023-11-10 14:37:31 +08:00
simonzhangsz 3b9bf4af77 fix: release note 2023-11-09 20:21:38 +08:00
simonzhangsz 0e0da26da1 fix: as last 2023-11-09 19:27:13 +08:00
simonzhangsz abbf2c436b fix: change nginx default https port 443 to 4443 2023-11-09 19:26:21 +08:00
simonzhangsz d59e465639 fix: build spec 2023-11-09 19:15:30 +08:00
simonzhangsz f9de6819aa fix... 2023-11-09 19:11:20 +08:00
simonzhangsz 89fee39484 fix: web port 80 2023-11-09 19:07:06 +08:00
simonzhangsz 0bf15fd164 fix: nginx default web server port 2023-11-09 18:59:39 +08:00
simonzhangsz bb4b02765e fix: ky10 nginx.conf 2023-11-09 18:23:25 +08:00
simonzhangsz ddb1761f0a fix: web port change to 80,443 2023-11-09 18:08:32 +08:00
simonzhangsz 94988d48a1 fix:release note 2023-11-09 13:20:18 +08:00
simonzhangsz 399b663dc6 fix:... 2023-11-08 16:05:55 +08:00
simonzhangsz f3d45cbc97 fix: update release note 2023-11-08 15:55:59 +08:00
simonzhangsz 029c7828d2 fix: rollback change buildarch 2023-11-07 09:47:27 +08:00
simonzhangsz f56e9a4e7e fix: customize rpm package name 2023-11-07 09:39:14 +08:00
simonzhangsz bda3e31733 fix: change version to 2.2311.7 2023-11-06 14:12:49 +08:00
simonzhangsz be3c590d29 update omc arch 2023-11-06 14:12:23 +08:00
simonzhangsz 0827d8a620 update: omc architecture 2023-11-06 14:11:55 +08:00
simonzhangsz 8e6bd419fb fix:omc.cof dir 2023-10-31 17:54:59 +08:00
simonzhangsz 723234dae5 fix: restart nginx after install 2023-10-31 17:43:11 +08:00
simonzhangsz 5058bea561 fix: missing omc.conf 2023-10-31 17:30:45 +08:00
simonzhangsz 6935124f29 fix: dir of omc_conf 2023-10-31 16:41:39 +08:00
simonzhangsz 39e31d7647 fix: omc.conf for new frame 2023-10-27 19:39:00 +08:00
simonzhangsz ea6e19fd97 fix: omc.conf update 2023-10-25 19:57:25 +08:00
simonzhangsz 3ea68aca59 add: independ 2023-10-25 18:30:42 +08:00
simonzhangsz 1ae81d7b59 fix: omc.conf update 2023-10-25 18:30:06 +08:00
simonzhangsz 2ee5ff81fa fix: omc.conf for vue3 2023-10-23 18:52:48 +08:00
simonzhangsz 6f23043b59 fix: redisconfdir 2023-10-20 19:58:11 +08:00
simonzhangsz 7bc5b4d5e6 fix: redis config dir 2023-10-19 13:00:08 +08:00
simonzhangsz 353009689b redis.conf 2023-10-13 17:39:21 +08:00
simonzhangsz dafce8bf02 CONFIG SET replica-read-only no 2023-10-13 14:59:22 +08:00
simonzhangsz 893fa92af4 docs 2023-10-13 14:31:50 +08:00
simonzhangsz 169d0be5ee d 2023-10-11 09:16:59 +08:00
simonzhangsz d72c3a64fd d 2023-10-08 16:59:03 +08:00
simonzhangsz b071ba58c2 d 2023-09-27 20:36:24 +08:00
simonzhangsz dfe97e562d trace 2023-09-27 20:35:42 +08:00
simonzhangsz 7f656ecaec d 2023-09-25 15:43:33 +08:00
simonzhangsz b5ffec54a7 d 2023-09-25 15:40:26 +08:00
simonzhangsz 37d67c032a 1.6.2 2023-09-25 15:25:14 +08:00
simonzhangsz 26b4f46f6a d 2023-09-22 12:10:09 +08:00
lai 11609ee194 ---前端 2023-09-22 12:01:11 +08:00
TsMask f89bf7754b docs: 更新版本说明 2023-09-22 11:50:18 +08:00
simonzhangsz b2a53db4be d 2023-09-22 11:37:01 +08:00
simonzhangsz 36e5d27b01 d 2023-09-22 11:35:18 +08:00
simonzhangsz 53720f6d4f release note 2023-09-22 11:29:33 +08:00
simonzhangsz c476456d11 d 2023-09-20 18:34:34 +08:00
simonzhangsz 3405ba34ba d 2023-09-20 18:07:01 +08:00
simonzhangsz d865ae645c d 2023-09-20 11:20:29 +08:00
simonzhangsz ed90a56e0f d 2023-09-20 09:23:27 +08:00
simonzhangsz 2d5c883a97 d 2023-09-18 19:14:39 +08:00
simonzhangsz 01b2098165 d 2023-09-18 19:10:53 +08:00
simonzhangsz 03eadbbf6d d 2023-09-18 17:22:54 +08:00
simonzhangsz 6a11a6427a trace 2023-09-18 17:14:45 +08:00
simonzhangsz 351087749a d 2023-09-18 11:35:07 +08:00
simonzhangsz 871552e430 d 2023-09-18 10:56:27 +08:00
simonzhangsz e24e5e3e6a d 2023-09-16 17:51:12 +08:00
simonzhangsz 5fbbaaafe6 d 2023-09-16 16:23:55 +08:00
simonzhangsz 40b78b7a57 d 2023-09-16 16:15:56 +08:00
simonzhangsz 6cc8fd4daf trace 2023-09-16 15:36:08 +08:00
simonzhangsz 2257b8ad00 trace x86 2023-09-16 15:29:35 +08:00
simonzhangsz af0fa2c884 d 2023-09-16 15:10:07 +08:00
simonzhangsz 3615eea94d d 2023-09-16 15:03:57 +08:00
simonzhangsz 1784c2f655 d 2023-09-16 15:00:36 +08:00
simonzhangsz bb211c9c76 d 2023-09-16 14:58:10 +08:00
simonzhangsz c47ef897cd d 2023-09-16 14:51:44 +08:00
simonzhangsz 714448c94d d 2023-09-16 14:26:24 +08:00
simonzhangsz 128cae73e9 d 2023-09-16 14:24:13 +08:00
simonzhangsz e4b2be84e0 d 2023-09-16 14:21:23 +08:00
simonzhangsz 8f1354796c d 2023-09-16 14:20:05 +08:00
simonzhangsz ea6dbec9e2 d 2023-09-16 14:14:54 +08:00
simonzhangsz 5a70cabc56 d 2023-09-16 14:12:00 +08:00
simonzhangsz 94dbaf8c3c d 2023-09-16 14:07:59 +08:00
simonzhangsz e9a230d5f1 d 2023-09-16 14:06:41 +08:00
simonzhangsz 44beff079d d 2023-09-16 13:54:01 +08:00
simonzhangsz 2cee0bb943 d 2023-09-16 13:50:37 +08:00
simonzhangsz a00649aec4 build 2023-09-16 13:35:44 +08:00
simonzhangsz 8809b92498 build 2023-09-16 13:23:43 +08:00
simonzhangsz b7962ce50b d 2023-09-16 11:41:03 +08:00
simonzhangsz efed954a78 d 2023-09-16 11:30:42 +08:00
simonzhangsz 4cbdd415b5 依赖包 2023-09-16 11:30:08 +08:00
simonzhangsz 9a45f54cf9 d 2023-09-15 17:11:12 +08:00
simonzhangsz 667fd6f890 d 2023-09-15 16:18:41 +08:00
simonzhangsz 9de4eda0c2 d 2023-09-15 15:30:10 +08:00
simonzhangsz 5a1d37060e d 2023-09-15 15:25:50 +08:00
simonzhangsz 19d31722b7 d 2023-09-15 15:21:51 +08:00
simonzhangsz 901d95643e d 2023-09-15 15:08:20 +08:00
simonzhangsz 77f7782636 d 2023-09-15 15:05:08 +08:00
simonzhangsz f872401ab0 d 2023-09-15 14:54:41 +08:00
simonzhangsz cd3ebcbbd0 d 2023-09-15 14:46:04 +08:00
simonzhangsz 88625d3bb7 d 2023-09-15 14:44:24 +08:00
simonzhangsz 5ebc241133 d 2023-09-15 14:41:36 +08:00
simonzhangsz 42675dbb3a d 2023-09-15 14:40:03 +08:00
simonzhangsz f8c5821089 d 2023-09-15 14:35:47 +08:00
simonzhangsz f3c1452c83 d 2023-09-15 14:34:24 +08:00
simonzhangsz 8350eef747 d 2023-09-15 14:08:47 +08:00
simonzhangsz e576d5a8ee d 2023-09-15 14:06:18 +08:00
simonzhangsz 4bec4fdec5 d 2023-09-14 17:38:12 +08:00
simonzhangsz 20e085a94e d 2023-09-14 14:54:06 +08:00
simonzhangsz eb7f33c477 conf 2023-09-14 14:46:03 +08:00
simonzhangsz 58e3d5124c d 2023-09-13 19:37:22 +08:00
simonzhangsz fe64ce505a d 2023-09-13 18:14:51 +08:00
simonzhangsz f914b2f81c redis 2023-09-13 18:08:00 +08:00
simonzhangsz 83baadade5 d 2023-09-13 17:40:58 +08:00
simonzhangsz 1cfef0f9b4 redis 2023-09-13 17:32:02 +08:00
simonzhangsz 886647f9c2 d 2023-09-13 17:13:25 +08:00
simonzhangsz f2b2493ddc d 2023-09-13 16:58:55 +08:00
simonzhangsz 11ba58e2a1 d 2023-09-13 16:57:21 +08:00
simonzhangsz 1192735cca redis 2023-09-13 16:55:42 +08:00
simonzhangsz 3a64cf67de d 2023-09-13 16:49:17 +08:00
simonzhangsz 88a3c8e735 redis 2023-09-13 16:45:30 +08:00
simonzhangsz 36eac6b912 redis 2023-09-13 15:50:12 +08:00
simonzhangsz 7f8108ae77 guide 2023-09-12 11:52:03 +08:00
simonzhangsz f8d1c8751f ue 2023-09-11 11:26:38 +08:00
simonzhangsz 6a5dcbf81f d 2023-09-08 14:04:30 +08:00
simonzhangsz 333579a5de d 2023-09-07 10:55:20 +08:00
simonzhangsz c2aadc123b docs 2023-09-07 10:47:34 +08:00
simonzhangsz 51a9c29a6f 1 2023-09-06 16:50:19 +08:00
simonzhangsz 74ee7e3f02 zip 2023-09-06 16:15:08 +08:00
simonzhangsz 4180c96eb0 d 2023-09-06 16:09:41 +08:00
simonzhangsz 8a1b9c8705 ZIP 2023-09-06 16:03:04 +08:00
simonzhangsz 3427f7750d ssh 2023-09-05 15:28:19 +08:00
simonzhangsz 72252c476d d 2023-09-04 18:27:15 +08:00
simonzhangsz 9b65e2f563 d 2023-09-04 17:08:14 +08:00
simonzhangsz be96cb810c d 2023-09-04 16:39:26 +08:00
simonzhangsz 461fa651e8 d 2023-09-04 16:35:48 +08:00
simonzhangsz 085b1d38ef d 2023-09-04 16:17:01 +08:00
simonzhangsz 9a5c0a696b d 2023-09-04 14:51:50 +08:00
simonzhangsz 29ae8bad8c d 2023-09-01 15:31:40 +08:00
simonzhangsz edcafc3688 d 2023-09-01 12:06:47 +08:00
simonzhangsz d598077a2e d 2023-09-01 11:41:25 +08:00
simonzhangsz de7e68515c d 2023-08-31 17:08:12 +08:00
simonzhangsz 2920fff789 run 2023-08-31 17:04:14 +08:00
simonzhangsz bda1549092 n 2023-08-30 10:42:11 +08:00
simonzhangsz 96507297d3 new 2023-08-29 17:58:02 +08:00
simonzhangsz 8f326ab80d new version for 5GC 2023-08-29 17:56:06 +08:00
simonzhangsz f3586f1ebe empty dir 2023-08-26 12:16:52 +08:00
simonzhangsz 9545d76071 new 2023-08-26 11:25:40 +08:00
zhangsz e9805e98e4 new 2023-08-26 10:47:45 +08:00
zhangsz b4c1e2fc75 删除 README.md 2023-08-26 10:44:49 +08:00
zhangsz 059cd4a212 new 2023-08-26 10:32:23 +08:00
187 changed files with 105610 additions and 2 deletions

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
# ---> VisualStudioCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
# Run temp file and dir
docs/temp/
# Built Visual Studio Code Extensions
*.vsix
*.bak
# build files
build
debbuild/etc
debbuild/usr
debbuild/lib
debbuild/22.04/etc
debbuild/22.04/usr
debbuild/22.04/lib
release
rpmbuild/RPMS
rpmbuild/SOURCES
rpmbuild/BUILD
+25 -2
View File
@@ -1,3 +1,26 @@
# build.ems
# Quickstart Of Build
OMC 打包脚本
## Platform
OS: Ubuntu 18.04 / 22.04 (Recommendation)
Arch: amd64
Golang: go1.22.1 linux/amd64
Database: 10.6.16-MariaDB, Redis server v=5.0.5 (or above)
node.js: v18.16.0 (or above)
## Build Guide
```bash
git clone https://xxx@bitbucket.org/bluearcuscom/ems.git omc.git
cd omc.git
git pull
cd fe.ems.vue3
npm install
npm run build
cd ../build.ems
./build.sh deb
```
BIN
View File
Binary file not shown.
Executable
+358
View File
@@ -0,0 +1,358 @@
#!/bin/bash
usage() {
echo "Usage: $0 [OPTION] deb|badeb|rpm"
echo
echo "Build omc package, option as follow:"
echo " deb|badeb|rpm, deb: ubuntu|debian package build by dpkg"
echo " badeb: ubuntu|debian package build by dpkg"
echo " rpm: centos/redhat package, build by rpmbuild"
echo " -r, =build root directory build root directory, default directory is $HOME/omc.git"
echo " -d dump SQL from database"
echo
}
pkgtype=""
new_args=()
# Traverse all parameters
for arg in "$@"; do
if [[ "$arg" == "deb" || "$arg" == "badeb" || "$arg" == "rpm" ]]; then
pkgtype=$arg
else
new_args+=("$arg") # Add non pkgtype parameters to a new parameter list
fi
done
if [ -z "$pkgtype" ]; then
usage
exit 1
fi
# Use a new parameter list
set -- "${new_args[@]}"
GitLocalRoot=${HOME}/omc.git
while getopts "r:d" option; do
case $option in
r)
GitLocalRoot=$OPTARG
;;
d)
dumpdb="yes"
;;
\?)
echo "Invalid option: -$OPTARG" >&2
usage
exit 2
;;
esac
done
if [ ! -d ${GitLocalRoot} ]; then
echo "Not exist directory: ${GitLocalRoot}"
exit 3
fi
ProjectL=omc
ProjectU=OMC
PROJECT=${ProjectL}
VERSION=2.2503.6
RelDate=`date +%Y%m%d`
RelVer=${VERSION}-${RelDate}
Ky10Arch=ky10.aarch64
RpmPkgName=${ProjectL}-${RelVer}.ky10.aarch64.rpm
RpmPkgRename=${ProjectL}-r${RelVer}-ky10.rpm
DebPkgName=${ProjectL}-r${RelVer}-ub*.deb
EmsBEDir=${GitLocalRoot}/be.ems
EmsBuildRoot=${GitLocalRoot}/build.ems
RpmArch=`arch`
RpmsDir=${EmsBuildRoot}/rpmbuild/RPMS
ReleaseDir=${EmsBuildRoot}/release
DumpToolDir=${EmsBEDir}/tools/misc
ProjectTag=""
BuildDir=${EmsBuildRoot}/build
CustomizedDir=${EmsBuildRoot}/customized
BuildOMCDir=${BuildDir}/usr/local/omc
BuildOMCBinDir=${BuildOMCDir}/bin
BuildOMCEtcDir=${BuildOMCDir}/etc
BuildLibDir=${BuildDir}/lib
BuildLibSystemDir=${BuildLibDir}/systemd/system
DebBuildDir=${EmsBuildRoot}/debbuild
DebBuildOMCDir=${EmsBuildRoot}/debbuild/usr/local/omc
DebFEBuildDir=${DebBuildOMCDir}/htdocs
DebBuild2204Dir=${EmsBuildRoot}/debbuild/22.04
DebBuild2204OMCDir=${EmsBuildRoot}/debbuild/22.04/usr/local/omc
DebFEBuild2204Dir=${DebBuild2204OMCDir}/htdocs
RpmBuildDir=${EmsBuildRoot}/rpmbuild
RpmBuildOMCDir=${RpmBuildDir}/BUILD/usr/local/omc
RpmFEBuildDir=${RpmBuildOMCDir}/htdocs
OmcInstallDir=/usr/local/omc
ConfigEtcDir=${EmsBEDir}/config/etc
ConfigSystemdDir=${EmsBEDir}/config/systemd
EmsFEDir=${GitLocalRoot}/fe.ems
EmsFEVue3Dir=${GitLocalRoot}/fe.ems.vue3/dist
LibDir=${EmsBEDir}/lib
RESTAGENT=restagent
SshSvcBin=sshsvc
RestagentDir=${EmsBEDir}/${RESTAGENT}
SshSvcDir=${EmsBEDir}/${SshSvcBin}
DBSQLSrcDir=${EmsBEDir}/database
MiscDir=${EmsBEDir}/misc
FrontBuildDir=${BuildOMCDir}/htdocs
FrontSrcDir=${EmsBEDir}/front
BinWriterDir=${HOME}/bin
# Get the output of uname -a
UnameOutput=$(uname -a)
# Extract hardware architecture
if [[ $UnameOutput =~ "x86_64" ]]; then
RelArch=amd64
RpmArch=x86_64
elif [[ $UnameOutput =~ "aarch64" ]]; then
RelArch=arm64
RpmArch=aarch64
else
echo "Unsupported hardware architecture"
exit 1
fi
get_os_info() {
if [ -f /etc/os-release ]; then
. /etc/os-release
echo $ID
else
echo "unknown"
fi
}
get_os_version() {
if [ -f /etc/os-release ]; then
. /etc/os-release
echo $VERSION_ID
else
echo "unknown"
fi
}
OSVersion=$(get_os_version)
case $(get_os_info) in
ubuntu|debian)
ptype=deb
if [[ "$OSVersion" == "22.04" ]]; then
RelOS=ub22
DebBuildDir=${DebBuild2204Dir}
DebBuildOMCDir=${DebBuild2204OMCDir}
DebFEBuildDir=${DebFEBuild2204Dir}
elif [[ "$OSVersion" == "18.04" ]]; then
RelOS=ub18
else
echo "Unsupported Ubuntu version: $OSVersion"
exit 1
fi
;;
centos|rhel)
ptype=rpm
RelOS=ct8
RpmPkgRename=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
;;
openEuler)
ptype=rpm
RelOS=oe20
RpmPkgName=${ProjectL}-${RelVer}.${RpmArch}.${ptype}
RpmPkgRename=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
;;
kylin|anolis)
ptype=rpm
RelOS=ky
RpmPkgName=${ProjectL}-${RelVer}.${RpmArch}.${ptype}
RpmPkgRename=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
;;
*)
echo "Unsupported OS"
exit 1
;;
esac
case "${pkgtype}" in
rpm)
echo "Begin to make ${pkgtype} package ======>"
ReleasePkgDir=${ReleaseDir}/rpms/${RelArch}
ProcList="restagent sshsvc"
cd $EmsBEDir
for procName in $ProcList;do
cd $EmsBEDir/$procName
echo "Make $procName ..."
make
done
cd $EmsBEDir
# make rpm
# clear build cache
rm -rf ${FrontBuildDir}/front/*
rm -rf ${RpmFEBuildDir}/front/*
rm -rf ${RpmBuildDir}/BUILD/usr/local/omc/etc/db/*
cp -rf ${RestagentDir}/${RESTAGENT} ${BuildOMCBinDir}
cp -rf ${SshSvcDir}/${SshSvcBin} ${BuildOMCBinDir}
cp -rf ${MiscDir}/* ${BuildOMCBinDir}
# rm -rf ${BinDir2}/ne-hosts
cp -rf ${ConfigEtcDir}/* ${BuildOMCEtcDir}
rm -rf ${BuildOMCEtcDir}/db/*
cp -rf ${DBSQLSrcDir}/* ${BuildOMCEtcDir}/db/
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/install
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/upgrade
#Get SQL from database, overwrite from git
if [ "$dumpdb" = "yes" ]; then
cd ${DumpToolDir}
chmod +x ${DumpToolDir}/dumpsql.sh
${DumpToolDir}/dumpsql.sh
fi
cp -rf ${ConfigSystemdDir}/* ${BuildLibSystemDir}
#unzip ${FrontSrcDir}/front.zip -d ${FrontBuildDir} >/dev/null
mkdir -p ${FrontBuildDir}/front
cp -rf ${EmsFEVue3Dir}/* ${FrontBuildDir}/front >/dev/null
chmod 755 ${BuildOMCBinDir}/*
cp -rf ${BuildDir}/* ${RpmBuildDir}/BUILD/
cp -rf ${CustomizedDir}/agt.d ${RpmBuildOMCDir}/static
cp -rf ${CustomizedDir}/omc.d ${RpmBuildOMCDir}/static
cd ${RpmBuildDir}
rpmbuild -bb -D "_topdir ${RpmBuildDir}" ${RpmBuildDir}/SPECS/omc.spec
mv -f $RpmsDir/$RpmArch/$RpmPkgName ${ReleasePkgDir}/$RpmPkgRename
cd ${ReleasePkgDir}
rm -f omc-md5sum.txt
# rpm --addsign *.rpm
md5sum $RpmPkgRename >omc-md5sum.txt
echo "Finish to make ${pkgtype} package <======"
;;
deb)
echo "Begin to make ${pkgtype} package ======>"
ReleasePkgDir=${ReleaseDir}/debs/${RelArch}
ProcList="restagent sshsvc"
cd $EmsBEDir
for procName in $ProcList;do
cd $EmsBEDir/$procName
echo "Make $procName ..."
make
done
DebPkgFile=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
if [ ! $ProjectTag = "" ]; then
DebPkgFile=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}-${ProjectTag}.${ptype}
fi
cd ${EmsBEDir}
#make deb
# clear build cache
rm -rf ${FrontBuildDir}/front/*
rm -rf ${DebFEBuildDir}/front/*
rm -rf ${DebBuildDir}/usr/local/omc/etc/db/*
rm -rf ${DebBuildOMCDir}/static/*
cp -rf ${RestagentDir}/${RESTAGENT} ${BuildOMCBinDir}
cp -rf ${SshSvcDir}/${SshSvcBin} ${BuildOMCBinDir}
cp -rf ${MiscDir}/* ${BuildOMCBinDir}
cp -rf ${ConfigEtcDir}/* ${BuildOMCEtcDir}
rm -rf ${BuildOMCEtcDir}/db/*
cp -rf ${DBSQLSrcDir}/* ${BuildOMCEtcDir}/db/
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/install
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/upgrade
#Get SQL from database, overwrite from git
if [ "${dumpdb}" = "yes" ]; then
cd ${DumpToolDir}
chmod +x ${DumpToolDir}/dumpsql.sh
${DumpToolDir}/dumpsql.sh
fi
cp -rf ${ConfigSystemdDir}/* ${BuildLibSystemDir}
cp -rf ${EmsFEVue3Dir}/* ${FrontBuildDir}/front >/dev/null
chmod 755 ${BuildOMCBinDir}/*
chmod 755 ${DebBuildDir}/DEBIAN/preinst
chmod 755 ${DebBuildDir}/DEBIAN/postinst
chmod 755 ${DebBuildDir}/DEBIAN/postrm
cp -rf ${BuildDir}/* ${DebBuildDir}/
cp -rf ${CustomizedDir}/agt.d ${DebBuildOMCDir}/static
cp -rf ${CustomizedDir}/omc.d ${DebBuildOMCDir}/static
#cp -rf ${BuildDir}/nginx/* ${DebBuildDir}/etc/nginx/conf.d
#cp -rf ${BuildDir}/systemd/*.service ${DebBuildDir}/lib/systemd/system/
chmod +x ${DebBuildDir}/usr/local/omc/bin/*
sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control
sed -i "s/Architecture: amd64/Architecture: ${RelArch}/g" ${DebBuildDir}/DEBIAN/control
perl -0777 -i -pe 's/ne:\n user: root/ne:\n user: omcuser/g' ${DebBuildDir}/usr/local/omc/etc/default/restconf.yaml
dpkg -b ${DebBuildDir} ${ReleasePkgDir}/${DebPkgFile}
cd ${ReleasePkgDir}
rm -f omc-md5sum.txt
# rpm --addsign *.rpm
md5sum ${DebPkgName} >omc-md5sum.txt
echo "Finish to make ${pkgtype} package <======="
;;
badeb)
echo "Begin to make ${pkgtype} package ======>"
ReleasePkgDir=${ReleaseDir}/debs/${RelArch}
ProcList="restagent sshsvc"
cd $EmsBEDir
for procName in $ProcList;do
cd $EmsBEDir/$procName
echo "Make $procName ..."
make
done
DebPkgFile=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}-ba.deb
cd ${EmsBEDir}
#make deb
# clear build cache
rm -rf ${FrontBuildDir}/front/*
rm -rf ${DebFEBuildDir}/front/*
rm -rf ${DebBuildDir}/usr/local/omc/etc/db/*
rm -rf ${DebBuildOMCDir}/static/*
cp -rf ${RestagentDir}/${RESTAGENT} ${BuildOMCBinDir}
cp -rf ${SshSvcDir}/${SshSvcBin} ${BuildOMCBinDir}
cp -rf ${MiscDir}/* ${BuildOMCBinDir}
cp -rf ${ConfigEtcDir}/* ${BuildOMCEtcDir}
rm -rf ${BuildOMCEtcDir}/db/*
cp -rf ${DBSQLSrcDir}/* ${BuildOMCEtcDir}/db/
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/install
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/upgrade
#Get SQL from database, overwrite from git
if [ "${dumpdb}" = "yes" ]; then
cd ${DumpToolDir}
chmod +x ${DumpToolDir}/dumpsql.sh
${DumpToolDir}/dumpsql.sh
fi
cp -rf ${ConfigSystemdDir}/* ${BuildLibSystemDir}
cp -rf ${EmsFEVue3Dir}/* ${FrontBuildDir}/front >/dev/null
chmod 755 ${BuildOMCBinDir}/*
chmod 755 ${DebBuildDir}/DEBIAN/preinst
chmod 755 ${DebBuildDir}/DEBIAN/postinst
chmod 755 ${DebBuildDir}/DEBIAN/postrm
cp -rf ${BuildDir}/* ${DebBuildDir}/
cp -rf ${CustomizedDir}/ba.d ${DebBuildOMCDir}/static
# replace Chinese character
find "${DebBuildOMCDir}/etc/db" -type f -name '*.sql' -exec sed -i 's/[一-龥()“”,。?!]~·]//g' {} +
echo "Replace all chinese character."
chmod +x ${DebBuildDir}/usr/local/omc/bin
sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control
sed -i "s/Architecture: amd64/Architecture: ${RelArch}/g" ${DebBuildDir}/DEBIAN/control
perl -0777 -i -pe 's/ne:\n user: root/ne:\n user: omcuser/g' ${DebBuildDir}/usr/local/omc/etc/default/restconf.yaml
dpkg -b ${DebBuildDir} ${ReleasePkgDir}/${DebPkgFile}
cd ${ReleasePkgDir}
rm -f omc-md5sum.txt
md5sum ${DebPkgName} >omc-md5sum.txt
echo "Finish to make ${pkgtype} package <======"
;;
*)
usage
exit 4
;;
esac
+71
View File
@@ -0,0 +1,71 @@
server {
listen 44080;
listen 44443;
listen [::]:44080;
listen [::]:44443;
server_name localhost;
client_max_body_size 100M;
keepalive_timeout 180s;
#access_log /var/log/nginx/host.access.log main;
# ssl_certificate /usr/local/omc/etc/certs/omc-server.crt;
# ssl_certificate_key /usr/local/omc/etc/certs/omc-server.key;
# ssl_client_certificate /usr/local/omc/etc/certs/omc-ca.crt;
# ssl_verify_client on;
# ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
# ssl_session_timeout 5m;
# ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
# ssl_prefer_server_ciphers on;
# OMC
location / {
root /usr/local/omc/htdocs/front;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /omc-api/ {
proxy_pass http://127.0.0.1:33030/;
proxy_connect_timeout 180s;
proxy_send_timeout 180s;
proxy_read_timeout 180s;
proxy_cache_bypass $http_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
location /api/rest/ {
proxy_pass http://127.0.0.1:33030/api/rest/;
proxy_cache_bypass $http_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
View File
Whitespace-only changes.
+38
View File
@@ -0,0 +1,38 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
NhAAAAAwEAAQAAAYEAo8xNDB8tD9rEJhtTirwK8CxM0e+wcMT6fuDfTSgc/JRMjXIeM6B7
6Cw2lCSjwTME60nGZ8Yb0STXXuoc+WdEFcWaJVSlfeXzH4G/WCAsw3zxdwaYWnuavzwWFC
TX6wvUgI0Hh1eAgjusZOi1fDvzX8PLml8Lbjd8n6VFneZkVijHNxh1eL8Xq3yqCEGTenrS
4SBGImwIQidtT9LqFs2Ze3Hi5pBvuqq0Um8gtGwp6zd/sIzeG8LX5axBSZN10BrkW1bGC8
7sfpjJvadtvgiz0ZfxVDxd8eP8CgrKq+yQ0scfNB0j4ZOIP9Zwk6Q0fYQHxegPcMNr2v5P
IzHmDwTvDsHu3qyxGc74OVkAEd1o9OXiaSQ/fQXgvdUuSlugBUA3wx8Vlqa0om3fyY/XbX
LdqStmcVtKYfTiePX7UYc09YlYuFJycJxuf6i38Jek58fqp0NSH//ZWP/fXqwkwE8xUz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Ntysg6ur3ZEHJeLVAAAA
wHZ5m4TECDOgkL138faHQycfd9Yi/Yj1akSwVvtGpiPd35ir1bOp52H/Ea3ymDwh6PvOSk
NjpvwqCXSX5nIQWrQQiDHMKA4pCfAtzbJ68fhWmfzWUaWGIcrnhnoxXzMYgXS/Gp6fwqOf
5JH4jm3uM5knXLTz0E0WofYnLgDo6CAuANl9bSQDfPYh8tuNndoQd9190r+15uLhv/pIM7
MsZzifBrE2cgSBIunIERdQbD9JwNCeDPIrV8aQbOJDyuJDbwAAAMEA1nYx8GVZM/0cSZqG
V9C4i6debJEep2k91z7XvjFRZJrTYYZavWJPEUmmqNjsJg0Bdad4g3SdK2iJ4W5CHzDm2S
Zn08j7on/ybcD2c1ZnXbwKrzPXRymc62xxwSDD95m/R5cSvN/Pmy57QfymQNPaNXMkhKq1
nzF56bljW0FHVFnrgUHpbLUOEc0QHXO4d2PaUNptLVxquOJI/VDW2GKKQWaIsdYKPJEDO9
GBe/LaUDzodd1s1isly86DLEgT2HwbAAAAwQDDhgO/kOI1N0jMOpE5gotcrhQc353jrP16
mKOdcp9MVHiioRybsyRdnbDIYKXbQz2ZRwmz2RBh55uPQjLcfi82GlIm2rdTL8KzP9vLpc
WAbZ7dcbv1lLyIlr4Yf33LgAChxJQTGNad771cwYFrtwTYk16O0Mdv302L0DgDTJUvhzJb
0ZuIk2nmzumSH1pOYmZl8Oa+UM7YSZNCWEpM7/S5laNISQ6dF/yy6Del2sQk/1/JCMUK0d
GLCkyCiaW9igsAAAASc2ltb25Ac2ltb256aGFuZ3N6AQ==
-----END OPENSSH PRIVATE KEY-----
View File
Whitespace-only changes.
View File
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
+49
View File
@@ -0,0 +1,49 @@
ManagedElement:
Id: ""
UserLabel: ""
VendorName: ""
ManagedBy: ""
ManagementIpAddress: ""
SwVersion: ""
PatchInfo: ""
AdministrativeState: ""
OperationalState: ""
AmfFunction:
Id: ""
UserLabel: ""
AdministrativeState: ""
OperationalState: ""
VnfInstanceId: ""
Fqdn: ""
SbiServiceList: ""
AmfGuamiList: ""
SnssaiList: ""
MaxUser: ""
RelativeCapacity: ""
MaxGnbNum: ""
EpRpDynN8Amf:
Id: ""
UserLabel: ""
LocIpAddrList: ""
FarIpSubnetworkList: ""
EpRpDynN11Amf:
Id: ""
UserLabel: ""
LocIpAddrList: ""
FarIpSubnetworkList: ""
EpRpDynN12Amf:
Id: ""
UserLabel: ""
LocIpAddrList: ""
FarIpSubnetworkList: ""
IPResource:
Id: ""
UserLabel: ""
InterfaceType: ""
LocIpV4AddrList: ""
LocIpV6AddrList: ""
+48
View File
@@ -0,0 +1,48 @@
ManagedElement:
Id: ""
UserLabel: ""
VendorName: ""
ManagedBy: ""
ManagementIpAddress: ""
SwVersion: ""
PatchInfo: ""
AdministrativeState: ""
OperationalState: ""
SmfFunction:
Id: ""
UserLabel: ""
AdministrativeState: ""
OperationalState: ""
VnfInstanceId: ""
Fqdn: ""
SbiServiceList: ""
MaxPduSessions: ""
MaxQfi: ""
UpfList: ""
AddrPool:
Id: ""
UserLabel: ""
AddrType: "Static"
IpVersion: ""
AddrSegList: ""
EpRpDynN7Smf:
Id: ""
UserLabel: ""
LocIpAddrList: ""
FarIpSubnetworkList: ""
EpRpDynN10Smf:
Id: ""
UserLabel: ""
LocIpAddrList: ""
FarIpSubnetworkList: ""
IPResource:
Id: ""
UserLabel: ""
InterfaceType: ""
LocIpV4AddrList: ""
LocIpV6AddrList: ""
+39
View File
@@ -0,0 +1,39 @@
ManagedElement:
Id: ""
UserLabel: ""
VendorName: ""
ManagedBy: ""
ManagementIpAddress: ""
SwVersion: ""
PatchInfo: ""
AdministrativeState: ""
OperationalState: ""
UdmFunction:
Id: ""
UserLabel: ""
AdministrativeState: ""
OperationalState: ""
VnfInstanceId: ""
Fqdn: ""
SbiServiceList: ""
UdrFunction:
Id: ""
UserLabel: ""
AddrType: "Static"
IpVersion: ""
AddrSegList: ""
AusfFunction:
Id: ""
UserLabel: ""
LocIpAddrList: ""
FarIpSubnetworkList: ""
IPResource:
Id: ""
UserLabel: ""
InterfaceType: ""
LocIpV4AddrList: ""
LocIpV6AddrList: ""
+141
View File
@@ -0,0 +1,141 @@
ManagedElement:
Id: ""
UserLabel: ""
VendorName: ""
ManagedBy: ""
ManagementIpAddress: ""
SwVersion: ""
PatchInfo: ""
AdministrativeState: ""
OperationalState: ""
InventoryUnitRack:
Id: ""
UserLabel: ""
AdministrativeState: ""
OperationalState: ""
VnfInstanceId: ""
Fqdn: ""
SbiServiceList: ""
MaxPduSessions: ""
MaxQfi: ""
UpfList: ""
InventoryUnitShelf:
Id: ""
UserLabel: ""
VendorUnitFamilyType: ""
VendorUnitTypeNumber: ""
VendorName: ""
SerialNumber: ""
VersionNumber: ""
DateOfManufacture: ""
DateOfLastService: ""
ManufacturerData: ""
RackPosition: ""
InventoryUnitPack:
Id: ""
UserLabel: ""
VendorUnitFamilyType: ""
VendorUnitTypeNumber: ""
VendorName: ""
SerialNumber: ""
VersionNumber: ""
DateOfManufacture: ""
DateOfLastService: ""
ManufacturerData: ""
PortsInformation: ""
PackPosition: ""
SlotsOccupied: ""
InventoryUnitHost:
Id: ""
UserLabel: ""
VendorUnitFamilyType: ""
VendorUnitTypeNumber: ""
VendorName: ""
SerialNumber: ""
VersionNumber: ""
DateOfManufacture: ""
DateOfLastService: ""
ManufacturerData: ""
HostPosition: ""
NumberOfCpu: ""
MemSize: ""
HardDiskSize: ""
InventoryUnitAccessory:
Id: ""
UserLabel: ""
VendorUnitFamilyType: ""
VendorUnitTypeNumber: ""
VendorName: ""
SerialNumber: ""
VersionNumber: ""
DateOfManufacture: ""
DateOfLastService: ""
ManufacturerData: ""
AccessoryPosition: ""
AccessoryType: ""
AddtionalInformation: ""
UpfFunction:
Id: ""
UserLabel: ""
AdministrativeState: ""
OperationalState: ""
VnfInstanceId: ""
MaxQosFlows: ""
MaxThroughput: ""
EpRpDynN9Upf:
Id: ""
UserLabel: ""
LocIpAddrList: ""
FarIpSubnetworkList: ""
EpRpDynN3Upf:
Id: ""
UserLabel: ""
LocIpAddrList: ""
FarIpSubnetworkList: ""
AmfFunction:
Id: ""
UserLabel: ""
AdministrativeState: ""
OperationalState: ""
VnfInstanceId: ""
Fqdn: ""
SmfFunction:
Id: ""
UserLabel: ""
AdministrativeState: ""
OperationalState: ""
VnfInstanceId: ""
Fqdn: ""
UdrFunction:
Id: ""
UserLabel: ""
AdministrativeState: ""
OperationalState: ""
VnfInstanceId: ""
Fqdn: ""
AusfFunction:
Id: ""
UserLabel: ""
AdministrativeState: ""
OperationalState: ""
VnfInstanceId: ""
Fqdn: ""
IPResource:
Id: ""
UserLabel: ""
InterfaceType: ""
LocIpV4AddrList: ""
LocIpV6AddrList: ""
View File
Whitespace-only changes.
@@ -0,0 +1,193 @@
# file: log file name
# level: /trace/debug/info/warn/error/fatal, default: debug
# duration: rotation time with xx hours, example: 1/12/24 hours
# count: rotation count of log, default is 30 rotation
logger:
file: /usr/local/omc/log/restagent.log
level: warn
duration: 24
count: 90
# rest agent listen ipv4/v6 and port, support multiple routines
# ip: 0.0.0.0 or ::0, support IPv4/v6
# clientAuthType: 0:NoClientCert (default), 1:RequestClientCert, 2:RequireAnyClientCert,
# 3:VerifyClientCertIfGiven, 4:RequireAndVerifyClientCerts
rest:
- ipv4: 0.0.0.0
ipv6:
port: 33030
- ipv4: 0.0.0.0
ipv6:
port: 33443
schema: https
clientAuthType: 0
caFile: /usr/local/omc/etc/certs/omc-ca.crt
certFile: /usr/local/omc/etc/certs/omc-server.crt
keyFile: /usr/local/omc/etc/certs/omc-server.key
webServer:
enabled: true
rootDir: /usr/local/omc/htdocs/front
listen:
- addr: :80
schema: http
- addr: :443
schema: https
clientAuthType: 0
caFile: /usr/local/omc/etc/certs/omc-ca.crt
certFile: /usr/local/omc/etc/certs/omc-server.crt
keyFile: /usr/local/omc/etc/certs/omc-server.key
database:
type: mysql
user: root
password: 1000omc@kp!
host: 127.0.0.1
port: 33066
name: omc_db
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
backup: /usr/local/omc/database
# Redis data cache
redis:
dataSource:
# OMC system db
default:
port: 6379 # Redis port
host: "127.0.0.1" # Redis host
password: "helloearth"
db: 10 # Redis db_num
# UDM sub/auth db
udmuser:
port: 6379 # Redis port
host: "127.0.0.1"
password: "helloearth"
db: 0 # Redis db_num
# used to specify the default data source for multiple data resourece
defaultDataSourceName: "default"
# sleep: time delay for after write buffer (millisecond)
# deadLine: timeout for io read and write (second)
mml:
sleep: 200
deadLine: 10
sizeRow: 600
sizeCol: 128
bufferSize: 65535
mmlHome: ./mmlhome
# Tracking configuration
trace:
enabled: true
host: "172.16.5.100" # Fill in the specific IP address
port: 33033
# NE config
ne:
user: omcuser
etcdir: /usr/local/etc
bindir: /usr/local/bin
omcdir: /usr/local/omc
scpdir: /tmp
licensedir: /usr/local/etc/{neType}/license
# backup etc list of IMS, does not contain spaces
etcListIMS: '{*.yaml,mmtel,vars.cfg}'
etcListDefault: '{*.yaml,*.conf,*.cfg}'
# true/false to overwrite config file when dpkg ne software
dpkgOverwrite: false
# dpkg timeout (second)
dpkgTimeout: 180
# chk2ne: true/false, if put OmcNeConfig parameters to NE
omc:
uriPrefix: "/omc/rest"
neType: OMC
neId: 001
rmUID: 4400HX101
neName: OMC
province: ""
vendor: ""
dn: ""
chk2ne: false
sn: "-"
checksign: false
rootDir: /usr/local/omc
binDir: /usr/local/omc/bin
backup: /usr/local/omc/backup
upload: /usr/local/omc/upload
frontUpload: /usr/local/omc/htdocs/front/upload
frontTraceDir: /usr/local/omc/htdocs/front/trace
software: /usr/local/omc/software
license: /usr/local/omc/license
gtpUri: gtp:192.168.2.119:32152
checkContentType: false
testMode: false
rbacMode: true
runDir: /usr/local/omc/run
cmdTimeout: 120
# Alarm module setting
# Forward interface:
# TLS Skip verify: true/false
# email/sms
# smProxy: sms(Short Message Service)/smsc(SMS Centre)
# dataCoding: 0:GSM7BIT, 1:ASCII, 2:BINARY8BIT1, 3:LATIN1,
# 4:BINARY8BIT2, 6:CYRILLIC, 7:HEBREW, 8:UCS2
alarm:
alarmEmailForward:
enable: true
emailList:
smtp: mail.smtp.com
port: 25
user: smtpext@smtp.com
password: "1000smtp@omc!"
tlsSkipVerify: true
alarmSMSForward:
enable: true
mobileList:
smscAddr: "192.168.13.114:2775"
systemID: "omc"
password: "omc123"
systemType: "UTRAN"
dataCoding: 0
serviceNumber: "OMC"
sms:
apiURL: http://smsc.xxx.com/
accessKeyID: xxxx
accessKeySecret: xxxx
signName: xxx SMSC
templateCode: 1000
smProxy: smsc
# User authorized information
# crypt: mysql/md5/bcrypt
# token: true/false to check accessToken
# expires for session, unit: second
# Support single/multiple session of user
#
auth:
crypt: bcrypt
token: true
expires: 1800
session: multiple
publicKey: /usr/local/omc/etc/certs/omc
privateKey: /usr/local/omc/etc/certs/omc
# Parameter for limit number
# rmuid_maxnum: the max number of rmUID, default: 50
# alarmid_maxnum: the max number of AlarmID, default: 50
# pmid_maxnum: the max number of pmID, default: 50
# subid_maxnum: the max number of subscription ID, default: 20
# uri_maxlen: the max length of uri, default: 8192
# rmuid_regexp: regexp pattern of rmUID
params:
rmuidmaxnum: 50
alarmidmaxnum: 50
pmidmaxnum: 50
subidmaxnum: 20
urimaxlen: 2100000
rmuidregexp: "[0-9]{4}[A-Z]{2}[A-Z]{2}[0-9A-Z]{1}[0-9A-Z]{3}[0-9A-Z]{1,16}"
testConfig:
enabled: false
file: /usr/local/omc/etc/testconfig.yaml
@@ -0,0 +1,87 @@
# file: log file name
# level: /trace/debug/info/warn/error/fatal, default: debug
# duration: rotation time with xx hours, example: 1/12/24 hours
# count: rotation count of log, default is 30 rotation
logger:
file: /usr/local/omc/log/sshsvc.log
level: warn
duration: 24
count: 30
# file: MML log file name
# duration: rotation time with xx hours, example: 1/12/24 hours
# count: rotation count of log, default is 30 rotation
# level: cmd/ret log cmd/log cmd & result
logmml:
file: /usr/local/omc/mmllog/omcmml.log
duration: 24
count: 30
level: cmd
# ssh service listen ipv4/v6 and port, support multiple routines
# ip: 0.0.0.0 or ::0, support IPv4/v6
# session: single/multiple session for one user
sshd:
listenAddr: 0.0.0.0
listenPort: 32222
privateKey: /usr/local/omc/.ssh/id_rsa
maxConnNum: 2
timeout: 1800
session: multiple
mmlHome: /usr/local/omc/mmlhome
userName: manager
password: pass123
authType: local
tagNE: omc
# authType: local/omc
telnetServer:
listenAddr: 0.0.0.0
listenPort: 32323
maxConnNum: 2
timeout: 1800
session: multiple
mmlHome: /usr/local/omc/mmlhome
userName: manager
password: pass123
authType: local
tagNE: omc
# authproto: NoAuth/MD5/SHA
# privProto: NoPriv/DES/AES/AES192/AES256
snmpServer:
listenAddr: '[::]'
listenPort: 34957
userName: manager
authPass: pass123
authproto: MD5
privPass: "3F2A1B4C5D6E7F8A9B0C1D2E3F4A5B6C7D8E9F0A1B2C3D4E"
privProto: DES
engineID: "8000000004323030313a6462383a3a39313636"
trapPort: 34958
trapListen: false
trapBool: false
trapTick: 60
timeOut: 5
trapTarget: ""
database:
type: mysql
user: root
password: 1000omc@kp!
host: 127.0.0.1
port: 33066
name: omc_db
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
omc:
httpUri: http://127.0.0.1:33030
userCrypt: bcrypt
ne:
port: 4100
sleep: 200
user: admin
password: admin
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="DataFile">
<xs:complexType>
<xs:sequence>
<xs:element name="FileHeader">
<xs:complexType>
<xs:sequence>
<xs:element name="TimeStamp" type="xs:dateTime"/>
<xs:element name="TimeZone" type="xs:string"/>
<xs:element name="VendorName" type="xs:string" minOccurs="0"/>
<xs:element name="ElementType" type="xs:string" minOccurs="0"/>
<xs:element name="CmVersion" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Objects" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="ObjectType" type="xs:string"/>
<!--该字段必选-->
<xs:element name="FieldName">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="N">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="i" type="xs:integer" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FieldValue">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="Object">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="V">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="i" type="xs:integer" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="rmUID" type="xs:string" use="required"/>
<xs:attribute name="Dn" type="xs:string"/>
<!-- //无线、核心网专业该字段必选,传输、IP专业、业务系统无该字段-->
<xs:attribute name="UserLabel" type="xs:string"/>
<!-- //无线、核心网专业该字段必选,传输、IP专业、业务系统无该字段-->
<xs:attribute name="PVFlag" type="xs:string" use="required"/>
<!-- //必须-->
<xs:attribute name="VMID" type="xs:string"/>
<!-- //VNF网络或VNF和PNF混合组网:虚拟网元必选,物理网元无该字段-->
<xs:attribute name="VNFInstanceID" type="xs:string"/>
<!-- //VNF网络或VNF和PNF混合组网:虚拟网元必选,物理网元无该字段-->
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="PmFile">
<xs:complexType>
<xs:sequence>
<xs:element name="FileHeader">
<xs:complexType>
<xs:sequence>
<xs:element name="TimeStamp" type="xs:dateTime" />
<xs:element name="TimeZone" type="xs:string" />
<xs:element name="Period" type="xs:integer" />
<xs:element name="VendorName" type="xs:string" />
<xs:element name="ElementType" type="xs:string" />
<xs:element name="PmVersion" type="xs:string" />
<xs:element name="StartTime" type="xs:dateTime" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Measurements" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="ObjectType" type="xs:string" />
<xs:element name="PmName">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="N">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="i" type="xs:integer" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="PmData">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="Object">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="V">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="i" type="xs:integer" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="CV">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="SN" type="xs:string" />
<xs:element name="SV" type="xs:string" />
</xs:sequence>
<xs:attribute name="i" type="xs:integer"
use="required" />
</xs:complexType>
</xs:element>
</xs:choice>
<xs:attribute name="rmUID" type="xs:string" use="required" />
<xs:attribute name="Dn" type="xs:string" use="required" />
<xs:attribute name="UserLabel" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Whitespace-only changes.
Whitespace-only changes.
View File
Whitespace-only changes.
Whitespace-only changes.
View File
Whitespace-only changes.
Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Whitespace-only changes.
View File
Whitespace-only changes.
+20
View File
@@ -0,0 +1,20 @@
SET FOREIGN_KEY_CHECKS = 0;
--
REPLACE INTO `sys_config` VALUES (6, 'config.sys.officialUrl', 'sys.officialUrl', 'https://www.agrandtech.com', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.officialUrlRemark');
REPLACE INTO `sys_config` VALUES (106, 'config.sys.title', 'sys.title', 'config.sys.titleValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.titleRemark');
REPLACE INTO `sys_config` VALUES (107, 'config.sys.copyright', 'sys.copyright', 'config.sys.copyrightValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.copyrightRemark');
REPLACE INTO `sys_config` VALUES (108, 'config.sys.i18nOpen', 'sys.i18n.open', 'true', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nOpenRemark');
REPLACE INTO `sys_config` VALUES (109, 'config.sys.i18nDefault', 'sys.i18n.default', 'en_US', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nDefaultRemark');
--
REPLACE INTO `sys_dict_data` VALUES (1660, 1660, 'config.sys.titleValue', 'AGrand EMS', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
REPLACE INTO `sys_dict_data` VALUES (1661, 1661, 'config.sys.copyrightValue', 'Copyright ©2024 千通科技', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
REPLACE INTO `sys_dict_data` VALUES (3660, 3660, 'config.sys.titleValue', 'AGrand EMS', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
REPLACE INTO `sys_dict_data` VALUES (3661, 3661, 'config.sys.copyrightValue', 'Copyright ©2024 AGrandTech', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
-- set internationalization switching to ON
-- REPLACE INTO `omc_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2122);
UPDATE `sys_menu` SET `status` = '1' WHERE `menu_id` = 2122;
SET FOREIGN_KEY_CHECKS = 1;
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 114 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

View File
Whitespace-only changes.
Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

+20
View File
@@ -0,0 +1,20 @@
SET FOREIGN_KEY_CHECKS = 0;
--
REPLACE INTO `sys_config` VALUES (6, 'config.sys.officialUrl', 'sys.officialUrl', 'https://www.bluearcus.com', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.officialUrlRemark');
REPLACE INTO `sys_config` VALUES (106, 'config.sys.title', 'sys.title', 'config.sys.titleValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.titleRemark');
REPLACE INTO `sys_config` VALUES (107, 'config.sys.copyright', 'sys.copyright', 'config.sys.copyrightValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.copyrightRemark');
REPLACE INTO `sys_config` VALUES (108, 'config.sys.i18nOpen', 'sys.i18n.open', 'false', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nOpenRemark');
REPLACE INTO `sys_config` VALUES (109, 'config.sys.i18nDefault', 'sys.i18n.default', 'en_US', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nDefaultRemark');
--
REPLACE INTO `sys_dict_data` VALUES (1660, 1660, 'config.sys.titleValue', 'BlueArcus EMS', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
REPLACE INTO `sys_dict_data` VALUES (1661, 1661, 'config.sys.copyrightValue', 'Copyright ©2024 BlueArcus', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
REPLACE INTO `sys_dict_data` VALUES (3660, 3660, 'config.sys.titleValue', 'BlueArcus EMS', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
REPLACE INTO `sys_dict_data` VALUES (3661, 3661, 'config.sys.copyrightValue', 'Copyright ©2024 BlueArcus', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
-- set internationalization switching to ON
-- REPLACE INTO `omc_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2122);
UPDATE `sys_menu` SET `status` = '0' WHERE `menu_id` = 2122;
SET FOREIGN_KEY_CHECKS = 1;
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

+2
View File
@@ -0,0 +1,2 @@
export default {
};
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

+20
View File
@@ -0,0 +1,20 @@
SET FOREIGN_KEY_CHECKS = 0;
--
REPLACE INTO `sys_config` VALUES (6, 'config.sys.officialUrl', 'sys.officialUrl', '#', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.officialUrlRemark');
REPLACE INTO `sys_config` VALUES (106, 'config.sys.title', 'sys.title', 'config.sys.titleValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.titleRemark');
REPLACE INTO `sys_config` VALUES (107, 'config.sys.copyright', 'sys.copyright', 'config.sys.copyrightValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.copyrightRemark');
REPLACE INTO `sys_config` VALUES (108, 'config.sys.i18nOpen', 'sys.i18n.open', 'true', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nOpenRemark');
REPLACE INTO `sys_config` VALUES (109, 'config.sys.i18nDefault', 'sys.i18n.default', 'en_US', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nDefaultRemark');
--
REPLACE INTO `sys_dict_data` VALUES (1660, 1660, 'config.sys.titleValue', 'OMC', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
REPLACE INTO `sys_dict_data` VALUES (1661, 1661, 'config.sys.copyrightValue', 'Copyright ©2024', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
REPLACE INTO `sys_dict_data` VALUES (3660, 3660, 'config.sys.titleValue', 'OMC', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
REPLACE INTO `sys_dict_data` VALUES (3661, 3661, 'config.sys.copyrightValue', 'Copyright ©2024', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
-- set internationalization switching to ON
-- REPLACE INTO `omc_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2122);
UPDATE `sys_menu` SET `status` = '1' WHERE `menu_id` = 2122;
SET FOREIGN_KEY_CHECKS = 1;
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 114 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

View File
Whitespace-only changes.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

+8
View File
@@ -0,0 +1,8 @@
Package: OMC
Version: 2.2503.6-YYYYMMDD
Section: AGrandTech
Prioritt: optional
Architecture: amd64
Maintainer: Simon Zhangsz
Depends:
Description: OMC
+95
View File
@@ -0,0 +1,95 @@
# !/bin/bash
OMCRootDir=/usr/local/omc
SystemdRootDir=/lib/systemd/system
OMCEtcDir=${OMCRootDir}/etc
FERootDir=${OMCRootDir}/htdocs/front
OmcBinDir=${OMCRootDir}/bin
OMCStaticDir=${OMCRootDir}/static
UsrLocalBinDir=/usr/local/bin
OmcDaemon=omcd
NginxEtcDir=/etc/nginx
NginxConfDir=${NginxEtcDir}/conf.d
CFileList="restconf.yaml sshsvc.yaml omc.conf"
LogoFileList="zh_brand.png zh_icon.png en_brand.png en_icon.png"
echo ""
echo "* To start/stop/restart/status omc service, please run:"
echo " sudo systemctl start/stop/restart/status restagent.service"
echo " sudo systemctl start/stop/restart/status sshsvc.service"
echo " or run: "
echo " sudo /usr/local/omc/bin/omcsvc.sh start/stop/restart/status"
echo ""
cd ${UsrLocalBinDir}
if [ ! -e ${OmcDaemon} ]; then ln -s ${OmcBinDir}/omcsvc.sh ${OmcDaemon}; fi
chmod +rx ${OMCRootDir}/bin/*
chmod +rx ${OMCRootDir}/*
chmod +rx ${UsrLocalBinDir}/*
chmod -R 755 ${OMCRootDir}/htdocs/front
for CFile in ${CFileList}; do
if [ ! -e "${OMCEtcDir}/${CFile}" ]; then
cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}
else
# mv -f ${OMCEtcDir}/${CFile} ${OMCEtcDir}/${CFile}.bak
# cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}
if [ -e "${OMCBinDir}/upgconf.sh" ]; then
${OMCBinDir}/upgconf.sh
fi
fi
done
if [ ! -e "${FERootDir}/config.js" ]; then
cp ${FERootDir}/default/config.js ${FERootDir};
fi
for LogoFile in ${LogoFileList}; do
if [ ! -e "${OMCStaticDir}/logo/${LogoFile}" ]; then
cp ${OMCStaticDir}/omc.d/logo/${LogoFile} ${OMCStaticDir}/logo;
fi
done
if ! id -u omc >/dev/null 2>&1 ; then
useradd -d /opt/omc -m -s /bin/bash -pomc123 omc;
mkdir -p /opt/omc/ftp
else
echo "user omc exist";
fi
if [ ! -e "${NginxConfDir}/omc.conf" ]; then
mkdir -p ${NginxConfDir}
cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir};
fi
systemctl daemon-reload
# disable auto upgrade
systemctl disable --now unattended-upgrades
systemctl enable restagent.service
systemctl enable sshsvc.service
systemctl daemon-reload
# read environment parameter and to do
if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then
echo "M parameter: $M_PARAM"
if [ -n "$C_PARAM" ]; then
echo "C parameter: $C_PARAM"
${OMCRootDir}/bin/setomc.sh -m $M_PARAM -c $C_PARAM
else
${OMCRootDir}/bin/setomc.sh -m $M_PARAM
fi
# exit while failed to run setomc.sh
if [ $? -ne 0 ]; then
echo "setomc.sh execution failed. Exiting."
exit 1
fi
fi
echo -n "Starting OMC service ... "
systemctl start sshsvc.service
systemctl start restagent.service
echo "done"
+19
View File
@@ -0,0 +1,19 @@
# !/bin/bash
#rm -rf /usr/local/omc
rm -rf /etc/nginx/conf.d/omc.conf
rm -f /usr/local/bin/omcd
systemctl daemon-reload
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
echo -n "Stopping OMC service ... "
systemctl stop restagent.service
systemctl stop sshsvc.service
echo "done"
fi
systemctl disable restagent.service
systemctl disable sshsvc.service
systemctl daemon-reload
+17
View File
@@ -0,0 +1,17 @@
# !/bin/bash
systemctl daemon-reload
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
echo -n "Stopping OMC service ... "
systemctl stop restagent.service
systemctl stop sshsvc.service
echo "done"
fi
FERootDir=/usr/local/omc/htdocs/front
# apt-get install zip
# clear front-end old hash js files
rm -rf ${FERootDir}/assets
rm -rf ${FERootDir}/js
rm -rf ${FERootDir}/index.*.js
+71
View File
@@ -0,0 +1,71 @@
server {
listen 44080;
listen 44443;
listen [::]:44080;
listen [::]:44443;
server_name localhost;
client_max_body_size 100M;
keepalive_timeout 180s;
#access_log /var/log/nginx/host.access.log main;
# ssl_certificate /usr/local/omc/etc/certs/omc-server.crt;
# ssl_certificate_key /usr/local/omc/etc/certs/omc-server.key;
# ssl_client_certificate /usr/local/omc/etc/certs/omc-ca.crt;
# ssl_verify_client on;
# ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
# ssl_session_timeout 5m;
# ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
# ssl_prefer_server_ciphers on;
# OMC
location / {
root /usr/local/omc/htdocs/front;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /omc-api/ {
proxy_pass http://127.0.0.1:33030/;
proxy_connect_timeout 180s;
proxy_send_timeout 180s;
proxy_read_timeout 180s;
proxy_cache_bypass $http_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
location /api/rest/ {
proxy_pass http://127.0.0.1:33030/api/rest/;
proxy_cache_bypass $http_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+38
View File
@@ -0,0 +1,38 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
NhAAAAAwEAAQAAAYEAo8xNDB8tD9rEJhtTirwK8CxM0e+wcMT6fuDfTSgc/JRMjXIeM6B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pc
WAbZ7dcbv1lLyIlr4Yf33LgAChxJQTGNad771cwYFrtwTYk16O0Mdv302L0DgDTJUvhzJb
0ZuIk2nmzumSH1pOYmZl8Oa+UM7YSZNCWEpM7/S5laNISQ6dF/yy6Del2sQk/1/JCMUK0d
GLCkyCiaW9igsAAAASc2ltb25Ac2ltb256aGFuZ3N6AQ==
-----END OPENSSH PRIVATE KEY-----
@@ -0,0 +1,193 @@
# file: log file name
# level: /trace/debug/info/warn/error/fatal, default: debug
# duration: rotation time with xx hours, example: 1/12/24 hours
# count: rotation count of log, default is 30 rotation
logger:
file: /usr/local/omc/log/restagent.log
level: warn
duration: 24
count: 90
# rest agent listen ipv4/v6 and port, support multiple routines
# ip: 0.0.0.0 or ::0, support IPv4/v6
# clientAuthType: 0:NoClientCert (default), 1:RequestClientCert, 2:RequireAnyClientCert,
# 3:VerifyClientCertIfGiven, 4:RequireAndVerifyClientCerts
rest:
- ipv4: 0.0.0.0
ipv6:
port: 33030
- ipv4: 0.0.0.0
ipv6:
port: 33443
schema: https
clientAuthType: 0
caFile: /usr/local/omc/etc/certs/omc-ca.crt
certFile: /usr/local/omc/etc/certs/omc-server.crt
keyFile: /usr/local/omc/etc/certs/omc-server.key
webServer:
enabled: true
rootDir: /usr/local/omc/htdocs/front
listen:
- addr: :80
schema: http
- addr: :443
schema: https
clientAuthType: 0
caFile: /usr/local/omc/etc/certs/omc-ca.crt
certFile: /usr/local/omc/etc/certs/omc-server.crt
keyFile: /usr/local/omc/etc/certs/omc-server.key
database:
type: mysql
user: root
password: 1000omc@kp!
host: 127.0.0.1
port: 33066
name: omc_db
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
backup: /usr/local/omc/database
# Redis data cache
redis:
dataSource:
# OMC system db
default:
port: 6379 # Redis port
host: "127.0.0.1" # Redis host
password: "helloearth"
db: 10 # Redis db_num
# UDM sub/auth db
udmuser:
port: 6379 # Redis port
host: "127.0.0.1"
password: "helloearth"
db: 0 # Redis db_num
# used to specify the default data source for multiple data resourece
defaultDataSourceName: "default"
# sleep: time delay for after write buffer (millisecond)
# deadLine: timeout for io read and write (second)
mml:
sleep: 200
deadLine: 10
sizeRow: 600
sizeCol: 128
bufferSize: 65535
mmlHome: ./mmlhome
# Tracking configuration
trace:
enabled: true
host: "172.16.5.100" # Fill in the specific IP address
port: 33033
# NE config
ne:
user: omcuser
etcdir: /usr/local/etc
bindir: /usr/local/bin
omcdir: /usr/local/omc
scpdir: /tmp
licensedir: /usr/local/etc/{neType}/license
# backup etc list of IMS, does not contain spaces
etcListIMS: '{*.yaml,mmtel,vars.cfg}'
etcListDefault: '{*.yaml,*.conf,*.cfg}'
# true/false to overwrite config file when dpkg ne software
dpkgOverwrite: false
# dpkg timeout (second)
dpkgTimeout: 180
# chk2ne: true/false, if put OmcNeConfig parameters to NE
omc:
uriPrefix: "/omc/rest"
neType: OMC
neId: 001
rmUID: 4400HX101
neName: OMC
province: ""
vendor: ""
dn: ""
chk2ne: false
sn: "-"
checksign: false
rootDir: /usr/local/omc
binDir: /usr/local/omc/bin
backup: /usr/local/omc/backup
upload: /usr/local/omc/upload
frontUpload: /usr/local/omc/htdocs/front/upload
frontTraceDir: /usr/local/omc/htdocs/front/trace
software: /usr/local/omc/software
license: /usr/local/omc/license
gtpUri: gtp:192.168.2.119:32152
checkContentType: false
testMode: false
rbacMode: true
runDir: /usr/local/omc/run
cmdTimeout: 120
# Alarm module setting
# Forward interface:
# TLS Skip verify: true/false
# email/sms
# smProxy: sms(Short Message Service)/smsc(SMS Centre)
# dataCoding: 0:GSM7BIT, 1:ASCII, 2:BINARY8BIT1, 3:LATIN1,
# 4:BINARY8BIT2, 6:CYRILLIC, 7:HEBREW, 8:UCS2
alarm:
alarmEmailForward:
enable: true
emailList:
smtp: mail.smtp.com
port: 25
user: smtpext@smtp.com
password: "1000smtp@omc!"
tlsSkipVerify: true
alarmSMSForward:
enable: true
mobileList:
smscAddr: "192.168.13.114:2775"
systemID: "omc"
password: "omc123"
systemType: "UTRAN"
dataCoding: 0
serviceNumber: "OMC"
sms:
apiURL: http://smsc.xxx.com/
accessKeyID: xxxx
accessKeySecret: xxxx
signName: xxx SMSC
templateCode: 1000
smProxy: smsc
# User authorized information
# crypt: mysql/md5/bcrypt
# token: true/false to check accessToken
# expires for session, unit: second
# Support single/multiple session of user
#
auth:
crypt: bcrypt
token: true
expires: 1800
session: multiple
publicKey: /usr/local/omc/etc/certs/omc
privateKey: /usr/local/omc/etc/certs/omc
# Parameter for limit number
# rmuid_maxnum: the max number of rmUID, default: 50
# alarmid_maxnum: the max number of AlarmID, default: 50
# pmid_maxnum: the max number of pmID, default: 50
# subid_maxnum: the max number of subscription ID, default: 20
# uri_maxlen: the max length of uri, default: 8192
# rmuid_regexp: regexp pattern of rmUID
params:
rmuidmaxnum: 50
alarmidmaxnum: 50
pmidmaxnum: 50
subidmaxnum: 20
urimaxlen: 2100000
rmuidregexp: "[0-9]{4}[A-Z]{2}[A-Z]{2}[0-9A-Z]{1}[0-9A-Z]{3}[0-9A-Z]{1,16}"
testConfig:
enabled: false
file: /usr/local/omc/etc/testconfig.yaml
+8
View File
@@ -0,0 +1,8 @@
Package: OMC
Version: 2.2503.6-YYYYMMDD
Section: AGrandTech
Prioritt: optional
Architecture: amd64
Maintainer: Simon Zhangsz
Depends:
Description: OMC
+95
View File
@@ -0,0 +1,95 @@
# !/bin/bash
OMCRootDir=/usr/local/omc
SystemdRootDir=/lib/systemd/system
OMCEtcDir=${OMCRootDir}/etc
FERootDir=${OMCRootDir}/htdocs/front
OmcBinDir=${OMCRootDir}/bin
OMCStaticDir=${OMCRootDir}/static
UsrLocalBinDir=/usr/local/bin
OmcDaemon=omcd
NginxEtcDir=/etc/nginx
NginxConfDir=${NginxEtcDir}/conf.d
CFileList="restconf.yaml sshsvc.yaml omc.conf"
LogoFileList="zh_brand.png zh_icon.png en_brand.png en_icon.png"
echo ""
echo "* To start/stop/restart/status omc service, please run:"
echo " sudo systemctl start/stop/restart/status restagent.service"
echo " sudo systemctl start/stop/restart/status sshsvc.service"
echo " or run: "
echo " sudo /usr/local/omc/bin/omcsvc.sh start/stop/restart/status"
echo ""
cd ${UsrLocalBinDir}
if [ ! -e ${OmcDaemon} ]; then ln -s ${OmcBinDir}/omcsvc.sh ${OmcDaemon}; fi
chmod +rx ${OMCRootDir}/bin/*
chmod +rx ${OMCRootDir}/*
chmod +rx ${UsrLocalBinDir}/*
chmod -R 755 ${OMCRootDir}/htdocs/front
for CFile in ${CFileList}; do
if [ ! -e "${OMCEtcDir}/${CFile}" ]; then
cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}
else
# mv -f ${OMCEtcDir}/${CFile} ${OMCEtcDir}/${CFile}.bak
# cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}
if [ -e "${OMCBinDir}/upgconf.sh" ]; then
${OMCBinDir}/upgconf.sh
fi
fi
done
if [ ! -e "${FERootDir}/config.js" ]; then
cp ${FERootDir}/default/config.js ${FERootDir};
fi
for LogoFile in ${LogoFileList}; do
if [ ! -e "${OMCStaticDir}/logo/${LogoFile}" ]; then
cp ${OMCStaticDir}/omc.d/logo/${LogoFile} ${OMCStaticDir}/logo;
fi
done
if ! id -u omc >/dev/null 2>&1 ; then
useradd -d /opt/omc -m -s /bin/bash -pomc123 omc;
mkdir -p /opt/omc/ftp
else
echo "user omc exist";
fi
if [ ! -e "${NginxConfDir}/omc.conf" ]; then
mkdir -p ${NginxConfDir}
cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir};
fi
systemctl daemon-reload
# disable auto upgrade
systemctl disable --now unattended-upgrades
systemctl enable restagent.service
systemctl enable sshsvc.service
systemctl daemon-reload
# read environment parameter and to do
if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then
echo "M parameter: $M_PARAM"
if [ -n "$C_PARAM" ]; then
echo "C parameter: $C_PARAM"
${OMCRootDir}/bin/setomc.sh -m $M_PARAM -c $C_PARAM
else
${OMCRootDir}/bin/setomc.sh -m $M_PARAM
fi
# exit while failed to run setomc.sh
if [ $? -ne 0 ]; then
echo "setomc.sh execution failed. Exiting."
exit 1
fi
fi
echo -n "Starting OMC service ... "
systemctl start sshsvc.service
systemctl start restagent.service
echo "done"
+19
View File
@@ -0,0 +1,19 @@
# !/bin/bash
#rm -rf /usr/local/omc
rm -rf /etc/nginx/conf.d/omc.conf
rm -f /usr/local/bin/omcd
systemctl daemon-reload
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
echo -n "Stopping OMC service ... "
systemctl stop restagent.service
systemctl stop sshsvc.service
echo "done"
fi
systemctl disable restagent.service
systemctl disable sshsvc.service
systemctl daemon-reload
+17
View File
@@ -0,0 +1,17 @@
# !/bin/bash
systemctl daemon-reload
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
echo -n "Stopping OMC service ... "
systemctl stop restagent.service
systemctl stop sshsvc.service
echo "done"
fi
FERootDir=/usr/local/omc/htdocs/front
# apt-get install zip
# clear front-end old hash js files
rm -rf ${FERootDir}/assets
rm -rf ${FERootDir}/js
rm -rf ${FERootDir}/index.*.js
+71
View File
@@ -0,0 +1,71 @@
server {
listen 44080;
listen 44443;
listen [::]:44080;
listen [::]:44443;
server_name localhost;
client_max_body_size 100M;
keepalive_timeout 180s;
#access_log /var/log/nginx/host.access.log main;
# ssl_certificate /usr/local/omc/etc/certs/omc-server.crt;
# ssl_certificate_key /usr/local/omc/etc/certs/omc-server.key;
# ssl_client_certificate /usr/local/omc/etc/certs/omc-ca.crt;
# ssl_verify_client on;
# ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
# ssl_session_timeout 5m;
# ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
# ssl_prefer_server_ciphers on;
# OMC
location / {
root /usr/local/omc/htdocs/front;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /omc-api/ {
proxy_pass http://127.0.0.1:33030/;
proxy_connect_timeout 180s;
proxy_send_timeout 180s;
proxy_read_timeout 180s;
proxy_cache_bypass $http_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
location /api/rest/ {
proxy_pass http://127.0.0.1:33030/api/rest/;
proxy_cache_bypass $http_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+38
View File
@@ -0,0 +1,38 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
NhAAAAAwEAAQAAAYEAo8xNDB8tD9rEJhtTirwK8CxM0e+wcMT6fuDfTSgc/JRMjXIeM6B7
6Cw2lCSjwTME60nGZ8Yb0STXXuoc+WdEFcWaJVSlfeXzH4G/WCAsw3zxdwaYWnuavzwWFC
TX6wvUgI0Hh1eAgjusZOi1fDvzX8PLml8Lbjd8n6VFneZkVijHNxh1eL8Xq3yqCEGTenrS
4SBGImwIQidtT9LqFs2Ze3Hi5pBvuqq0Um8gtGwp6zd/sIzeG8LX5axBSZN10BrkW1bGC8
7sfpjJvadtvgiz0ZfxVDxd8eP8CgrKq+yQ0scf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error/fatal, default: debug
# duration: rotation time with xx hours, example: 1/12/24 hours
# count: rotation count of log, default is 30 rotation
logger:
file: /usr/local/omc/log/restagent.log
level: warn
duration: 24
count: 90
# rest agent listen ipv4/v6 and port, support multiple routines
# ip: 0.0.0.0 or ::0, support IPv4/v6
# clientAuthType: 0:NoClientCert (default), 1:RequestClientCert, 2:RequireAnyClientCert,
# 3:VerifyClientCertIfGiven, 4:RequireAndVerifyClientCerts
rest:
- ipv4: 0.0.0.0
ipv6:
port: 33030
- ipv4: 0.0.0.0
ipv6:
port: 33443
schema: https
clientAuthType: 0
caFile: /usr/local/omc/etc/certs/omc-ca.crt
certFile: /usr/local/omc/etc/certs/omc-server.crt
keyFile: /usr/local/omc/etc/certs/omc-server.key
webServer:
enabled: true
rootDir: /usr/local/omc/htdocs/front
listen:
- addr: :80
schema: http
- addr: :443
schema: https
clientAuthType: 0
caFile: /usr/local/omc/etc/certs/omc-ca.crt
certFile: /usr/local/omc/etc/certs/omc-server.crt
keyFile: /usr/local/omc/etc/certs/omc-server.key
database:
type: mysql
user: root
password: 1000omc@kp!
host: 127.0.0.1
port: 33066
name: omc_db
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
backup: /usr/local/omc/database
# Redis data cache
redis:
dataSource:
# OMC system db
default:
port: 6379 # Redis port
host: "127.0.0.1" # Redis host
password: "helloearth"
db: 10 # Redis db_num
# UDM sub/auth db
udmuser:
port: 6379 # Redis port
host: "127.0.0.1"
password: "helloearth"
db: 0 # Redis db_num
# used to specify the default data source for multiple data resourece
defaultDataSourceName: "default"
# sleep: time delay for after write buffer (millisecond)
# deadLine: timeout for io read and write (second)
mml:
port: 4100
port2: 5002
sleep: 200
deadLine: 10
sizeRow: 600
sizeCol: 128
bufferSize: 65535
user: admin
password: admin
mmlHome: ./mmlhome
# NE config
ne:
user: omcuser
etcdir: /usr/local/etc
bindir: /usr/local/bin
omcdir: /usr/local/omc
scpdir: /tmp
licensedir: /usr/local/etc/{neType}/license
# backup etc list of IMS, does not contain spaces
etcListIMS: '{*.yaml,mmtel,vars.cfg}'
etcListDefault: '{*.yaml,*.conf,*.cfg}'
# true/false to overwrite config file when dpkg ne software
dpkgOverwrite: false
# dpkg timeout (second)
dpkgTimeout: 180
# chk2ne: true/false, if put OmcNeConfig parameters to NE
omc:
uriPrefix: "/omc/rest"
neType: OMC
neId: 001
rmUID: 4400HX101
neName: OMC
province: ""
vendor: ""
dn: ""
chk2ne: false
sn: "-"
checksign: false
rootDir: /usr/local/omc
binDir: /usr/local/omc/bin
backup: /usr/local/omc/backup
upload: /usr/local/omc/upload
frontUpload: /usr/local/omc/htdocs/front/upload
frontTraceDir: /usr/local/omc/htdocs/front/trace
software: /usr/local/omc/software
license: /usr/local/omc/license
gtpUri: gtp:192.168.2.119:32152
checkContentType: false
testMode: false
rbacMode: true
runDir: /usr/local/omc/run
cmdTimeout: 120
# Alarm module setting
# Forward interface:
# email/sms/smsc
alarm:
forwardAlarm: true
email:
smtp: smtp.xxx.com
port: 25
user: smtpuser@xxx.com
password: xxxxxx
# TLS skip verify: true/false
tlsSkipVerify: true
smProxy: smsc
sms:
apiURL: http://smsc.xxx.com
accessKeyID: xxx
accessKeySecret: xxx
signName: XXX SMSC
templateCode: 1000
smsc:
addr: "192.168.13.114:2775"
systemID: "alarmsmsfw"
password: "omc123"
systemType: ""
# User authorized information
# crypt: mysql/md5/bcrypt
# token: true/false to check accessToken
# expires for session, unit: second
# Support single/multiple session of user
#
auth:
crypt: bcrypt
token: true
expires: 1800
session: multiple
publicKey: /usr/local/omc/etc/certs/omc
privateKey: /usr/local/omc/etc/certs/omc
# Parameter for limit number
# rmuid_maxnum: the max number of rmUID, default: 50
# alarmid_maxnum: the max number of AlarmID, default: 50
# pmid_maxnum: the max number of pmID, default: 50
# subid_maxnum: the max number of subscription ID, default: 20
# uri_maxlen: the max length of uri, default: 8192
# rmuid_regexp: regexp pattern of rmUID
params:
rmuidmaxnum: 50
alarmidmaxnum: 50
pmidmaxnum: 50
subidmaxnum: 20
urimaxlen: 2100000
rmuidregexp: "[0-9]{4}[A-Z]{2}[A-Z]{2}[0-9A-Z]{1}[0-9A-Z]{3}[0-9A-Z]{1,16}"
testConfig:
enabled: false
file: /usr/local/omc/etc/testconfig.yaml
@@ -0,0 +1,11 @@
## OMC Database Diagrams
---
### Diagram of OMC database
![1700190137798](image/07-5GCOMCDatabaseDiagrams/1700190137798.png)
### OMC Database Table Creation Script
Refer to omc_db.sql
Binary file not shown.
+36
View File
@@ -0,0 +1,36 @@
galera-4
libcgi-fast-perl
libcgi-pm-perl
libclone-perl
libconfig-inifiles-perl
libdaxctl1
libdbd-mysql-perl
libdbi-perl
libencode-locale-perl
libfcgi-bin
libfcgi-perl
libfcgi0ldbl
libhtml-parser-perl
libhtml-tagset-perl
libhtml-template-perl
libhttp-date-perl
libhttp-message-perl
libio-html-perl
liblwp-mediatypes-perl
libmariadb3
libmysqlclient21
libndctl6
libpmem1
libsnappy1v5
libtimedate-perl
liburi-perl
liburing2
mariadb-client
mariadb-client-10.6
mariadb-client-core-10.6
mariadb-common
mariadb-server
mariadb-server-10.6
mariadb-server-core-10.6
mysql-common
socat
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 KiB

Loaded 100 of 187 files, more files were not shown because too many files have changed in this diff. Show more