13 Commits
Author SHA1 Message Date
simon 1386f2aa41 release 2.2504.1 2025-05-23 18:48:08 +08:00
simon d0d4efed93 feat: nbi interface md 2025-05-23 18:11:05 +08:00
simon 1cda2618f3 fix: ../spec 2025-04-30 11:29:15 +08:00
simon 9046f4daa7 fix> ... 2025-04-30 11:16:48 +08:00
simon c3eb9874a8 fix: firewall cmd 2025-04-29 20:51:46 +08:00
simon 22d3f6f9fa fix... 2025-04-29 20:43:13 +08:00
simon efa3b6e627 fix: ... 2025-04-29 20:37:57 +08:00
simon c565a3ee8f fix: ignore rpm buildroot 2025-04-29 20:26:30 +08:00
simon 1e1b8394a5 fix: spec for epenEuler 2025-04-29 20:25:21 +08:00
simon 91ac4aa3ff fix: openEuler majorVersion 2025-04-28 17:23:25 +08:00
simon 3451f36ece feat: build sh update 2025-04-27 20:01:59 +08:00
simon c12c9d2f31 fix: restconf.yaml 2025-04-27 11:54:18 +08:00
zhangsz f1685db6ed release nbi 2.2504.1 2025-04-25 15:19:20 +08:00
8 changed files with 94 additions and 33 deletions

No files matched your search

