482 Commits
Author SHA1 Message Date
TsMask c77981e587 feat: 脚本替换版本号 2025-08-15 18:27:33 +08:00
TsMask 745ec999b4 feat: 更新版本号为2.2508.1,并调整相关脚本和配置文件 2025-08-15 16:38:57 +08:00
TsMask 1054da9b4e fix: 相对路径进行打包处理 2025-08-15 16:12:41 +08:00
TsMask 6226809e8d chore: sed error tip info fix 2025-08-15 15:57:34 +08:00
TsMask 86f994cbe6 rev: sed: -e expression #1, char 46: Invalid collation character 2025-08-15 15:03:48 +08:00
TsMask 6ff8e49cf6 feat: 更新README和pkg.sh,提升构建指南和输出信息 2025-08-15 14:16:19 +08:00
TsMask 858eec188a feat: 更新版本占位符并重构打包脚本 2025-08-15 12:05:17 +08:00
TsMask 73911f3192 fix: 更新前端背景图资源路径和复制逻辑 2025-08-15 11:31:57 +08:00
TsMask 8f50df5bd1 fix sed: -e expression #1, char 46: Invalid collation character 2025-08-15 11:27:43 +08:00
TsMask f9a2a84144 feat: 添加ub24识别 2025-08-15 11:20:38 +08:00
TsMask ec756261be feat: 添加ub24识别 2025-08-15 11:12:46 +08:00
TsMask f8e17fbcd6 fix: 更新版权年份至2025 2025-08-14 17:43:13 +08:00
TsMask 255f531fb7 chore: 更新版本号 2.2508.1 2025-08-11 19:27:53 +08:00
TsMask 75405e0482 fix: 去掉perl操作restconf.yaml 2025-08-11 19:22:32 +08:00
TsMask e176154f73 chore: 更新版本号 2.2507.3 2025-07-25 14:14:05 +08:00
TsMask c893d8d051 chore: 更新版本号 2.2507.2 2025-07-18 16:40:57 +08:00
TsMask 234a403bca chore: 更新版本号 2.2507.1 2025-07-05 10:24:55 +08:00
TsMask ac9d369235 chore: 更新版本号 2.2506.3 2025-06-27 19:28:50 +08:00
TsMask cde04d7608 chore: 更新版本号 2.2506.2 2025-06-20 19:22:05 +08:00
TsMask b6dc85e51e chore: 更新版本号 2.2506.1 2025-06-13 20:18:28 +08:00
TsMask 8000d6c263 chore: 更新版本号 2.2505.4 2025-06-07 11:07:01 +08:00
TsMask 8447da9d46 chore: 更新版本号 2.2505.3 2025-05-23 15:07:31 +08:00
TsMask 8def038993 chore: 更新版本号 2.2505.2 2025-05-16 09:57:36 +08:00
TsMask 271aaa1f69 chore: 更新版本号 2.2505.1 2025-05-09 19:42:54 +08:00
TsMask 3a1cac9f0e chore: 更新版本号 2.2504.4 2025-04-28 19:45:38 +08:00
TsMask 5b47a8d366 fix: 移除后创建目录 db 2025-04-18 15:35:02 +08:00
zhangsz b18224c95d fix: checkout fe by replace Zh 2025-04-18 15:07:11 +08:00
zhangsz 14623348b8 fix: deb copy ba.d 2025-04-18 15:01:32 +08:00
zhangsz e5ca189b05 release for 2.2504.2 2025-04-16 11:46:44 +08:00
zhangsz f84d4e48a8 release for 2.2504.1 2025-04-09 14:31:41 +08:00
zhangsz 521936fbcc move build sh to bin 2025-03-26 14:12:27 +08:00
zhangsz 1bb763df6e make pkg changed 2025-03-26 14:09:22 +08:00
zhangsz e8d51f0821 ... 2025-03-26 11:16:45 +08:00
zhangsz 72d299a87a ignore file 2025-03-26 11:15:18 +08:00
TsMask fc8d8bd9d9 chore: 更新版本号 2.2503.3 2025-03-21 15:19:32 +08:00
TsMask 764ef45098 chore: 更新版本号 2.2503.2 2025-03-14 11:04:25 +08:00
TsMask dd9ded3ad1 chore: 更新版本号 2.2503.1 2025-03-08 11:10:57 +08:00
TsMask 32a0fc7d46 chore: 更新版本号 2.2502.4 2025-03-04 16:34:50 +08:00
TsMask 4bc25c840a fix: badeb 中文字符串替换 2025-03-04 16:32:02 +08:00
TsMask cc7a42edb2 fix: badeb 中文字符串替换 2025-03-04 16:29:49 +08:00
TsMask b5a4d8f084 fix: badeb 中文字符串替换 2025-03-04 16:17:35 +08:00
TsMask 22cad473ab chore: 更新版本号 2.2502.3 2025-02-25 16:36:37 +08:00
TsMask 8426a91eec chore: 更新版本号 2.2502.2 2025-02-14 20:17:30 +08:00
TsMask 45bed62998 chore: 更新版本号 2.2501.4 2025-01-24 20:50:49 +08:00
TsMask e5fd1fe7a2 fix: 安装错误42:do 2025-01-22 21:12:03 +08:00
TsMask 5820c66f8b chore: 更新版本号 2.2501.3 2025-01-17 18:44:24 +08:00
TsMask f1250f6409 del: 移除captrace/data2html/crontask程序 2025-01-11 12:19:09 +08:00
TsMask 9e4427b3e8 chore: 更新版本号 2.2501.2 2025-01-10 19:42:51 +08:00
TsMask 4566d4ff4c chore: 更新版本号 2.2501.1 2025-01-03 21:51:51 +08:00
TsMask eba31a09a2 chore: 更新版本号 2.2412.3 2024-12-24 17:37:50 +08:00
TsMask 60e4034ca8 chore: 更新版本号 2.2412.2 2024-12-13 21:29:19 +08:00
TsMask 0676d237ec release 2.2412.1 2024-12-09 11:15:00 +08:00
simonzhangsz f2de67e311 release 2.2412.1 2024-12-07 13:40:07 +08:00
simonzhangsz 106d499eae feat: update backgroud for agt and omc package 2024-12-07 11:54:44 +08:00
simonzhangsz 16ce7958f0 fix: release 2.2411.2 2024-11-18 19:56:15 +08:00
simonzhangsz f1d7c0b1b7 release 2.2411.2 2024-11-15 09:53:24 +08:00
simonzhangsz a2278d066c fix: .... 2024-11-14 20:52:04 +08:00
simonzhangsz d96a2400ce fix: ... 2024-11-14 19:58:00 +08:00
simonzhangsz 39204e55c0 fix: update yaml config file issue 2024-11-14 19:45:18 +08:00
simonzhangsz 6a60d55180 update gitignore 2024-11-14 18:47:48 +08:00
simonzhangsz 8fb18ef6bb fix: remvoe cp omc.d logo file while install package 2024-11-14 18:11:39 +08:00
simonzhangsz e389f98b46 release 2.2411.1 2024-11-08 15:42:24 +08:00
simonzhangsz fa9870f690 support backgroup replace 2024-11-07 17:59:15 +08:00
simonzhangsz 09250dfaf8 support customized images and locales 2024-11-07 16:36:04 +08:00
simonzhangsz 0946603828 update make package shell for npm install 2024-11-05 18:17:37 +08:00
simonzhangsz 23591dfda0 ... 2024-11-01 16:43:01 +08:00
simonzhangsz 1a97be11df ... 2024-11-01 16:10:49 +08:00
simonzhangsz 2454fbf1d6 ... 2024-11-01 15:57:03 +08:00
simonzhangsz f3ee5c189b ... 2024-11-01 15:53:57 +08:00
simonzhangsz 2be4cfdd03 .. 2024-11-01 15:30:34 +08:00
simonzhangsz 9acb7caaa1 ... 2024-11-01 15:22:36 +08:00
simonzhangsz a547fda132 add version tag for multi-tenant 2024-11-01 15:21:01 +08:00
simonzhangsz 821af0148e ... 2024-11-01 14:44:33 +08:00
simonzhangsz 0a43eea194 ... 2024-11-01 14:23:34 +08:00
simonzhangsz e11f0235f1 ... 2024-11-01 14:13:11 +08:00
simonzhangsz 904a13fd56 ... 2024-11-01 14:12:03 +08:00
simonzhangsz c4539e30bb ... 2024-11-01 10:50:47 +08:00
simonzhangsz 103140f08d ... 2024-11-01 10:46:39 +08:00
simonzhangsz 48e6bfd67d Merge branch 'main' into multi-tenant 2024-11-01 10:43:40 +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 05940359d8 git ignore update 2024-10-25 18:48:39 +08:00
simonzhangsz b8e0dc30ac release main line version 2.2410.3 2024-10-25 16:47:36 +08:00
simonzhangsz 9ddc4ea6cb exclude bin file and release file 2024-10-25 15:23:17 +08:00
simonzhangsz e4deb815b9 remove release file 2024-10-25 15:16:22 +08:00
zhangsz 3649afe328 solve conflict file 2024-10-25 14:59:47 +08:00
zhangsz 5cdb82297a rebase 2024-10-25 14:59:45 +08:00
simonzhangsz 615000ee68 change git local root directory 2024-10-24 18:33:17 +08:00
simonzhangsz 625b49a6b4 chmod for shell script 2024-10-24 17:27:32 +08:00
simonzhangsz 2fe1725288 release version 2.2410.2 2024-10-24 17:11:25 +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 7ecd7e1602 update makepkg.sh 2024-10-22 15:05:15 +08:00
simonzhangsz 9dd9a2f391 copyright 2023 change to 2024 2024-10-22 14:15:23 +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
simonzhangsz 11e1604683 update for project tag with such as multi-tenancy while build package 2024-10-17 16:46:02 +08:00
simonzhangsz a78fd76e3b fix: postinst shell script 2024-10-16 16:53:01 +08:00
simonzhangsz 22119320d1 add: update config file while upgrade 2024-10-16 16:40:50 +08:00
simonzhangsz c4142d894b add: upgrade config file while upgrade 2024-10-16 16:22:53 +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 815a754485 release 2.2410.1 for multi-tenant 2024-10-12 13:58:59 +08:00
simonzhangsz 1bbaf9b4d7 Merge branch 'main' into multi-tenant 2024-10-12 11:03:39 +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
simonzhangsz ac6ef015eb release 2.2409.1 for multi-tenancy 2024-09-25 18:20:49 +08:00
simonzhangsz 69a54c9243 Merge branch 'main' into multi-tenant 2024-09-25 17:09:04 +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
simonzhangsz 860b53b06a add: dkpg support environment parameter to do DB install/upgrade 2024-09-03 16:12:18 +08:00
TsMask 480363ae04 chore: 更新版本号2.2408.5 2024-08-31 10:18:36 +08:00
simonzhangsz 7831377857 release for 2.2408.1 2024-08-26 10:46:38 +08:00
simonzhangsz dfb1b87772 add: doc and ctyunos tips 2024-08-26 10:46:21 +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
simonzhangsz 8c2e7957d9 fix: remove kvdb installation 2024-07-23 19:00:54 +08:00
simonzhangsz 5902ba2f51 release 2.2407.5 for multi-tenant 2024-07-23 15:20:32 +08:00
simonzhangsz 5a822828e6 release 2.2407.4 for multi-tenancy 2024-07-19 10:20:03 +08:00
TsMask 10752171a1 chore: 更新版本号 2.2407.3 2024-07-16 11:39:23 +08:00
simonzhangsz a4ff093c81 release 2.2407.3 for multi-tenancy 2024-07-16 10:01:53 +08:00
simonzhangsz 41ea7703f8 change doc sub-directory name 2024-07-16 09:52:12 +08:00
simonzhangsz ed650b18db rename docs sub-directory 2024-07-12 17:38:35 +08:00
simonzhangsz ca9b21ffe3 release 2.2407.2 for multi-tenancy 2024-07-11 11:53:09 +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 52f038e4e1 opt: setting firewall 2024-07-09 16:17:52 +08:00
simonzhangsz 761e4ed44a opt: setting firewall 2024-07-09 16:13:50 +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 2097f177e0 opt: setting firewall in package installation 2024-07-09 16:10:52 +08:00
simonzhangsz 07868f83dc Merge branch 'main' into multi-tenant 2024-07-09 15:16:56 +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
simonzhangsz 3837d1d491 keep logo directory 2024-07-06 16:15:04 +08:00
simonzhangsz 5d390fcefc keep system directory 2024-07-06 15:22:23 +08:00
simonzhangsz d17ae34d37 release 2.2407.1 multi-tenancy beta version 2024-07-05 19:47:04 +08:00
simonzhangsz 272ff190c0 fix: disable system auto upgrade 2024-07-05 10:49:18 +08:00
TsMask 251f798f2e chore: 更新版本号 2.2407.1 2024-07-04 10:25:54 +08:00
simonzhangsz 66366c39fc 更新omc架构和功能文档 2024-07-01 11:58:36 +08:00
TsMask 302011cc19 docs: zh help doc 2024-06-28 16:40:28 +08:00
simonzhangsz c86f8e0356 release 2.2406.4 2024-06-28 15:37:02 +08:00
simonzhangsz 152813bbd4 add: omcuser and cdr format 2024-06-28 15:36:25 +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
simonzhangsz a7e9e6acb7 release 2.2406.3 2024-06-26 15:19:44 +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
simonzhangsz bf6a756b28 change db to tenants_db 2024-06-19 11:44:45 +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
226 changed files with 130854 additions and 2 deletions

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
# ---> 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 and release package
build/
debbuild/etc
debbuild/usr
debbuild/lib
debbuild/22.04/etc
debbuild/22.04/usr
debbuild/22.04/lib
# !debbuild/DEBIAN
# !debbuild/22.04/DEBIAN
# --> release
release/*
# --> debbuild
+35 -2
View File
@@ -1,3 +1,36 @@
# build.ems
# Quickstart Of Build
OMC 打包脚本
## Platform
OS: Ubuntu 18.04 / 22.04 (Recommendation)
Arch: amd64
Database: 10.6.16-MariaDB, Redis server v=5.0.5 (or above)
- Golang: go1.24.2 linux/amd64
- node.js: v20.18.0 (or above)
## Build Guide
```bash
# pwd
cd /root/omc.git
# ls
# be.ems build.ems fe.ems.vue3
cp build.ems/pkg.sh .
bash pkg.sh --web --api -v 2.2508.1
```
Encountered character error
error: `sed: -e expression #1, char 46: Invalid collation character`
```bash
sudo apt-get update
sudo apt-get install locales
sudo locale-gen en_US.UTF-8
sudo update-locale LANG=en_US.UTF-8
source /etc/default/locale
locale
```
BIN
View File
Binary file not shown.
Executable
+308
View File
@@ -0,0 +1,308 @@
#!/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[@]}"
RootDir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
GitLocalRoot=$(dirname $(dirname "$RootDir"))
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.2508.1
RelDate=`date +%Y%m%d`
RelVer=${VERSION}-${RelDate}-mt
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=${EmsBuildRoot}/debbuild/usr/local/omc/htdocs
DebBuild2204Dir=${EmsBuildRoot}/debbuild/22.04
DebBuild2204OMCDir=${EmsBuildRoot}/debbuild/22.04/usr/local/omc
DebFEBuild2204Dir=${EmsBuildRoot}/debbuild/22.04/usr/local/omc/htdocs
RpmBuildDir=${EmsBuildRoot}/rpmbuild
RpmFEBuildDir=${RpmBuildDir}/BUILD/usr/local/omc/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
if [[ ${RpmArch} =~ "x86_64" ]];then
RelArch=amd64
elif [[ ${RpmArch} =~ "aarch64" ]];then
RelArch=arm64
fi
case "${pkgtype}" in
rpm)
echo "Begin to make ${pkgtype} package ======>"
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 && mkdir -p ${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}/*
# chmod 755 ${BinDir2}/*
cp -rf ${BuildDir}/* ${RpmBuildDir}/BUILD/
#cp -rf ${BuildDir}/nginx ${RpmBuildDir}/BUILD/etc/
#cp -rf ${BuildDir}/systemd ${RpmBuildDir}/BUILD/lib/
cd ${RpmBuildDir}
rpmbuild -bb -D "_topdir ${RpmBuildDir}" ${RpmBuildDir}/SPECS/omc.spec
ReleasePkgDir=${ReleaseDir}/rpms/${RelArch}
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 ======>"
VersionID=`grep VERSION_ID /etc/os-release`
if [[ ${VersionID} =~ 'VERSION_ID="22.04"' ]]; then
DebBuildDir=${DebBuild2204Dir}
DebBuildOMCDir=${DebBuild2204OMCDir}
DebFEBuildDir=${DebFEBuild2204Dir}
#DebPkgFile=${PROJECT}-${VERSION}-22.04-${Release).${PLATFORM).deb
DebPkgFile=${PROJECT}-r${RelVer}-ub22.deb
if [ ! $ProjectTag = "" ]; then
DebPkgFile=${ProjectL}-r${RelVer}-ub22-${ProjectTag}.deb
fi
elif [[ ${VersionID} =~ 'VERSION_ID="24.04"' ]]; then
DebBuildDir=${DebBuild2204Dir}
DebBuildOMCDir=${DebBuild2204OMCDir}
DebFEBuildDir=${DebFEBuild2204Dir}
DebPkgFile=${PROJECT}-r${RelVer}-ub24.deb
if [ ! $ProjectTag = "" ]; then
DebPkgFile=${ProjectL}-r${RelVer}-ub24-${ProjectTag}.deb
fi
elif [[ ${VersionID} =~ 'VERSION_ID="18.04"' ]]; then
DebPkgFile=${ProjectL}-r${RelVer}-ub18.deb
if [ ! $ProjectTag = "" ]; then
DebPkgFile=${ProjectL}-r${RelVer}-ub18-${ProjectTag}.deb
fi
else
echo "Invalid OS release: ${VersionID}"
exit 1
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 && mkdir -p ${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 ${CustomizedDir}/ba.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
ReleasePkgDir=${ReleaseDir}/debs/${RelArch}
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 ======>"
VersionID=`grep VERSION_ID /etc/os-release`
if [[ ${VersionID} =~ 'VERSION_ID="22.04"' ]]; then
DebBuildDir=${DebBuild2204Dir}
DebBuildOMCDir=${DebBuild2204OMCDir}
DebFEBuildDir=${DebFEBuild2204Dir}
#DebPkgFile=${PROJECT}-${VERSION}-22.04-${Release).${PLATFORM).deb
DebPkgFile=${ProjectL}-r${RelVer}-ub22-ba.deb
elif [[ ${VersionID} =~ 'VERSION_ID="24.04"' ]]; then
DebBuildDir=${DebBuild2204Dir}
DebBuildOMCDir=${DebBuild2204OMCDir}
DebFEBuildDir=${DebFEBuild2204Dir}
DebPkgFile=${PROJECT}-r${RelVer}-ub24.deb
if [ ! $ProjectTag = "" ]; then
DebPkgFile=${ProjectL}-r${RelVer}-ub24-${ProjectTag}.deb
fi
elif [[ ${VersionID} =~ 'VERSION_ID="18.04"' ]]; then
DebPkgFile=${ProjectL}-r${RelVer}-ub18-ba.deb
else
echo "Invalid OS release: ${VersionID}"
exit 1
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 && mkdir -p ${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
ReleasePkgDir=${ReleaseDir}/debs/${RelArch}
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
Executable
+146
View File
@@ -0,0 +1,146 @@
#!/bin/bash
usage() {
echo "Usage: $0 deb|rpm [option]..."
echo
echo "Make omc package, option as follow:"
echo " deb|rpm, deb: 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 " -m, =be|fe|all be: only process back-end code, default if non input"
echo " fe: only process front-end code"
echo " all: process all include be and fe"
echo " -c, =ba ba: customized for BA OMC"
}
pkgtype=""
new_args=()
be_args=()
# Traverse all parameters
for arg in "$@"; do
if [[ "$arg" == "deb" || "$arg" == "rpm" ]]; then
pkgtype=$arg
be_args+=("$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[@]}"
rootdir=${HOME}/omc.git
m_arg="*"
while getopts "m:r:c:d" option; do
case $option in
m)
m_arg=$(echo $OPTARG | tr '[:upper:]' '[:lower:]')
;;
r)
rootdir=$OPTARG
be_args+=("-r ${rootdir}")
;;
d)
be_args+=("-d")
;;
c)
c_arg=$(echo $OPTARG | tr '[:upper:]' '[:lower:]')
if [ "${c_arg}" == "ba" ]; then
pkgtype="badeb"
be_args+=("${pkgtype}")
fi
;;
\?)
echo "Invalid option: -$OPTARG" >&2
usage
exit 2
;;
esac
done
if [ ! -d ${rootdir} ]; then
echo "Not exist directory: ${rootdir}"
exit 3
fi
bedir=${rootdir}/be.ems
builddir=${rootdir}/build.ems
buildcustomized=${builddir}/customized
customizeddir=${buildcustomized}/${c_arg}.d
fedir=${rootdir}/fe.ems.vue3
feassetsdir=${fedir}/public
felocalesdir=${fedir}/src/i18n/locales
feconstantsdir=${fedir}/src/constants
fehooksdir=${fedir}/src/hooks
makefe() {
cd ${fedir}
# git checkout ${feassetsdir}
# git checkout ${felocalesdir}
# git checkout ${feconstantsdir}
# git checkout ${fehooksdir}
git pull
if [ "${pkgtype}" == "badeb" ]; then
cp -rf ${customizeddir}/images/background_light.jpg ${feassetsdir}/background/light.jpg
cp -rf ${customizeddir}/images/background_dark.jpg ${feassetsdir}/background/dark.jpg
cp -rf ${customizeddir}/locales/zh-CN.ts ${felocalesdir}/zh-CN.ts
find "${feconstantsdir}" -type f -name '*.ts' -exec sed -i 's/[一-龥()“”,。?!]~·]//g' {} +
find "${fehooksdir}" -type f -name '*.ts' -exec sed -i 's/[一-龥()“”,。?!]~·]//g' {} +
fi
# npm install --force --registry https://registry.npmmirror.com
npm install --registry https://registry.npmmirror.com
echo -n "Building front-end vue ... "
npm run build 1>/dev/null
if [ $? = 0 ]; then
echo "done"
fi
git checkout ${feassetsdir}
git checkout ${felocalesdir}
git checkout ${feconstantsdir}
git checkout ${fehooksdir}
}
makebe() {
cd ${builddir}/bin
#chmod +x mkpkg.sh
EmsBEDir=${rootdir}/be.ems
ProcList="restagent sshsvc"
cd $EmsBEDir
for procName in $ProcList;do
cd $EmsBEDir/$procName
echo "Make $procName ..."
make
done
chmod +x build.sh
./build.sh ${be_args[@]}
}
post_makepkg() {
cd ${builddir}
git checkout debbuild/DEBIAN/
git checkout debbuild/22.04/DEBIAN/
}
case "${m_arg}" in
"fe")
makefe
;;
"all")
makefe
makebe
post_makepkg
;;
"be" | "*")
makebe
post_makepkg
;;
esac
Executable
+5
View File
@@ -0,0 +1,5 @@
# copy to /etc/profile.d/ to set the environment variables for all users
# cp -f nodejs.sh /etc/profile.d/99-nodejs.sh
export PATH=/usr/local/bin:$PATH
export NODE_OPTIONS=--max-old-space-size=50000
+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-----
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
-----END OPENSSH PRIVATE KEY-----
+1
View File
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCjzE0MHy0P2sQmG1OKvArwLEzR77BwxPp+4N9NKBz8lEyNch4zoHvoLDaUJKPBMwTrScZnxhvRJNde6hz5Z0QVxZolVKV95fMfgb9YICzDfPF3Bphae5q/PBYUJNfrC9SAjQeHV4CCO6xk6LV8O/Nfw8uaXwtuN3yfpUWd5mRWKMc3GHV4vxerfKoIQZN6etLhIEYibAhCJ21P0uoWzZl7ceLmkG+6qrRSbyC0bCnrN3+wjN4bwtflrEFJk3XQGuRbVsYLzux+mMm9p22+CLPRl/FUPF3x4/wKCsqr7JDSxx80HSPhk4g/1nCTpDR9hAfF6A9ww2va/k8jMeYPBO8Owe7erLEZzvg5WQAR3Wj05eJpJD99BeC91S5KW6AFQDfDHxWWprSibd/Jj9dtct2pK2ZxW0ph9OJ49ftRhzT1iVi4UnJwnG5/qLfwl6Tnx+qnQ1If/9lY/99erCTATzFTMSImKrRz7CnuPlcw8WkzCYpWKKe0kJLkL2cRD5Qi4yk= simon@simonzhangsz
+38
View File
@@ -0,0 +1,38 @@
-----BEGIN OPENSSH PRIVATE KEY-----
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
-----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: ""
+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;
}
}
@@ -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,221 @@
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- This XSLT will convert a PDML file, saved by Wireshark, into
HTML. The HTML page should look similar to Wireshark. See
https://gitlab.com/wireshark/wireshark/-/wikis/PDML for information
on how to generate such a HTML file from PDML.
For questions contact Dirk Jagdmann (doj@cubic.org).
Version: 2010-06-09
Wireshark - Network traffic analyzer
By Gerald Combs <gerald@wireshark.org>
Copyright 1998 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later
-->
<!-- set parameters of the HTML output -->
<xsl:output method="html" encoding="UTF-8" omit-xml-declaration="no" standalone="yes" indent="yes"/>
<!-- this matches the "field" tag -->
<xsl:template match="field">
&#160;&#160;&#160; <!-- indent with 3 non-breaking spaces -->
<!-- output either the "showname" or "show" attribute -->
<xsl:choose>
<xsl:when test="string-length(@showname)>0">
<xsl:value-of select="@showname"/><br/>
</xsl:when>
<xsl:otherwise>
<!--<xsl:value-of select="@name"/>:--> <xsl:value-of select="@show"/><br/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates/> <!-- we expect to match "field" tags -->
</xsl:template>
<!-- this matches the "packet" tag -->
<xsl:template match="packet">
<!-- declare some variables for later use -->
<xsl:variable name="frame_num" select="proto[@name='frame']/field[@name='frame.number']/@show"/>
<xsl:variable name="frame_id" select="concat('f',$frame_num)"/>
<xsl:variable name="frame_c" select="concat($frame_id,'c')"/>
<!-- the "title" bar of the frame -->
<div width="100%" id="{$frame_id}">
<a href="javascript:toggle_node('{$frame_c}')">&#8658;</a> <!-- #8658 is a "rArr" (double right arrow) character -->
Frame <xsl:value-of select="$frame_num"/>:
<xsl:for-each select="proto[@name!='geninfo']">
<xsl:value-of select="@name"/>,
</xsl:for-each>
<small><a href="javascript:hide_node('{$frame_id}')">[X]</a></small>
</div>
<!-- the frame contents are stored in a div, so we can toggle it -->
<div width="100%" id="{$frame_c}" style="display:none">
<!-- loop through all proto tags, but skip the "geninfo" one -->
<xsl:for-each select="proto[@name!='geninfo']">
<xsl:variable name="proto" select="concat($frame_id,@name,count(preceding-sibling::proto)+1)"/>
<!-- the "title" bar of the proto -->
<div width="100%" style="background-color:#e5e5e5; margin-bottom: 2px">
&#160;<a href="javascript:toggle_node('{$proto}')">&#8658;</a>&#160;<xsl:value-of select="@showname"/>
<!-- print "proto" details inside another div -->
<div width="100%" id="{$proto}" style="display:none">
<xsl:apply-templates/> <!-- we expect to match "field" tags -->
</div>
</div>
</xsl:for-each>
</div>
<!-- use the javascript function set_node_color() to set the color
of the frame title bar. Defer colorization until the full page has
been loaded. If the browser would support the XPath function
replace() we could simply set the class attribute of the title bar div,
but for now we're stuck with class names from Wireshark's colorfilters
that contain spaces and we can't handle them in CSS. -->
<script type="text/javascript">
dojo.addOnLoad(function(){
set_node_color(
'<xsl:value-of select="$frame_id"/>',
'<xsl:value-of select="proto[@name='frame']/field[@name='frame.coloring_rule.name']/@show"/>'
);
});
</script>
</xsl:template>
<xsl:template match="pdml">
Capture Filename: <b><xsl:value-of select="@capture_file"/></b>
PDML created: <b><xsl:value-of select="@time"/></b>
<tt>
<xsl:apply-templates/> <!-- we expect to match the "packet" nodes -->
</tt>
</xsl:template>
<!-- this block matches the start of the PDML file -->
<xsl:template match="/">
<html>
<head>
<title>poor man's Wireshark</title>
<script src="https://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js" type="text/javascript"></script>
<script type="text/javascript">
function set_node(node, str)
{
if(dojo.isString(node))
node = dojo.byId(node);
if(!node) return;
node.style.display = str;
}
function toggle_node(node)
{
if(dojo.isString(node))
node = dojo.byId(node);
if(!node) return;
set_node(node, (node.style.display != 'none') ? 'none' : 'block');
}
function hide_node(node)
{
set_node(node, 'none');
}
// this function was generated by colorfilters2js.pl
function set_node_color(node,colorname)
{
if(dojo.isString(node))
node = dojo.byId(node);
if(!node) return;
var fg;
var bg;
if(colorname == 'Bad TCP') {
bg='#000000';
fg='#ff5f5f';
}
if(colorname == 'HSRP State Change') {
bg='#000000';
fg='#fff600';
}
if(colorname == 'Spanning Tree Topology Change') {
bg='#000000';
fg='#fff600';
}
if(colorname == 'OSPF State Change') {
bg='#000000';
fg='#fff600';
}
if(colorname == 'ICMP errors') {
bg='#000000';
fg='#00ff0e';
}
if(colorname == 'ARP') {
bg='#d6e8ff';
fg='#000000';
}
if(colorname == 'ICMP') {
bg='#c2c2ff';
fg='#000000';
}
if(colorname == 'TCP RST') {
bg='#900000';
fg='#fff680';
}
if(colorname == 'TTL low or unexpected') {
bg='#900000';
fg='#ffffff';
}
if(colorname == 'Checksum Errors') {
bg='#000000';
fg='#ff5f5f';
}
if(colorname == 'SMB') {
bg='#fffa99';
fg='#000000';
}
if(colorname == 'HTTP') {
bg='#8dff7f';
fg='#000000';
}
if(colorname == 'IPX') {
bg='#ffe3e5';
fg='#000000';
}
if(colorname == 'DCERPC') {
bg='#c797ff';
fg='#000000';
}
if(colorname == 'Routing') {
bg='#fff3d6';
fg='#000000';
}
if(colorname == 'TCP SYN/FIN') {
bg='#a0a0a0';
fg='#000000';
}
if(colorname == 'TCP') {
bg='#e7e6ff';
fg='#000000';
}
if(colorname == 'UDP') {
bg='#70e0ff';
fg='#000000';
}
if(colorname == 'Broadcast') {
bg='#ffffff';
fg='#808080';
}
if(fg.length > 0)
node.style.color = fg;
if(bg.length > 0)
node.style.background = bg;
}
</script>
</head>
<body>
<xsl:apply-templates/> <!-- we expect to match the "pdml" node -->
</body>
</html>
</xsl:template>
</xsl:stylesheet>
@@ -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.
Whitespace-only changes.
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 ©2025 千通科技', '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 ©2025 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: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

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 ©2025 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 ©2025 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

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 ©2025', '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 ©2025', '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: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

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.2508.1-YYYYMMDD-mt
Section: AGrandTech
Prioritt: optional
Architecture: amd64
Maintainer: Simon Zhangsz
Depends:
Description: OMC
+151
View File
@@ -0,0 +1,151 @@
#!/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" ] && [ "${CFile}" = "restconf.yaml" ]; then
${OMCBinDir}/upgconf.sh
fi
fi
done
# # Install redis db if not exist /usr/local/db
# if [ ! -e "${RedisRootDir}/bin/kvdb-server" ]; then
# # if [ ! -e "${RedisRootDir}" ]; then
# # mkdir -p ${RedisRootDir}
# # fi
# # stop old adb service
# if [ -e "${RedisOldRootDir}/bin/redis-server" ] && [ -e "${SystemdRootDir}/adb.service" ]; then
# systemctl stop adb.service
# systemctl disable adb.service
# fi
# # stop adb service
# if [ -e "${UsrLocalBinDir}/adb-server" ] && [ -e "${SystemdRootDir}/adb.service" ]; then
# systemctl stop adb.service
# systemctl disable adb.service
# fi
# cp -rf ${DependsRootDir}/kvdb/* /
# chmod +rx ${RedisRootDir}/bin/kvdb*
# if [ ! -e "${RedisConfDir}/kvdb.conf" ]; then
# cp ${RedisConfDir}/default/kvdb.conf ${RedisConfDir}
# fi
# sed -i 's/replica-read-only yes/replica-read-only no/g' ${RedisConfDir}/kvdb.conf
# LINE="masterauth helloearth"
# FILE="${RedisConfDir}/kvdb.conf"
# # 检查文件中是否存在该行
# if ! grep -qxF "$LINE" "$FILE"; then
# # 如果不存在,将其添加到文件末尾
# echo "$LINE" >> "$FILE"
# fi
# # copy the old adb dump.rdb
# if [ -e "${RedisOldRootDir}/bin/conf/dump.rdb" ] && [ ! -e "${RedisRootDir}/etc/kvdb/dump.rdb" ]; then
# cp -f ${RedisOldRootDir}/bin/conf/dump.rdb ${RedisRootDir}/etc/kvdb/;
# mv -f ${RedisRootDir}/db ${RedisRootDir}/adb.old
# fi
# # copy the adb dump.rdb
# if [ -e "${RedisRootDir}/etc/adb/dump.rdb" ] && [ ! -e "${RedisRootDir}/etc/kvdb/dump.rdb" ]; then
# cp -f ${RedisRootDir}/etc/adb/dump.rdb ${RedisRootDir}/etc/kvdb/;
# mv -f ${RedisRootDir}/etc/adb ${RedisRootDir}/etc/adb.old
# fi
# # cp -f ${DependsRootDir}/systemd/kvdb.service ${SystemdRootDir}
# else
# if [ ! -e "${RedisConfDir}/kvdb.conf" ]; then
# cp ${RedisConfDir}/default/kvdb.conf ${RedisConfDir}
# fi
# sed -i 's/replica-read-only yes/replica-read-only no/g' ${RedisConfDir}/kvdb.conf
# LINE="masterauth helloearth"
# FILE="${RedisConfDir}/kvdb.conf"
# # 检查文件中是否存在该行
# if ! grep -qxF "$LINE" "$FILE"; then
# # 如果不存在,将其添加到文件末尾
# echo "$LINE" >> "$FILE"
# fi
# fi
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;
}
}
Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
@@ -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: ""
@@ -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: ""
@@ -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: ""
@@ -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: ""
Whitespace-only changes.
@@ -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;
}
}
@@ -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,221 @@
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- This XSLT will convert a PDML file, saved by Wireshark, into
HTML. The HTML page should look similar to Wireshark. See
https://gitlab.com/wireshark/wireshark/-/wikis/PDML for information
on how to generate such a HTML file from PDML.
For questions contact Dirk Jagdmann (doj@cubic.org).
Version: 2010-06-09
Wireshark - Network traffic analyzer
By Gerald Combs <gerald@wireshark.org>
Copyright 1998 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later
-->
<!-- set parameters of the HTML output -->
<xsl:output method="html" encoding="UTF-8" omit-xml-declaration="no" standalone="yes" indent="yes"/>
<!-- this matches the "field" tag -->
<xsl:template match="field">
&#160;&#160;&#160; <!-- indent with 3 non-breaking spaces -->
<!-- output either the "showname" or "show" attribute -->
<xsl:choose>
<xsl:when test="string-length(@showname)>0">
<xsl:value-of select="@showname"/><br/>
</xsl:when>
<xsl:otherwise>
<!--<xsl:value-of select="@name"/>:--> <xsl:value-of select="@show"/><br/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates/> <!-- we expect to match "field" tags -->
</xsl:template>
<!-- this matches the "packet" tag -->
<xsl:template match="packet">
<!-- declare some variables for later use -->
<xsl:variable name="frame_num" select="proto[@name='frame']/field[@name='frame.number']/@show"/>
<xsl:variable name="frame_id" select="concat('f',$frame_num)"/>
<xsl:variable name="frame_c" select="concat($frame_id,'c')"/>
<!-- the "title" bar of the frame -->
<div width="100%" id="{$frame_id}">
<a href="javascript:toggle_node('{$frame_c}')">&#8658;</a> <!-- #8658 is a "rArr" (double right arrow) character -->
Frame <xsl:value-of select="$frame_num"/>:
<xsl:for-each select="proto[@name!='geninfo']">
<xsl:value-of select="@name"/>,
</xsl:for-each>
<small><a href="javascript:hide_node('{$frame_id}')">[X]</a></small>
</div>
<!-- the frame contents are stored in a div, so we can toggle it -->
<div width="100%" id="{$frame_c}" style="display:none">
<!-- loop through all proto tags, but skip the "geninfo" one -->
<xsl:for-each select="proto[@name!='geninfo']">
<xsl:variable name="proto" select="concat($frame_id,@name,count(preceding-sibling::proto)+1)"/>
<!-- the "title" bar of the proto -->
<div width="100%" style="background-color:#e5e5e5; margin-bottom: 2px">
&#160;<a href="javascript:toggle_node('{$proto}')">&#8658;</a>&#160;<xsl:value-of select="@showname"/>
<!-- print "proto" details inside another div -->
<div width="100%" id="{$proto}" style="display:none">
<xsl:apply-templates/> <!-- we expect to match "field" tags -->
</div>
</div>
</xsl:for-each>
</div>
<!-- use the javascript function set_node_color() to set the color
of the frame title bar. Defer colorization until the full page has
been loaded. If the browser would support the XPath function
replace() we could simply set the class attribute of the title bar div,
but for now we're stuck with class names from Wireshark's colorfilters
that contain spaces and we can't handle them in CSS. -->
<script type="text/javascript">
dojo.addOnLoad(function(){
set_node_color(
'<xsl:value-of select="$frame_id"/>',
'<xsl:value-of select="proto[@name='frame']/field[@name='frame.coloring_rule.name']/@show"/>'
);
});
</script>
</xsl:template>
<xsl:template match="pdml">
Capture Filename: <b><xsl:value-of select="@capture_file"/></b>
PDML created: <b><xsl:value-of select="@time"/></b>
<tt>
<xsl:apply-templates/> <!-- we expect to match the "packet" nodes -->
</tt>
</xsl:template>
<!-- this block matches the start of the PDML file -->
<xsl:template match="/">
<html>
<head>
<title>poor man's Wireshark</title>
<script src="https://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js" type="text/javascript"></script>
<script type="text/javascript">
function set_node(node, str)
{
if(dojo.isString(node))
node = dojo.byId(node);
if(!node) return;
node.style.display = str;
}
function toggle_node(node)
{
if(dojo.isString(node))
node = dojo.byId(node);
if(!node) return;
set_node(node, (node.style.display != 'none') ? 'none' : 'block');
}
function hide_node(node)
{
set_node(node, 'none');
}
// this function was generated by colorfilters2js.pl
function set_node_color(node,colorname)
{
if(dojo.isString(node))
node = dojo.byId(node);
if(!node) return;
var fg;
var bg;
if(colorname == 'Bad TCP') {
bg='#000000';
fg='#ff5f5f';
}
if(colorname == 'HSRP State Change') {
bg='#000000';
fg='#fff600';
}
if(colorname == 'Spanning Tree Topology Change') {
bg='#000000';
fg='#fff600';
}
if(colorname == 'OSPF State Change') {
bg='#000000';
fg='#fff600';
}
if(colorname == 'ICMP errors') {
bg='#000000';
fg='#00ff0e';
}
if(colorname == 'ARP') {
bg='#d6e8ff';
fg='#000000';
}
if(colorname == 'ICMP') {
bg='#c2c2ff';
fg='#000000';
}
if(colorname == 'TCP RST') {
bg='#900000';
fg='#fff680';
}
if(colorname == 'TTL low or unexpected') {
bg='#900000';
fg='#ffffff';
}
if(colorname == 'Checksum Errors') {
bg='#000000';
fg='#ff5f5f';
}
if(colorname == 'SMB') {
bg='#fffa99';
fg='#000000';
}
if(colorname == 'HTTP') {
bg='#8dff7f';
fg='#000000';
}
if(colorname == 'IPX') {
bg='#ffe3e5';
fg='#000000';
}
if(colorname == 'DCERPC') {
bg='#c797ff';
fg='#000000';
}
if(colorname == 'Routing') {
bg='#fff3d6';
fg='#000000';
}
if(colorname == 'TCP SYN/FIN') {
bg='#a0a0a0';
fg='#000000';
}
if(colorname == 'TCP') {
bg='#e7e6ff';
fg='#000000';
}
if(colorname == 'UDP') {
bg='#70e0ff';
fg='#000000';
}
if(colorname == 'Broadcast') {
bg='#ffffff';
fg='#808080';
}
if(fg.length > 0)
node.style.color = fg;
if(bg.length > 0)
node.style.background = bg;
}
</script>
</head>
<body>
<xsl:apply-templates/> <!-- we expect to match the "pdml" node -->
</body>
</html>
</xsl:template>
</xsl:stylesheet>
@@ -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.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
+8
View File
@@ -0,0 +1,8 @@
Package: OMC
Version: 2.2508.1-YYYYMMDD-mt
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" ] && [ "${CFile}" = "restconf.yaml" ]; 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"
Loaded 100 of 226 files, more files were not shown because too many files have changed in this diff. Show more