+1
View File
@@ -27,5 +27,6 @@ release
rpmbuild/RPMS rpmbuild/RPMS
rpmbuild/SOURCES rpmbuild/SOURCES
rpmbuild/BUILD rpmbuild/BUILD
rpmbuild/BUILDROOT
+3 -2
View File
@@ -56,7 +56,7 @@ fi
ProjectL=omc ProjectL=omc
ProjectU=OMC ProjectU=OMC
PROJECT=${ProjectL} PROJECT=${ProjectL}
VERSION=2.2503.5 VERSION=2.2505.1
RelDate=`date +%Y%m%d` RelDate=`date +%Y%m%d`
RelVer=${VERSION}-${RelDate} RelVer=${VERSION}-${RelDate}
Ky10Arch=ky10.aarch64 Ky10Arch=ky10.aarch64
@@ -159,7 +159,8 @@ case $(get_os_info) in
;; ;;
openEuler) openEuler)
ptype=rpm ptype=rpm
RelOS=oe20 majorVersion=${OSVersion:0:2}
RelOS=oe${majorVersion}
RpmPkgName=${ProjectL}-${RelVer}.${RpmArch}.${ptype} RpmPkgName=${ProjectL}-${RelVer}.${RpmArch}.${ptype}
RpmPkgRename=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype} RpmPkgRename=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
;; ;;
+1 -1
View File
@@ -107,7 +107,7 @@ makefe() {
} }
makebe() { makebe() {
cd ${builddir} cd ${builddir}/bin
#chmod +x mkpkg.sh #chmod +x mkpkg.sh
chmod +x build.sh chmod +x build.sh
./build.sh ${be_args[@]} ./build.sh ${be_args[@]}
@@ -57,12 +57,6 @@ redis:
host: "127.0.0.1" # Redis host host: "127.0.0.1" # Redis host
password: "helloearth" password: "helloearth"
db: 10 # Redis db_num db: 10 # Redis db_num
# UDM sub/auth db
udmuser:
port: 6379 # Redis port
host: "127.0.0.1"
password: "helloearth"
db: 0 # Redis db_num
# used to specify the default data source for multiple data resourece # used to specify the default data source for multiple data resourece
defaultDataSourceName: "default" defaultDataSourceName: "default"
@@ -78,7 +72,7 @@ mml:
# Tracking configuration # Tracking configuration
trace: trace:
enabled: true enabled: false
host: "172.16.5.100" # Fill in the specific IP address host: "172.16.5.100" # Fill in the specific IP address
port: 33033 port: 33033
@@ -109,7 +103,9 @@ omc:
vendor: "" vendor: ""
dn: "" dn: ""
chk2ne: false chk2ne: false
capability: 50
sn: "-" sn: "-"
expiryDate: "-"
checksign: false checksign: false
rootDir: /usr/local/omc rootDir: /usr/local/omc
binDir: /usr/local/omc/bin binDir: /usr/local/omc/bin
+1 -1
View File
@@ -1,5 +1,5 @@
Package: OMC Package: OMC
Version: 2.2503.5-YYYYMMDD Version: 2.2505.1-YYYYMMDD
Section: AGrandTech Section: AGrandTech
Prioritt: optional Prioritt: optional
Architecture: amd64 Architecture: amd64
+1 -1
View File
@@ -1,5 +1,5 @@
Package: OMC Package: OMC
Version: 2.2503.5-YYYYMMDD Version: 2.2505.1-YYYYMMDD
Section: AGrandTech Section: AGrandTech
Prioritt: optional Prioritt: optional
Architecture: amd64 Architecture: amd64
+47
View File
@@ -0,0 +1,47 @@
# OMC->北向通信协议 基于redis stream消息队列实现
## 告警关联关系数据上报变更
alarm_relation告警新增时
* streamkey和数据格式
```json
alarm_relation
{
"payload": "{\"ids\":[\"871847\",\"557903\"]}"
}
```
1、871847,557903为alarm_relation表主键,至少一个数据
## 资源数据上报变更
nbi_cm表新增时
* streamkey和数据格式
```json
nbi_cm
{
"payload": "{\"ids\":[\"642470\",\"105633\"]}"
}
```
1、642470,105633为nbi_cm表主键ID,ID支持多个
## 1分钟性能订阅上报数据
kpi_report_*表新增时
* 数据格式
```json
nbi_pm
{
"payload": "{\"neType\":\"AMF\",\"id\":\"606538\"}"
}
```
1、AMF、PCF等为具体对应的网元
2、606538为kpi_report_amf、kpi_report_pcf等表主键ID,ID支持一个
+37 -21
View File
@@ -6,9 +6,10 @@
%define project_lname omc %define project_lname omc
%define project_Uname OMC %define project_Uname OMC
Name: %{project_lname} Name: %{project_lname}
Summary: 5GC OMC Summary: 5GC OMC
Version: 2.2503.5 Version: 2.2505.1
Release: %{release_date} Release: %{release_date}
Vendor: omc Vendor: omc
URL: https://www.omc.com/ URL: https://www.omc.com/
@@ -28,6 +29,13 @@ chmod +rx ${RPM_BUILD_ROOT}/usr/local/bin/*
chmod +x ${RPM_BUILD_ROOT}/usr/local/omc/htdocs/front chmod +x ${RPM_BUILD_ROOT}/usr/local/omc/htdocs/front
chmod +rx ${RPM_BUILD_ROOT}/usr/lib64/* chmod +rx ${RPM_BUILD_ROOT}/usr/lib64/*
# 安装前执行
%pre
echo -n "Stopping OMC service ... "
systemctl stop restagent.service
systemctl stop sshsvc.service
echo "done"
# 安装完成后执行 # 安装完成后执行
%post %post
OMCRootDir=/usr/local/omc OMCRootDir=/usr/local/omc
@@ -41,10 +49,10 @@ NginxEtcDir=/etc/nginx
CFileList="restconf.yaml sshsvc.yaml omc.conf" CFileList="restconf.yaml sshsvc.yaml omc.conf"
LogoFileList="zh_brand.png zh_icon.png en_brand.png en_icon.png" LogoFileList="zh_brand.png zh_icon.png en_brand.png en_icon.png"
echo -n "Stopping OMC service ... " # echo -n "Stopping OMC service ... "
systemctl stop restagent.service # systemctl stop restagent.service
systemctl stop sshsvc.service # systemctl stop sshsvc.service
echo "done" # echo "done"
for CFile in ${CFileList}; do for CFile in ${CFileList}; do
if [ ! -e "${OMCEtcDir}/${CFile}" ]; then if [ ! -e "${OMCEtcDir}/${CFile}" ]; then
@@ -67,12 +75,17 @@ done
if ! id -u omc >/dev/null 2>&1 ; then useradd -d /opt/omc -m -s /bin/bash -p1000ftp@kp omc; else echo "user omc exist"; fi if ! id -u omc >/dev/null 2>&1 ; then useradd -d /opt/omc -m -s /bin/bash -p1000ftp@kp omc; else echo "user omc exist"; fi
mkdir -p /opt/omc/ftp mkdir -p /opt/omc/ftp
mkdir -p /opt/omc/ftp/log mkdir -p /opt/omc/ftp/log
cd ${UsrLocalBinDir}
if [ ! -e ${OMCDaemon} ]; then ln -s ${OMCBinDir}/omcsvc.sh ${OMCDaemon}; fi if [ ! -e ${UsrLocalBinDir}/${OMCDaemon} ]; then
echo -n "Creating symbolic link ${UsrLocalBinDir}/${OMCDaemon} ... "
ln -s ${OMCBinDir}/omcsvc.sh ${UsrLocalBinDir}/${OMCDaemon};
echo "done"
fi
# setting firewall # setting firewall
PortList="80 443 44080 44443 33030 22222" port_list="80 443 44080 44443 33030 33443 33066 6379 22222"
for Port in ${PortList}; do for Port in ${port_list}; do
echo -n "firewall-cmd add port ${Port} ... "
firewall-cmd --zone=public --add-port=${Port}/tcp --permanent firewall-cmd --zone=public --add-port=${Port}/tcp --permanent
done done
firewall-cmd --reload firewall-cmd --reload
@@ -97,22 +110,15 @@ if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then
fi fi
fi fi
echo -n "Starting OMC service ... " # echo -n "Starting OMC service ... "
systemctl start sshsvc.service # systemctl start sshsvc.service
systemctl start restagent.service # systemctl start restagent.service
echo "done" # echo "done"
# 卸载时执行 # 卸载时执行
%postun %postun
UsrLocalBinDir=/usr/local/bin UsrLocalBinDir=/usr/local/bin
rm -f ${UsrLocalBinDir}/omcd OMCDaemon=omcd
# setting firewall
PortList="80 443 44080 44443 33030 22222"
for Port in ${PortList}; do
firewall-cmd --zone=public --remove-port=${Port}/tcp --permanent
done
firewall-cmd --reload
if [ "$1" = "0" ] ; then if [ "$1" = "0" ] ; then
sudo systemctl stop restagent.service sudo systemctl stop restagent.service
@@ -122,12 +128,22 @@ if [ "$1" = "0" ] ; then
sudo systemctl disable restagent.service sudo systemctl disable restagent.service
sudo systemctl disable sshsvc.service sudo systemctl disable sshsvc.service
sudo systemctl daemon-reload sudo systemctl daemon-reload
# setting firewall
port_list="80 443 44080 44443 33030 33443 33066 6379 22222"
for Port in ${port_list}; do
echo -n "firewall-cmd remove port ${Port} ... "
firewall-cmd --zone=public --remove-port=${Port}/tcp --permanent
done
firewall-cmd --reload
rm -f ${UsrLocalBinDir}/${OMCDaemon}
else else
echo -n "Starting OMC service ... "
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl stop restagent.service sudo systemctl stop restagent.service
sudo systemctl stop sshsvc.service sudo systemctl stop sshsvc.service
sudo systemctl start sshsvc.service sudo systemctl start sshsvc.service
sudo systemctl start restagent.service sudo systemctl start restagent.service
echo "done"
fi fi
# 规定那些文件必须放入安装程序中,如果没有就报错 # 规定那些文件必须放入安装程序中,如果没有就报错