Compare commits
149 Commits
615000ee68
...
main-v2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
458d8c9755 | ||
|
|
5a59f6547b | ||
|
|
b05211489e | ||
|
|
a546f1783d | ||
|
|
620dfe629f | ||
|
|
e07774bc57 | ||
|
|
707a0c0e0b | ||
|
|
2f6ad6cac0 | ||
|
|
9036324202 | ||
|
|
299b87d95b | ||
|
|
75c22c4d8e | ||
|
|
4aa0c545a1 | ||
|
|
f6203348bd | ||
|
|
1aa84000fe | ||
|
|
f925645b88 | ||
|
|
6ab25532e5 | ||
|
|
4c2bab63f2 | ||
|
|
b7a3aca364 | ||
|
|
1f11bf2bbc | ||
|
|
5518d0a8bf | ||
|
|
e986487579 | ||
|
|
551dfb3587 | ||
|
|
d103c3632c | ||
|
|
6e769c468d | ||
|
|
e279b75c49 | ||
|
|
2f5031cbd4 | ||
|
|
46bc90c2e4 | ||
|
|
ac23c3a9f1 | ||
|
|
ccad67ca7a | ||
|
|
0fe95af9c3 | ||
|
|
952e55140b | ||
|
|
b165562c2a | ||
|
|
ffe9c4c498 | ||
|
|
16189c51fa | ||
|
|
0f7ff2aca7 | ||
|
|
04eb36e899 | ||
|
|
7891d268cb | ||
|
|
bbbd5471c7 | ||
|
|
83c7603f91 | ||
|
|
1c96e28f38 | ||
|
|
8c94cf6bc0 | ||
|
|
1da05f7721 | ||
|
|
94481d36cd | ||
|
|
86c3a87b35 | ||
|
|
096989ad15 | ||
|
|
9ee596f01d | ||
|
|
38f6652301 | ||
|
|
fb021f4605 | ||
|
|
04a5f9052e | ||
|
|
7cac1e1249 | ||
|
|
23a51956ca | ||
|
|
471811c1ca | ||
|
|
80fb41ea51 | ||
|
|
4a0a341c4e | ||
|
|
ab2026523a | ||
|
|
29d1c41973 | ||
|
|
92e1d20e9f | ||
|
|
1f96e09a18 | ||
|
|
e5c496d0bb | ||
|
|
6fdc7738db | ||
|
|
79b1eb8364 | ||
|
|
874707cd00 | ||
|
|
e363529519 | ||
|
|
5160e85804 | ||
|
|
0aeb0673ee | ||
|
|
0f1aae7c9a | ||
|
|
f35c535a77 | ||
|
|
3655fb999a | ||
|
|
6c0e636f3c | ||
|
|
96f56939e3 | ||
|
|
691bb89829 | ||
|
|
3a9b4375f4 | ||
|
|
b2f867b86c | ||
|
|
f2e43b0fc4 | ||
|
|
6e4f2c7773 | ||
|
|
53e5717400 | ||
|
|
ca6b277c88 | ||
|
|
edc4ce7d48 | ||
|
|
ab59bd6869 | ||
|
|
8c115a418f | ||
|
|
c0c420dd4b | ||
|
|
6745c5e196 | ||
|
|
2bfc7887e3 | ||
|
|
645f223a2a | ||
|
|
66d3eaf79c | ||
|
|
9a41cbd736 | ||
|
|
f4c79abf83 | ||
|
|
542c9721ef | ||
|
|
e42d35c5e0 | ||
|
|
667f6b1987 | ||
|
|
6adf76b589 | ||
|
|
49f0ba4a7a | ||
|
|
27826e4523 | ||
|
|
1316629dc8 | ||
|
|
82a0d32f15 | ||
|
|
83ce21d2c3 | ||
|
|
1efc851b39 | ||
|
|
d9c16a616c | ||
|
|
a2800bed0d | ||
|
|
cf97351fc9 | ||
|
|
251284aa38 | ||
|
|
1fe4eddd33 | ||
|
|
6211a88f2e | ||
|
|
b73cd05af8 | ||
|
|
16d20fcad4 | ||
|
|
9f1a097e2a | ||
|
|
cfa0825e22 | ||
|
|
5bc958e911 | ||
|
|
e636f76506 | ||
|
|
1ca15477ca | ||
|
|
7ce96a7178 | ||
|
|
639107ba3d | ||
| dd0d67c0ea | |||
| 343e32735d | |||
| 37477ad9f1 | |||
| 1fb64561c4 | |||
| abb2a8a33d | |||
|
|
1dc143c062 | ||
| ff7973194f | |||
| c9277f1123 | |||
| b8c1740875 | |||
| 121cbea72e | |||
| 3e08ef0cc4 | |||
| 38dabd180d | |||
| cd6578f57c | |||
|
|
f403456185 | ||
| dbded5635f | |||
| 44fad7ae82 | |||
| ec00a5fdec | |||
| f57e479e54 | |||
| ceb385bbc6 | |||
| fb6526e0a0 | |||
| 6ed5e0c425 | |||
| 109c8ad68a | |||
| 6a48f1182f | |||
| 8b4492153c | |||
| c659fa38d2 | |||
| 21ce1d667e | |||
| 136f00ab62 | |||
| b8e0dc30ac | |||
| c01c84e2e4 | |||
| 25bf25c459 | |||
|
|
6205a6c178 | ||
| 00aad81aab | |||
| b2333b119d | |||
|
|
3074d4a16a | ||
|
|
12fb46302a | ||
|
|
c17ba60b56 | ||
|
|
b83e486c36 |
11
.gitignore
vendored
@@ -8,13 +8,14 @@
|
|||||||
|
|
||||||
# Local History for Visual Studio Code
|
# Local History for Visual Studio Code
|
||||||
.history/
|
.history/
|
||||||
|
.idea/
|
||||||
# Run temp file and dir
|
|
||||||
docs/temp/
|
|
||||||
|
|
||||||
|
|
||||||
# Built Visual Studio Code Extensions
|
# Built Visual Studio Code Extensions
|
||||||
*.vsix
|
*.vsix
|
||||||
|
*.log
|
||||||
|
*.log
|
||||||
*.bak
|
*.bak
|
||||||
|
*.exe
|
||||||
|
|
||||||
|
# Build Output
|
||||||
|
tmp/*
|
||||||
|
|||||||
35
README.md
@@ -4,23 +4,34 @@
|
|||||||
|
|
||||||
OS: Ubuntu 18.04 / 22.04 (Recommendation)
|
OS: Ubuntu 18.04 / 22.04 (Recommendation)
|
||||||
|
|
||||||
Arch: amd64
|
Golang: go1.24.2 (or above)
|
||||||
|
|
||||||
Golang: go1.22.1 linux/amd64
|
|
||||||
|
|
||||||
Database: 10.6.16-MariaDB, Redis server v=5.0.5 (or above)
|
Database: 10.6.16-MariaDB, Redis server v=5.0.5 (or above)
|
||||||
|
|
||||||
node.js: v18.16.0 (or above)
|
node.js: v20.18.0 (or above)
|
||||||
|
|
||||||
## Build Guide
|
## Build Guide
|
||||||
|
|
||||||
|
### Pull Code
|
||||||
|
|
||||||
|
`pwd` default in `/root`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://xxx@bitbucket.org/bluearcuscom/ems.git omc.git
|
git clone https://xxx@git/ems.git omc.git
|
||||||
cd omc.git
|
cd omc.git && ls
|
||||||
git pull
|
# be.ems build.ems fe.ems.vue3
|
||||||
cd fe.ems.vue3
|
cp build.ems/pkg-* .
|
||||||
npm install
|
```
|
||||||
npm run build
|
|
||||||
cd ../build.ems
|
### Build System Pageage Manager
|
||||||
./build.sh deb
|
|
||||||
|
Modify the information in the script as appropriate
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Universal
|
||||||
|
bash pkg.sh --web --api -v 2.2508.1
|
||||||
|
# RemoveChinese
|
||||||
|
bash pkg-remove-chinese.sh --web --api -v 2.2508.1
|
||||||
|
# Docker
|
||||||
|
bash pkg-docker.sh -v 2.2508.1
|
||||||
```
|
```
|
||||||
|
|||||||
BIN
bin/binWriter
164
build-docker.sh
Normal file
@@ -0,0 +1,164 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Check if Docker is installed
|
||||||
|
if command -v docker &> /dev/null; then
|
||||||
|
echo $(docker --version)
|
||||||
|
else
|
||||||
|
echo "Docker is not installed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Default Version
|
||||||
|
VERSION="1.0.0"
|
||||||
|
# Default Platform
|
||||||
|
PLATFORM="amd64"
|
||||||
|
# Default System
|
||||||
|
SYSTEM="ubuntu22.04"
|
||||||
|
|
||||||
|
# usage
|
||||||
|
usage() {
|
||||||
|
echo "Usage: bash $0 [OPTION]"
|
||||||
|
echo
|
||||||
|
echo "Build Software Package OPTION:"
|
||||||
|
echo " -v, --version Specify the version"
|
||||||
|
echo " -p, --platform Specify the platform architecture (amd64,arm64)"
|
||||||
|
echo " -s, --system Specify the system image (ubuntu22.04,alpine3.20)"
|
||||||
|
echo " -h Display this help message"
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
# Read command line arguments
|
||||||
|
while [[ $# -gt 0 ]]; do
|
||||||
|
case "$1" in
|
||||||
|
-v|--version) VERSION="$2"; shift 2 ;; # Processing the version after -v
|
||||||
|
-p|--platform) PLATFORM="$2"; shift 2 ;; # Processing the platform after -p
|
||||||
|
-s|--system) SYSTEM="$2"; shift 2 ;; # Processing the system after -s
|
||||||
|
*) usage ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
# output result
|
||||||
|
echo "Version: $VERSION"
|
||||||
|
|
||||||
|
# =================== Compile System Information
|
||||||
|
|
||||||
|
# Determine if -p is passed in
|
||||||
|
if [ -n "$PLATFORM" ]; then
|
||||||
|
case $PLATFORM in
|
||||||
|
amd64) ;;
|
||||||
|
arm64) ;;
|
||||||
|
*)
|
||||||
|
echo "Error: platform be: $PLATFORM"
|
||||||
|
echo "can only be amd64/arm64"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
echo "Platform: $PLATFORM"
|
||||||
|
|
||||||
|
# Determine if -s is passed in
|
||||||
|
if [ -n "$SYSTEM" ]; then
|
||||||
|
case $SYSTEM in
|
||||||
|
ubuntu22.04) ;;
|
||||||
|
alpine3.20) ;;
|
||||||
|
*)
|
||||||
|
echo "unknown system image: $SYSTEM"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
echo "System: $SYSTEM"
|
||||||
|
|
||||||
|
|
||||||
|
# =================== Compile Variable Information
|
||||||
|
|
||||||
|
# Script Path
|
||||||
|
RootDir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
|
# Compile Linux System Directory
|
||||||
|
BuildLinuxDir=${RootDir}/linux
|
||||||
|
# Compile Package Management Directory
|
||||||
|
BuildPackagelDir=${RootDir}/pkg
|
||||||
|
# Compile the build directory
|
||||||
|
BuildDir=${RootDir}/tmp
|
||||||
|
# Release Package directory
|
||||||
|
ReleaseDir=${RootDir}/release/docker/${PLATFORM}
|
||||||
|
# Release Package name file
|
||||||
|
ReleaseFileName=omc-r${VERSION}-docker-${SYSTEM}-${PLATFORM}
|
||||||
|
|
||||||
|
|
||||||
|
# =================== file processing
|
||||||
|
|
||||||
|
# Apply file handling
|
||||||
|
app() {
|
||||||
|
cd ${BuildDir}
|
||||||
|
# Database scripts within common are rebuild scripts
|
||||||
|
modeList="std lite"
|
||||||
|
for v in ${modeList}; do
|
||||||
|
# . /Located in the temporary directory
|
||||||
|
path=./linux/usr/local/etc/omc/database/${v}
|
||||||
|
cp -rf $path/common/* $path/install/
|
||||||
|
cp -rf $path/common/* $path/upgrade/
|
||||||
|
rm -rf $path/common
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# =================== compile
|
||||||
|
|
||||||
|
docker_build() {
|
||||||
|
cd ${BuildDir}
|
||||||
|
|
||||||
|
# Replacement Tags {version} {arch}
|
||||||
|
sed -i "s/{version}/${VERSION}/g" ./${ReleaseFileName}/omc-docker.sh
|
||||||
|
sed -i "s/{arch}/${PLATFORM}/g" ./${ReleaseFileName}/omc-docker.sh
|
||||||
|
sed -i "s/{system}/${SYSTEM}/g" ./${ReleaseFileName}/omc-docker.sh
|
||||||
|
|
||||||
|
# check docker image
|
||||||
|
if ! docker images | grep -q "mariadb-$PLATFORM\s*10.6.21"; then
|
||||||
|
docker pull --platform linux/${PLATFORM} mariadb:10.6.21
|
||||||
|
docker tag mariadb:10.6.21 mariadb-$PLATFORM:10.6.21
|
||||||
|
fi
|
||||||
|
if [ ! -f ${BuildDir}/$ReleaseFileName/tar/mariadb_10.6.21_$PLATFORM.tar ]; then
|
||||||
|
docker save mariadb-$PLATFORM:10.6.21 -o ${BuildDir}/${ReleaseFileName}/tar/mariadb_10.6.21_$PLATFORM.tar
|
||||||
|
fi
|
||||||
|
if ! docker images | grep -q "keydb-$PLATFORM\s*6.3.4"; then
|
||||||
|
docker pull --platform linux/${PLATFORM} bitnami/keydb:6.3.4
|
||||||
|
docker tag bitnami/keydb:6.3.4 keydb-$PLATFORM:6.3.4
|
||||||
|
fi
|
||||||
|
if [ ! -f ${BuildDir}/$ReleaseFileName/tar/keydb_6.3.4_$PLATFORM.tar ]; then
|
||||||
|
docker save keydb-$PLATFORM:6.3.4 -o ${BuildDir}/${ReleaseFileName}/tar/keydb_6.3.4_$PLATFORM.tar
|
||||||
|
fi
|
||||||
|
|
||||||
|
# build omc
|
||||||
|
docker build --platform linux/${PLATFORM} --build-arg TARGETARCH=${PLATFORM} --build-arg VERSION=${VERSION} -t omc:${VERSION}-${SYSTEM}-${PLATFORM} .
|
||||||
|
docker save omc:${VERSION}-${SYSTEM}-${PLATFORM} -o ${BuildDir}/${ReleaseFileName}/tar/omc_${VERSION}-${SYSTEM}-${PLATFORM}.tar
|
||||||
|
|
||||||
|
# tar package
|
||||||
|
filename=${ReleaseFileName}.tar.gz
|
||||||
|
output=${ReleaseDir}/${filename}
|
||||||
|
tar -czf ${output} ./${ReleaseFileName}
|
||||||
|
echo "build success => ${output}"
|
||||||
|
|
||||||
|
# Generate HAX file
|
||||||
|
cd ${ReleaseDir}
|
||||||
|
md5sum ${filename} > ${filename}.md5
|
||||||
|
echo "md5 => $(cat ${filename}.md5)"
|
||||||
|
sha256sum ${filename} > ${filename}.sha256
|
||||||
|
echo "sha256 => $(cat ${filename}.sha256)"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# =================== building
|
||||||
|
echo
|
||||||
|
echo "building omc..."
|
||||||
|
mkdir -p ${BuildDir}/${ReleaseFileName}/tar
|
||||||
|
cp -rf ${BuildLinuxDir} ${BuildDir}
|
||||||
|
cp -rf ${BuildPackagelDir}/docker/linux ${BuildDir}
|
||||||
|
cp -rf ${BuildPackagelDir}/docker/tar/* ${BuildDir}/${ReleaseFileName}
|
||||||
|
cp -rf ${BuildPackagelDir}/docker/Dockerfile.${SYSTEM} ${BuildDir}/Dockerfile
|
||||||
|
app
|
||||||
|
docker_build
|
||||||
|
|
||||||
|
|
||||||
|
# bash build-docker.sh --version 2.2505.2 --platform amd64 --system ubuntu22.04
|
||||||
|
# bash build-docker.sh --version 2.2505.2 --platform amd64 --system alpine3.20
|
||||||
414
build.sh
@@ -1,256 +1,188 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Default Version
|
||||||
|
VERSION="1.0.0"
|
||||||
|
# usage
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: $0 [OPTION] deb|rpm"
|
echo "Usage: bash $0 [OPTION]"
|
||||||
echo
|
echo
|
||||||
echo "Build omc package, option as follow:"
|
echo "Build Software Package OPTION:"
|
||||||
echo " deb|rpm, deb: ubuntu|debian package build by dpkg"
|
echo " -v Specify the version"
|
||||||
echo " rpm: centos/redhat package, build by rpmbuild"
|
echo " -h Display this help message"
|
||||||
echo " -r, =build root directory build root directory, default directory is $HOME/omc.git"
|
|
||||||
echo " -d dump SQL from database"
|
|
||||||
echo
|
echo
|
||||||
}
|
|
||||||
|
|
||||||
pkgtype=""
|
|
||||||
new_args=()
|
|
||||||
# Traverse all parameters
|
|
||||||
for arg in "$@"; do
|
|
||||||
if [[ "$arg" == "deb" || "$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
|
exit 1
|
||||||
fi
|
}
|
||||||
|
# Read command line arguments
|
||||||
# Use a new parameter list
|
while [[ $# -gt 0 ]]; do
|
||||||
set -- "${new_args[@]}"
|
case "$1" in
|
||||||
|
-v) VERSION="$2"; shift 2 ;; # Processing the version after -v
|
||||||
GitLocalRoot=${HOME}/omc.git
|
*) usage ;;
|
||||||
while getopts "r:d" option; do
|
|
||||||
case $option in
|
|
||||||
r)
|
|
||||||
GitLocalRoot=$OPTARG
|
|
||||||
;;
|
|
||||||
d)
|
|
||||||
dumpdb="yes"
|
|
||||||
;;
|
|
||||||
\?)
|
|
||||||
echo "Invalid option: -$OPTARG" >&2
|
|
||||||
usage
|
|
||||||
exit 2
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
# output result
|
||||||
|
echo "Version: $VERSION"
|
||||||
|
|
||||||
if [ ! -d ${GitLocalRoot} ]; then
|
# =================== Compile System Information
|
||||||
echo "Not exist directory: ${GitLocalRoot}"
|
|
||||||
exit 3
|
|
||||||
fi
|
|
||||||
|
|
||||||
ProjectL=omc
|
# package manager
|
||||||
ProjectU=OMC
|
get_manager() {
|
||||||
PROJECT=${ProjectL}
|
if command -v rpm &> /dev/null; then
|
||||||
VERSION=2.2410.2
|
echo "rpm"
|
||||||
RelDate=`date +%Y%m%d`
|
elif command -v dpkg &> /dev/null; then
|
||||||
RelVer=${VERSION}-${RelDate}
|
echo "deb"
|
||||||
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=multi-tenancy
|
|
||||||
|
|
||||||
BuildDir=${EmsBuildRoot}/build
|
|
||||||
BuildOMCDir=${BuildDir}/usr/local/omc
|
|
||||||
BuildOMCBinDir=${BuildOMCDir}/bin
|
|
||||||
BuildOMCEtcDir=${BuildOMCDir}/etc
|
|
||||||
BuildLibDir=${BuildDir}/lib
|
|
||||||
BuildLibSystemDir=${BuildLibDir}/systemd/system
|
|
||||||
DebBuildDir=${EmsBuildRoot}/debbuild
|
|
||||||
DebFEBuildDir=${EmsBuildRoot}/debbuild/usr/local/omc/htdocs
|
|
||||||
DebBuild2204Dir=${EmsBuildRoot}/debbuild/22.04
|
|
||||||
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
|
|
||||||
CRONTASK=crontask
|
|
||||||
SshSvcBin=sshsvc
|
|
||||||
CapTraceBin=captrace
|
|
||||||
Data2htmlBin=data2html
|
|
||||||
NBI_ALARM=nbi_alarm
|
|
||||||
NBI_AGENT=nbi_agent
|
|
||||||
AAAA_AGENT=4a_agent
|
|
||||||
RestagentDir=${EmsBEDir}/${RESTAGENT}
|
|
||||||
CrontaskDir=${EmsBEDir}/${CRONTASK}
|
|
||||||
SshSvcDir=${EmsBEDir}/${SshSvcBin}
|
|
||||||
CapTraceDir=${EmsBEDir}/${CapTraceBin}
|
|
||||||
Data2htmlDir=${EmsBEDir}/${Data2htmlBin}
|
|
||||||
DBSQLSrcDir=${EmsBEDir}/database
|
|
||||||
MiscDir=${EmsBEDir}/misc
|
|
||||||
FrontBuildDir=${BuildOMCDir}/htdocs
|
|
||||||
FrontSrcDir=${EmsBEDir}/front
|
|
||||||
CrontaskSize=27788951
|
|
||||||
RestagentSize=29525312
|
|
||||||
BinWriterDir=${HOME}/bin
|
|
||||||
|
|
||||||
if [[ ${RpmArch} =~ "x86_64" ]];then
|
|
||||||
RelArch=amd64
|
|
||||||
elif [[ ${RpmArch} =~ "aarch64" ]];then
|
|
||||||
RelArch=arm64
|
|
||||||
fi
|
|
||||||
ReleasePkgDir=${ReleaseDir}/"${pkgtype}"s/${RelArch}
|
|
||||||
|
|
||||||
case "${pkgtype}" in
|
|
||||||
rpm)
|
|
||||||
ProcList="restagent crontask sshsvc captrace data2html"
|
|
||||||
cd $EmsBEDir
|
|
||||||
for procName in $ProcList;do
|
|
||||||
cd $EmsBEDir/$procName
|
|
||||||
echo "Make $procName ..."
|
|
||||||
make
|
|
||||||
done
|
|
||||||
|
|
||||||
cd $EmsBEDir
|
|
||||||
# make rpm
|
|
||||||
# clear build cache
|
|
||||||
rm -rf ${FrontBuildDir}/front/*
|
|
||||||
rm -rf ${RpmFEBuildDir}/front/*
|
|
||||||
rm -rf ${RpmBuildDir}/BUILD/usr/local/omc/etc/db/*
|
|
||||||
|
|
||||||
cp -rf ${RestagentDir}/${RESTAGENT} ${BuildOMCBinDir}
|
|
||||||
cp -rf ${CrontaskDir}/${CRONTASK} ${BuildOMCBinDir}
|
|
||||||
cp -rf ${SshSvcDir}/${SshSvcBin} ${BuildOMCBinDir}
|
|
||||||
cp -rf ${CapTraceDir}/${CapTraceBin} ${BuildOMCBinDir}
|
|
||||||
cp -rf ${Data2htmlDir}/${Data2htmlBin} ${BuildOMCBinDir}
|
|
||||||
# ${BinWriterDir}/binWriter ${BuildOMCBinDir}/${RESTAGENT} ${RestagentSize}
|
|
||||||
# ${BinWriterDir}/binWriter ${BuildOMCBinDir}/${CRONTASK} ${CrontaskSize}
|
|
||||||
# cp -rf ${MiscDir}/ne-hosts ${BuildOMCBinDir}
|
|
||||||
# cp -rf ./nbi/${NBI_ALARM}/bin/${NBI_ALARM} ${BinDir2}
|
|
||||||
# cp -rf ./nbi/${NBI_AGENT}/bin/${NBI_AGENT} ${BinDir2}
|
|
||||||
# cp -rf ./${4A_AGENT}/bin/${4A_AGENT} ${BinDir2}
|
|
||||||
cp -rf ${MiscDir}/* ${BuildOMCBinDir}
|
|
||||||
# rm -rf ${BinDir2}/ne-hosts
|
|
||||||
cp -rf ${ConfigEtcDir}/* ${BuildOMCEtcDir}
|
|
||||||
rm -rf ${BuildOMCEtcDir}/db/*
|
|
||||||
cp -rf ${DBSQLSrcDir}/* ${BuildOMCEtcDir}/db/
|
|
||||||
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/install
|
|
||||||
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/upgrade
|
|
||||||
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/upgvue3
|
|
||||||
#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
|
|
||||||
|
|
||||||
mv -f $RpmsDir/$RpmArch/$RpmPkgName ${ReleasePkgDir}/$RpmPkgRename
|
|
||||||
cd ${ReleasePkgDir}
|
|
||||||
rm -f omc-md5sum.txt
|
|
||||||
# rpm --addsign *.rpm
|
|
||||||
md5sum $RpmPkgRename >omc-md5sum.txt
|
|
||||||
;;
|
|
||||||
deb)
|
|
||||||
ProcList="restagent crontask sshsvc captrace data2html"
|
|
||||||
cd $EmsBEDir
|
|
||||||
for procName in $ProcList;do
|
|
||||||
cd $EmsBEDir/$procName
|
|
||||||
echo "Make $procName ..."
|
|
||||||
make
|
|
||||||
done
|
|
||||||
|
|
||||||
VersionID=`grep VERSION_ID /etc/os-release`
|
|
||||||
if [[ ${VersionID} =~ 'VERSION_ID="22.04"' ]]; then
|
|
||||||
DebBuildDir=${DebBuild2204Dir}
|
|
||||||
DebFEBuildDir=${DebFEBuild2204Dir}
|
|
||||||
#DebPkgFile=${PROJECT}-${VERSION}-22.04-${Release).${PLATFORM).deb
|
|
||||||
DebPkgFile=${PROJECT}-r${VERSION}-${RelDate}-ub22.deb
|
|
||||||
if [ ! $ProjectTag = "" ]; then
|
|
||||||
DebPkgFile=${PROJECT}-r${VERSION}-${RelDate}-ub22-${ProjectTag}.deb
|
|
||||||
fi
|
|
||||||
elif [[ ${VersionID} =~ 'VERSION_ID="18.04"' ]]; then
|
|
||||||
DebPkgFile=${PROJECT}-r${VERSION}-${RelDate}-ub18.deb
|
|
||||||
if [ ! $ProjectTag = "" ]; then
|
|
||||||
DebPkgFile=${PROJECT}-r${VERSION}-${RelDate}-ub18-${ProjectTag}.deb
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
echo "Invalid OS release: ${VersionID}"
|
echo "unknown manager"
|
||||||
|
cat /etc/os-release
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
# Get the package manager of the current system
|
||||||
|
PACKAGE_MANAGER=$(get_manager)
|
||||||
|
echo "Package Manager: $PACKAGE_MANAGER"
|
||||||
|
|
||||||
cd ${EmsBEDir}
|
# System Architecture
|
||||||
|
get_arch() {
|
||||||
#make deb
|
ARCH_UNAME=$(uname -m)
|
||||||
# clear build cache
|
case $ARCH_UNAME in
|
||||||
rm -rf ${FrontBuildDir}/front/*
|
x86_64) echo "amd64" ;;
|
||||||
rm -rf ${DebFEBuildDir}/front/*
|
aarch64) echo "arm64" ;;
|
||||||
rm -rf ${DebBuildDir}/usr/local/omc/etc/db/*
|
i386|i686) echo "i386" ;;
|
||||||
|
|
||||||
cp -rf ${RestagentDir}/${RESTAGENT} ${BuildOMCBinDir}
|
|
||||||
cp -rf ${CrontaskDir}/${CRONTASK} ${BuildOMCBinDir}
|
|
||||||
cp -rf ${SshSvcDir}/${SshSvcBin} ${BuildOMCBinDir}
|
|
||||||
cp -rf ${CapTraceDir}/${CapTraceBin} ${BuildOMCBinDir}
|
|
||||||
cp -rf ${Data2htmlDir}/${Data2htmlBin} ${BuildOMCBinDir}
|
|
||||||
cp -rf ${MiscDir}/* ${BuildOMCBinDir}
|
|
||||||
cp -rf ${ConfigEtcDir}/* ${BuildOMCEtcDir}
|
|
||||||
rm -rf ${BuildOMCEtcDir}/db/*
|
|
||||||
cp -rf ${DBSQLSrcDir}/* ${BuildOMCEtcDir}/db/
|
|
||||||
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/install
|
|
||||||
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/upgrade
|
|
||||||
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/upgvue3
|
|
||||||
#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 ${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
|
|
||||||
perl -0777 -i -pe 's/ne:\n user: root/ne:\n user: omcuser/g' ${DebBuildDir}/usr/local/omc/etc/default/restconf.yaml
|
|
||||||
dpkg -b ${DebBuildDir} ${ReleasePkgDir}/${DebPkgFile}
|
|
||||||
|
|
||||||
cd ${ReleasePkgDir}
|
|
||||||
rm -f omc-md5sum.txt
|
|
||||||
# rpm --addsign *.rpm
|
|
||||||
md5sum ${DebPkgName} >omc-md5sum.txt
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
usage
|
echo "unknown architecture: $ARCH_UNAME"
|
||||||
exit 4
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
}
|
||||||
|
# Get the architecture of the current system
|
||||||
|
PACKAGE_ARCH=$(get_arch)
|
||||||
|
echo "Architecture: $PACKAGE_ARCH"
|
||||||
|
|
||||||
|
# Operating System Name Version
|
||||||
|
get_os_name_version() {
|
||||||
|
if [ -f /etc/os-release ]; then
|
||||||
|
. /etc/os-release
|
||||||
|
# 检查 $ID 是否为空
|
||||||
|
if [ -z "$ID" ]; then
|
||||||
|
echo "ID is not defined in /etc/os-release"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "$ID$VERSION_ID"
|
||||||
|
else
|
||||||
|
echo "unknown ID: /etc/os-release not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
# Get the current operating system name version
|
||||||
|
OS_NAME=$(get_os_name_version)
|
||||||
|
echo "OS Version: $OS_NAME"
|
||||||
|
|
||||||
|
|
||||||
|
# =================== Compile Variable Information
|
||||||
|
|
||||||
|
# Compile Date
|
||||||
|
Date=`date +%Y%m%d`
|
||||||
|
# Script Path
|
||||||
|
RootDir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
|
# Compile Linux System Directory
|
||||||
|
BuildLinuxDir=${RootDir}/linux
|
||||||
|
# Compile Package Management Directory
|
||||||
|
BuildPackagelDir=${RootDir}/pkg
|
||||||
|
# Compile the build directory
|
||||||
|
BuildDir=${RootDir}/tmp
|
||||||
|
# Release Package directory
|
||||||
|
ReleaseDir=${RootDir}/release/${PACKAGE_MANAGER}/${PACKAGE_ARCH}
|
||||||
|
# Release Package name file
|
||||||
|
ReleaseFileName=omc-r${VERSION}-${Date}-${OS_NAME}-${PACKAGE_ARCH}.${PACKAGE_MANAGER}
|
||||||
|
|
||||||
|
|
||||||
|
# =================== file processing
|
||||||
|
|
||||||
|
# Apply file handling . /Located in the temporary directory
|
||||||
|
app() {
|
||||||
|
# Database scripts within common are rebuild scripts
|
||||||
|
modeList="std lite"
|
||||||
|
for v in ${modeList}; do
|
||||||
|
path=./usr/local/etc/omc/database/${v}
|
||||||
|
cp -rf $path/common/* $path/install/
|
||||||
|
cp -rf $path/common/* $path/upgrade/
|
||||||
|
rm -rf $path/common
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# =================== system package manager
|
||||||
|
|
||||||
|
# deb package manager
|
||||||
|
deb() {
|
||||||
|
cd ${BuildDir}
|
||||||
|
|
||||||
|
# Replacement Tags {version} {arch}
|
||||||
|
sed -i "s/{arch}/${PACKAGE_ARCH}/g" ./DEBIAN/control
|
||||||
|
sed -i "s/{version}/${VERSION}/g" ./DEBIAN/control
|
||||||
|
sed -i "s/{date}/${Date}/g" ./DEBIAN/control
|
||||||
|
|
||||||
|
# Packaging deb
|
||||||
|
chmod 755 -R ${BuildDir}
|
||||||
|
dpkg -b ${BuildDir} ${ReleaseDir}/${ReleaseFileName}
|
||||||
|
echo "build success => ${ReleaseDir}/${ReleaseFileName}"
|
||||||
|
|
||||||
|
# Generate HAX file
|
||||||
|
cd ${ReleaseDir}
|
||||||
|
md5sum ${ReleaseFileName} > ${ReleaseFileName}.md5
|
||||||
|
echo "md5 => $(cat ${ReleaseFileName}.md5)"
|
||||||
|
sha256sum ${ReleaseFileName} > ${ReleaseFileName}.sha256
|
||||||
|
echo "sha256 => $(cat ${ReleaseFileName}.sha256)"
|
||||||
|
}
|
||||||
|
|
||||||
|
# rpm package manager
|
||||||
|
rpm() {
|
||||||
|
cd ${BuildDir}
|
||||||
|
ARCH_UNAME=$(uname -m)
|
||||||
|
# Replacement Tags {version} {arch} {date}
|
||||||
|
sed -i "s/{version}/${VERSION}/g" ./SPECS/omc.spec
|
||||||
|
sed -i "s/{arch}/${ARCH_UNAME}/g" ./SPECS/omc.spec
|
||||||
|
sed -i "s/{date}/${Date}/g" ./SPECS/omc.spec
|
||||||
|
|
||||||
|
# Packaging rpm
|
||||||
|
chmod 755 -R ${BuildDir}
|
||||||
|
rpmbuild -bb -D "_topdir ${BuildDir}" ${BuildDir}/SPECS/omc.spec
|
||||||
|
# Moving package to the distribution directory
|
||||||
|
if [[ "$OS_NAME" = "kylinV10" ]]; then # kylin system has ky10 tags
|
||||||
|
mv ${BuildDir}/RPMS/${ARCH_UNAME}/omc-${VERSION}-${Date}.ky10.${ARCH_UNAME}.rpm ${ReleaseDir}/${ReleaseFileName}
|
||||||
|
else
|
||||||
|
mv ${BuildDir}/RPMS/${ARCH_UNAME}/omc-${VERSION}-${Date}.${ARCH_UNAME}.rpm ${ReleaseDir}/${ReleaseFileName}
|
||||||
|
fi
|
||||||
|
rm -rf ${BuildDir}/RPMS
|
||||||
|
echo "build success => ${ReleaseDir}/${ReleaseFileName}"
|
||||||
|
|
||||||
|
# Generate HAX file
|
||||||
|
cd ${ReleaseDir}
|
||||||
|
md5sum ${ReleaseFileName} > ${ReleaseFileName}.md5
|
||||||
|
echo "md5 => $(cat ${ReleaseFileName}.md5)"
|
||||||
|
sha256sum ${ReleaseFileName} > ${ReleaseFileName}.sha256
|
||||||
|
echo "sha256 => $(cat ${ReleaseFileName}.sha256)"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# =================== building
|
||||||
|
echo
|
||||||
|
echo "building omc..."
|
||||||
|
rm -rf ${BuildDir} && mkdir -p ${BuildDir}
|
||||||
|
cp -rf ${BuildPackagelDir}/${PACKAGE_MANAGER}/* ${BuildDir}
|
||||||
|
if [[ $PACKAGE_MANAGER = "deb" ]]; then
|
||||||
|
cp -rf ${BuildLinuxDir}/* ${BuildDir}
|
||||||
|
cd ${BuildDir}
|
||||||
|
app
|
||||||
|
deb
|
||||||
|
elif [[ $PACKAGE_MANAGER = "rpm" ]]; then
|
||||||
|
cp -rf ${BuildLinuxDir}/* ${BuildDir}/BUILD
|
||||||
|
cd ${BuildDir}/BUILD
|
||||||
|
app
|
||||||
|
rpm
|
||||||
|
else
|
||||||
|
echo "unknown runing: $PACKAGE_MANAGER"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# bash build.sh -v 2.2505.2
|
||||||
|
|||||||
@@ -1,71 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
-----BEGIN OPENSSH PRIVATE KEY-----
|
|
||||||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
|
|
||||||
NhAAAAAwEAAQAAAYEAo8xNDB8tD9rEJhtTirwK8CxM0e+wcMT6fuDfTSgc/JRMjXIeM6B7
|
|
||||||
6Cw2lCSjwTME60nGZ8Yb0STXXuoc+WdEFcWaJVSlfeXzH4G/WCAsw3zxdwaYWnuavzwWFC
|
|
||||||
TX6wvUgI0Hh1eAgjusZOi1fDvzX8PLml8Lbjd8n6VFneZkVijHNxh1eL8Xq3yqCEGTenrS
|
|
||||||
4SBGImwIQidtT9LqFs2Ze3Hi5pBvuqq0Um8gtGwp6zd/sIzeG8LX5axBSZN10BrkW1bGC8
|
|
||||||
7sfpjJvadtvgiz0ZfxVDxd8eP8CgrKq+yQ0scfNB0j4ZOIP9Zwk6Q0fYQHxegPcMNr2v5P
|
|
||||||
IzHmDwTvDsHu3qyxGc74OVkAEd1o9OXiaSQ/fQXgvdUuSlugBUA3wx8Vlqa0om3fyY/XbX
|
|
||||||
LdqStmcVtKYfTiePX7UYc09YlYuFJycJxuf6i38Jek58fqp0NSH//ZWP/fXqwkwE8xUzEi
|
|
||||||
Jiq0c+wp7j5XMPFpMwmKViintJCS5C9nEQ+UIuMpAAAFiMzUaEPM1GhDAAAAB3NzaC1yc2
|
|
||||||
EAAAGBAKPMTQwfLQ/axCYbU4q8CvAsTNHvsHDE+n7g300oHPyUTI1yHjOge+gsNpQko8Ez
|
|
||||||
BOtJxmfGG9Ek117qHPlnRBXFmiVUpX3l8x+Bv1ggLMN88XcGmFp7mr88FhQk1+sL1ICNB4
|
|
||||||
dXgII7rGTot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6PvOSk
|
|
||||||
NjpvwqCXSX5nIQWrQQiDHMKA4pCfAtzbJ68fhWmfzWUaWGIcrnhnoxXzMYgXS/Gp6fwqOf
|
|
||||||
5JH4jm3uM5knXLTz0E0WofYnLgDo6CAuANl9bSQDfPYh8tuNndoQd9190r+15uLhv/pIM7
|
|
||||||
MsZzifBrE2cgSBIunIERdQbD9JwNCeDPIrV8aQbOJDyuJDbwAAAMEA1nYx8GVZM/0cSZqG
|
|
||||||
V9C4i6debJEep2k91z7XvjFRZJrTYYZavWJPEUmmqNjsJg0Bdad4g3SdK2iJ4W5CHzDm2S
|
|
||||||
Zn08j7on/ybcD2c1ZnXbwKrzPXRymc62xxwSDD95m/R5cSvN/Pmy57QfymQNPaNXMkhKq1
|
|
||||||
nzF56bljW0FHVFnrgUHpbLUOEc0QHXO4d2PaUNptLVxquOJI/VDW2GKKQWaIsdYKPJEDO9
|
|
||||||
GBe/LaUDzodd1s1isly86DLEgT2HwbAAAAwQDDhgO/kOI1N0jMOpE5gotcrhQc353jrP16
|
|
||||||
mKOdcp9MVHiioRybsyRdnbDIYKXbQz2ZRwmz2RBh55uPQjLcfi82GlIm2rdTL8KzP9vLpc
|
|
||||||
WAbZ7dcbv1lLyIlr4Yf33LgAChxJQTGNad771cwYFrtwTYk16O0Mdv302L0DgDTJUvhzJb
|
|
||||||
0ZuIk2nmzumSH1pOYmZl8Oa+UM7YSZNCWEpM7/S5laNISQ6dF/yy6Del2sQk/1/JCMUK0d
|
|
||||||
GLCkyCiaW9igsAAAASc2ltb25Ac2ltb256aGFuZ3N6AQ==
|
|
||||||
-----END OPENSSH PRIVATE KEY-----
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCjzE0MHy0P2sQmG1OKvArwLEzR77BwxPp+4N9NKBz8lEyNch4zoHvoLDaUJKPBMwTrScZnxhvRJNde6hz5Z0QVxZolVKV95fMfgb9YICzDfPF3Bphae5q/PBYUJNfrC9S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2sQk/1/JCMUK0d
|
|
||||||
GLCkyCiaW9igsAAAASc2ltb25Ac2ltb256aGFuZ3N6AQ==
|
|
||||||
-----END OPENSSH PRIVATE KEY-----
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
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: ""
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
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: ""
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
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: ""
|
|
||||||
@@ -1,141 +0,0 @@
|
|||||||
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: ""
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
# file: log file name
|
|
||||||
# level: /trace/debug/info/warn/error/fatal, default: debug
|
|
||||||
# duration: saved days, default is 30 days
|
|
||||||
logger:
|
|
||||||
file: /usr/local/omc/log/crontask.log
|
|
||||||
level: trace
|
|
||||||
duration: 24
|
|
||||||
count: 90
|
|
||||||
|
|
||||||
omc:
|
|
||||||
name: RJ_OMC_S001
|
|
||||||
hosturi: http://127.0.0.1:3030
|
|
||||||
hostno: S001
|
|
||||||
province: BJ
|
|
||||||
netabbr: HX
|
|
||||||
vendor: RJ
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
file: /usr/local/omc/etc/tasks.yaml
|
|
||||||
|
|
||||||
database:
|
|
||||||
type: mysql
|
|
||||||
user: root
|
|
||||||
password: 1000omc@kp!
|
|
||||||
host: 127.0.0.1
|
|
||||||
port: 33066
|
|
||||||
name: tenants_db
|
|
||||||
backup: /usr/local/omc/database
|
|
||||||
|
|
||||||
# northbound interface, cm/pm
|
|
||||||
# duration(day): saved days
|
|
||||||
# zipPeriods(day): periods of zip pm data file
|
|
||||||
northbound:
|
|
||||||
cm:
|
|
||||||
cfgfiledir: /usr/local/omc/etc/cm
|
|
||||||
xmlfiledir: /opt/omc/ftp/cm
|
|
||||||
version: V1.0.1
|
|
||||||
duration: 30
|
|
||||||
pm:
|
|
||||||
cfgfiledir: /usr/local/omc/etc/pm
|
|
||||||
xmlfiledir: /opt/omc/ftp/pm
|
|
||||||
version: V1.0.1
|
|
||||||
duration: 30
|
|
||||||
zipPeriods: 1
|
|
||||||
@@ -1,111 +0,0 @@
|
|||||||
# file: log file name
|
|
||||||
# level: /trace/debug/info/warn/error/fatal, default: debug
|
|
||||||
# duration: rotation time with xx hours, example: 1/12/24 hours
|
|
||||||
# count: rotation count of log, default is 30 rotation
|
|
||||||
logger:
|
|
||||||
file: /usr/local/omc/log/restagent.log
|
|
||||||
level: debug
|
|
||||||
duration: 24
|
|
||||||
count: 90
|
|
||||||
|
|
||||||
# rest agent listen ipv4/v6 and port, support multiple routines
|
|
||||||
# ip: 0.0.0.0 or ::0, support IPv4/v6
|
|
||||||
rest:
|
|
||||||
- ipv4: 0.0.0.0
|
|
||||||
ipv6:
|
|
||||||
port: 3030
|
|
||||||
- ipv4:
|
|
||||||
ipv6: ::0
|
|
||||||
port: 6060
|
|
||||||
|
|
||||||
database:
|
|
||||||
type: mysql
|
|
||||||
user: root
|
|
||||||
password: 1000omc@kp!
|
|
||||||
host: 127.0.0.1
|
|
||||||
port: 33066
|
|
||||||
name: tenants_db
|
|
||||||
backup: /usr/loal/omc/database
|
|
||||||
|
|
||||||
mml:
|
|
||||||
port: 4100
|
|
||||||
sleep: 200
|
|
||||||
user: admin
|
|
||||||
password: admin
|
|
||||||
|
|
||||||
ne:
|
|
||||||
user: root
|
|
||||||
etcdir: /usr/local/etc
|
|
||||||
bindir: /usr/local/bin
|
|
||||||
omcdir: /usr/local/omc
|
|
||||||
licensedir: /usr/local/etc/{neType}/license
|
|
||||||
|
|
||||||
# chk2ne: true/false, if put OmcNeConfig parameters to NE
|
|
||||||
omc:
|
|
||||||
uriPrefix: /api/rest/oam
|
|
||||||
neType: OMC
|
|
||||||
neId: 001
|
|
||||||
rmUID: 1100RJHX1OMC001
|
|
||||||
neName: OMC
|
|
||||||
province: BJ
|
|
||||||
vendor: RJ
|
|
||||||
dn: 4600
|
|
||||||
chk2ne: false
|
|
||||||
sn: 13750650
|
|
||||||
checksign: false
|
|
||||||
backup: /usr/local/omc/backup
|
|
||||||
upload: /usr/local/omc/upload
|
|
||||||
frontUpload: /usr/local/omc/htdocs/front/upload
|
|
||||||
software: /usr/local/omc/software
|
|
||||||
license: /usr/local/omc/license
|
|
||||||
gtpUri: gtp:192.168.2.119:2152
|
|
||||||
checkContentType: false
|
|
||||||
testMode: true
|
|
||||||
rbacMode: true
|
|
||||||
|
|
||||||
# Alarm module setting
|
|
||||||
# Forward interface:
|
|
||||||
# email/sms
|
|
||||||
alarm:
|
|
||||||
forwardAlarm: true
|
|
||||||
email:
|
|
||||||
smtp: smtp@ruijie.com.cn
|
|
||||||
port: 25
|
|
||||||
user: smtpuser
|
|
||||||
password: smtpuser@omc
|
|
||||||
sms:
|
|
||||||
apiURL: http://smsc.ruijie.com.cn/
|
|
||||||
accessKeyID: xxxx
|
|
||||||
accessKeySecret: xxxx
|
|
||||||
signName: Ruijie SMSC
|
|
||||||
templateCode: 1000
|
|
||||||
|
|
||||||
#User authorized information
|
|
||||||
# crypt: mysql/md5/bcrypt
|
|
||||||
# token: true/false to check accessToken
|
|
||||||
# expires for session, unit: second
|
|
||||||
# Support single/multiple session of user
|
|
||||||
auth:
|
|
||||||
crypt: bcrypt
|
|
||||||
token: true
|
|
||||||
expires: 1800
|
|
||||||
session: multiple
|
|
||||||
|
|
||||||
# Parameter for limit number
|
|
||||||
# rmuid_maxnum: the max number of rmUID, default: 50
|
|
||||||
# alarmid_maxnum: the max number of AlarmID, default: 50
|
|
||||||
# pmid_maxnum: the max number of pmID, default: 50
|
|
||||||
# subid_maxnum: the max number of subscription ID, default: 20
|
|
||||||
# uri_maxlen: the max length of uri, default: 8192
|
|
||||||
# rmuid_regexp: regexp pattern of rmUID
|
|
||||||
params:
|
|
||||||
rmuidmaxnum: 50
|
|
||||||
alarmidmaxnum: 50
|
|
||||||
pmidmaxnum: 50
|
|
||||||
subidmaxnum: 20
|
|
||||||
urimaxlen: 2100000
|
|
||||||
rmuidregexp: "[0-9]{4}[A-Z]{2}[A-Z]{2}[0-9A-Z]{1}[0-9A-Z]{3}[0-9A-Z]{1,16}"
|
|
||||||
|
|
||||||
testConfig:
|
|
||||||
enabled: true
|
|
||||||
file: /usr/local/omc/etc/testconfig.yaml
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
# file: log file name
|
|
||||||
# level: /trace/debug/info/warn/error/fatal, default: debug
|
|
||||||
# duration: rotation time with xx hours, example: 1/12/24 hours
|
|
||||||
# count: rotation count of log, default is 30 rotation
|
|
||||||
logger:
|
|
||||||
file: /usr/local/omc/log/sshsvc.log
|
|
||||||
level: debug
|
|
||||||
duration: 24
|
|
||||||
count: 30
|
|
||||||
|
|
||||||
# file: MML log file name
|
|
||||||
# duration: rotation time with xx hours, example: 1/12/24 hours
|
|
||||||
# count: rotation count of log, default is 30 rotation
|
|
||||||
# level: cmd/ret log cmd/log cmd & result
|
|
||||||
logmml:
|
|
||||||
file: /usr/local/omc/mmllog/omcmml.log
|
|
||||||
duration: 24
|
|
||||||
count: 30
|
|
||||||
level: cmd
|
|
||||||
|
|
||||||
# ssh service listen ipv4/v6 and port, support multiple routines
|
|
||||||
# ip: 0.0.0.0 or ::0, support IPv4/v6
|
|
||||||
# session: single/multiple session for one user
|
|
||||||
sshd:
|
|
||||||
listenAddr: 0.0.0.0
|
|
||||||
listenPort: 2222
|
|
||||||
privateKey: /usr/local/omc/.ssh/id_rsa
|
|
||||||
maxConnNum: 20
|
|
||||||
timeout: 1800
|
|
||||||
session: multiple
|
|
||||||
|
|
||||||
database:
|
|
||||||
type: mysql
|
|
||||||
user: root
|
|
||||||
password: 1000omc@kp!
|
|
||||||
host: 127.0.0.1
|
|
||||||
port: 33066
|
|
||||||
name: tenants_db
|
|
||||||
|
|
||||||
omc:
|
|
||||||
httpUri: http://127.0.0.1:3030
|
|
||||||
userCrypt: bcrypt
|
|
||||||
|
|
||||||
ne:
|
|
||||||
port: 4100
|
|
||||||
sleep: 200
|
|
||||||
user: admin
|
|
||||||
password: admin
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,171 +0,0 @@
|
|||||||
# example:
|
|
||||||
# tasks:
|
|
||||||
# - name: test # task comment
|
|
||||||
# uri: # restful uri
|
|
||||||
# params: # params of url
|
|
||||||
# interval: 30 # do sometion in the interval
|
|
||||||
# unit: Seconds #Seconds/Minutes/Hours/Days/Weeks, Monday/Tuesday/.../Sunday,
|
|
||||||
# at: 00:10:00 # do at time such as xx:xx:xx
|
|
||||||
# do: HelloWorldTask # (Do what: callback function)
|
|
||||||
#
|
|
||||||
# Attention: must restart crontask after modified this file
|
|
||||||
#
|
|
||||||
tasks:
|
|
||||||
- name: test # task comment
|
|
||||||
status: Active #active/inactive
|
|
||||||
uri: # restful uri
|
|
||||||
params: # params of http url
|
|
||||||
body: # body of http request
|
|
||||||
interval: 60 # do sometion in the interval
|
|
||||||
unit: Seconds #Seconds/Minutes/Hours/Days/Weeks, Monday/Tuesday/.../Sunday,
|
|
||||||
at: 00:10:00 # do at time such as xx:xx:xx when unit such as Day/Days/Mondays...
|
|
||||||
do: TaskHelloWorld # (Do what: callback function)
|
|
||||||
- name: clear expired history alarm
|
|
||||||
uri: /api/rest/databaseManagement/v1/tenants_db/alarm
|
|
||||||
params: WHERE=now()+>+ADDDATE(event_time,+interval+(SELECT+`value`+FROM+config+WHERE+config_tag='historyDuration')+day)+and+alarm_status='0'
|
|
||||||
interval: 1
|
|
||||||
unit: Days
|
|
||||||
at: 00:10:00
|
|
||||||
do: TaskDeleteExpiredRecord
|
|
||||||
- name: clear deleted custom pm kpi
|
|
||||||
uri: /api/rest/databaseManagement/v1/tenants_db/pm_custom_title
|
|
||||||
params: WHERE=now()+>+ADDDATE(update_time,+interval+(SELECT+`value`+FROM+config+WHERE+config_tag='keepPMCKpi')+day)+and+status='Deleted'
|
|
||||||
interval: 1
|
|
||||||
unit: Days
|
|
||||||
at: 00:15:00
|
|
||||||
do: TaskDeleteExpiredRecord
|
|
||||||
- name: update expired user session
|
|
||||||
uri: /api/rest/databaseManagement/v1/tenants_db/session
|
|
||||||
params: WHERE=NOW()+>+ADDDATE(shake_time,+interval+expires+second)+and+status='online'
|
|
||||||
body: '{"session":{"status":"offline"}}'
|
|
||||||
interval: 30
|
|
||||||
unit: Seconds
|
|
||||||
at:
|
|
||||||
do: TaskUpdateTable
|
|
||||||
- name: clear expired log
|
|
||||||
uri:
|
|
||||||
params:
|
|
||||||
interval: 1
|
|
||||||
unit: Days
|
|
||||||
at: 00:50:00
|
|
||||||
do: TaskDeleteExpiredRecord
|
|
||||||
- name: Backup measure data
|
|
||||||
uri: /api/rest/databaseManagement/v1/tenants_db/measure_data
|
|
||||||
params: SQL=select+*+into+outfile+'%s'+fields+terminated+by+','+escaped+by+''+optionally+enclosed+by+''+lines+terminated+by+'\n'+from+(select+'id','date','task_id','ne_name','rm_uid','ne_type','granul_option','kpi_code','kpi_id','kpi_ext','start_time','end_time','value','timestamp'+union+select+id,date,task_id,ne_name,rm_uid,ne_type,granul_option,kpi_code,kpi_id,kpi_ext,start_time,end_time,value,timestamp+from+measure_data)+b
|
|
||||||
interval: 1
|
|
||||||
unit: Days
|
|
||||||
at: 00:20:00
|
|
||||||
do: TaskDBBackupCSVGetBySQL
|
|
||||||
- name: Backup operation log
|
|
||||||
uri: /api/rest/databaseManagement/v1/tenants_db/operation_log
|
|
||||||
params: SQL=select+*+into+outfile+'%s'+fields+terminated+by+','+escaped+by+''+optionally+enclosed+by+''+lines+terminated+by+'\n'+from+(select+'op_id','account_name','op_ip','subsys_tag','op_type','op_content','op_result','begin_time','end_time','vnf_flag','log_time'+union+select+op_id,account_name,op_ip,subsys_tag,op_type,op_content,op_result,begin_time,end_time,vnf_flag,log_time+from+operation_log)+b
|
|
||||||
interval: 1
|
|
||||||
unit: Days
|
|
||||||
at: 00:26:00
|
|
||||||
do: TaskDBBackupCSVGetBySQL
|
|
||||||
- name: Backup security log
|
|
||||||
uri: /api/rest/databaseManagement/v1/tenants_db/security_log
|
|
||||||
params: SQL=select+*+into+outfile+'%s'+fields+terminated+by+','+escaped+by+''+optionally+enclosed+by+''+lines+terminated+by+'\n'+from+(select+'id','account_name','account_type','op_ip','op_type','op_content','op_result','op_time'+union+select+id,account_name,account_type,op_ip,op_type,op_content,op_result,op_time+from+security_log)+b
|
|
||||||
interval: 1
|
|
||||||
unit: Days
|
|
||||||
at: 00:28:00
|
|
||||||
do: TaskDBBackupCSVGetBySQL
|
|
||||||
- name: Backup alarm log
|
|
||||||
uri: /api/rest/databaseManagement/v1/tenants_db/alarm_log
|
|
||||||
params: SQL=select+*+into+outfile+'%s'+fields+terminated+by+','+escaped+by+''+optionally+enclosed+by+''+lines+terminated+by+'\n'+from+(select+'id','ne_type','ne_id','alarm_seq','alarm_id','alarm_code','alarm_status','event_time','log_time'+union+select+id,ne_type,ne_id,alarm_seq,alarm_id,alarm_code,alarm_status,event_time,log_time+from+alarm_log)+b
|
|
||||||
interval: 1
|
|
||||||
unit: Days
|
|
||||||
at: 00:30:00
|
|
||||||
do: TaskDBBackupCSVGetBySQL
|
|
||||||
- name: handshake to NF
|
|
||||||
status: Active
|
|
||||||
uri: /api/rest/systemManagement/v1/elementType/%s/objectType/systemState
|
|
||||||
params:
|
|
||||||
interval: 10
|
|
||||||
unit: Seconds
|
|
||||||
at:
|
|
||||||
do: TaskHandShakeToNF
|
|
||||||
- name: Export CM from NF
|
|
||||||
uri: /api/rest/systemManagement/v1/elementType/%s/objectType/cm
|
|
||||||
params: ne_id=%s
|
|
||||||
interval: 1
|
|
||||||
unit: Days
|
|
||||||
at: 00:15
|
|
||||||
do: TaskExportCmFromNF
|
|
||||||
- name: Generate NRM xml file
|
|
||||||
uri:
|
|
||||||
params:
|
|
||||||
interval: 1
|
|
||||||
unit: Day
|
|
||||||
at: 00:00,06:00,12:00,18:00
|
|
||||||
do: GenCmXmlFile
|
|
||||||
- name: Task of Generate measure threshold alarm
|
|
||||||
status: Active
|
|
||||||
uri: /api/rest/faultManagement/v1/elementType/%s/objectType/alarms
|
|
||||||
params: RJHXEMSPM10200
|
|
||||||
interval: 10
|
|
||||||
unit: Seconds
|
|
||||||
at:
|
|
||||||
do: TaskGenMeasureThresholdAlarm
|
|
||||||
- name: Task of Generate license alarm
|
|
||||||
status: Inactive
|
|
||||||
uri: /api/rest/faultManagement/v1/elementType/%s/objectType/alarms
|
|
||||||
params: RJHXEMSCM10100
|
|
||||||
interval: 1
|
|
||||||
unit: Days
|
|
||||||
at: 00:30
|
|
||||||
do: TaskGenLicenseAlarm
|
|
||||||
- name: Task of Generate NE system state alarm
|
|
||||||
status: Active
|
|
||||||
uri: /api/rest/faultManagement/v1/elementType/%s/objectType/alarms
|
|
||||||
params: RJHXEMSSM10000
|
|
||||||
interval: 5
|
|
||||||
unit: Seconds
|
|
||||||
at:
|
|
||||||
do: TaskGenNeStateAlarm
|
|
||||||
- name: Task of Generate Measure Report Timeout
|
|
||||||
status: Active
|
|
||||||
uri: /api/rest/faultManagement/v1/elementType/%s/objectType/alarms
|
|
||||||
params: RJHXEMSPM10201
|
|
||||||
interval: 10
|
|
||||||
unit: Seconds
|
|
||||||
at:
|
|
||||||
do: TaskGenMeasureReportTimeoutAlarm
|
|
||||||
- name: Monitor proces list and write system log
|
|
||||||
uri: /api/rest/databaseManagement/v1/tenants_db/system_log
|
|
||||||
params:
|
|
||||||
body:
|
|
||||||
interval: 10
|
|
||||||
unit: Seconds
|
|
||||||
at:
|
|
||||||
do: TaskWriteSystemLog
|
|
||||||
- name: Copy log to /opt/omc/ftp/log
|
|
||||||
uri:
|
|
||||||
params: cp -rf /usr/local/omc/database/*.csv /opt/omc/ftp/log
|
|
||||||
interval: 10
|
|
||||||
unit: Minutes
|
|
||||||
at:
|
|
||||||
do: TaskRunShellCommand
|
|
||||||
# - name: Import CM to NF
|
|
||||||
# uri: /api/rest/systemManagement/v1/elementType/udm/objectType/cm
|
|
||||||
# params: ne_id=SZ_01
|
|
||||||
# interval: 15
|
|
||||||
# unit: Seconds
|
|
||||||
# at:
|
|
||||||
# do: TaskImportCmToNF
|
|
||||||
crontab:
|
|
||||||
# - name: 每隔1分钟执行
|
|
||||||
# tab: 0 */1 * * * ? // crontab: rule like linux crontab
|
|
||||||
# do: CronHelloWorldTask // function name to call
|
|
||||||
# params:
|
|
||||||
- name: Generate PM xml file
|
|
||||||
status: Active
|
|
||||||
tab: 5,20,35,50 * * * *
|
|
||||||
do: GenPmXmlFile
|
|
||||||
uri: this is uri
|
|
||||||
params: Generating PM xml file
|
|
||||||
# - name: Import CM to NF
|
|
||||||
# tab: 0 * * * * *
|
|
||||||
# do: TaskImportCmToNF
|
|
||||||
# uri: /api/rest/systemManagement/v1/elementType/udm/objectType/cm
|
|
||||||
# params: ne_id=SZ_01
|
|
||||||
@@ -1,76 +0,0 @@
|
|||||||
<?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>
|
|
||||||
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
<?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>
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
SET FOREIGN_KEY_CHECKS = 0;
|
|
||||||
|
|
||||||
--
|
|
||||||
REPLACE INTO `sys_config` VALUES (6, 'config.sys.officialUrl', 'sys.officialUrl', 'https://www.bluearcus.com', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.officialUrlRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (106, 'config.sys.title', 'sys.title', 'config.sys.titleValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.titleRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (107, 'config.sys.copyright', 'sys.copyright', 'config.sys.copyrightValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.copyrightRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (108, 'config.sys.i18nOpen', 'sys.i18n.open', 'false', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nOpenRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (109, 'config.sys.i18nDefault', 'sys.i18n.default', 'en_US', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nDefaultRemark');
|
|
||||||
|
|
||||||
--
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (1660, 1660, 'config.sys.titleValue', 'BlueArcus EMS', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (1661, 1661, 'config.sys.copyrightValue', 'Copyright ©2024 BlueArcus', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (3660, 3660, 'config.sys.titleValue', 'BlueArcus EMS', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (3661, 3661, 'config.sys.copyrightValue', 'Copyright ©2024 BlueArcus', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
|
|
||||||
-- set internationalization switching to ON
|
|
||||||
-- REPLACE INTO `omc_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2122);
|
|
||||||
UPDATE `sys_menu` SET `status` = '0' WHERE `menu_id` = 2122;
|
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
|
||||||
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 6.7 KiB |
@@ -1,20 +0,0 @@
|
|||||||
SET FOREIGN_KEY_CHECKS = 0;
|
|
||||||
|
|
||||||
--
|
|
||||||
REPLACE INTO `sys_config` VALUES (6, 'config.sys.officialUrl', 'sys.officialUrl', 'https://www.agrandtech.com', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.officialUrlRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (106, 'config.sys.title', 'sys.title', 'config.sys.titleValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.titleRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (107, 'config.sys.copyright', 'sys.copyright', 'config.sys.copyrightValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.copyrightRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (108, 'config.sys.i18nOpen', 'sys.i18n.open', 'true', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nOpenRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (109, 'config.sys.i18nDefault', 'sys.i18n.default', 'en_US', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nDefaultRemark');
|
|
||||||
|
|
||||||
--
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (1660, 1660, 'config.sys.titleValue', 'AGrand EMS', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (1661, 1661, 'config.sys.copyrightValue', 'Copyright ©2024 千通科技', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (3660, 3660, 'config.sys.titleValue', 'AGrand EMS', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (3661, 3661, 'config.sys.copyrightValue', 'Copyright ©2024 AGrandTech', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
|
|
||||||
-- set internationalization switching to ON
|
|
||||||
-- REPLACE INTO `omc_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2122);
|
|
||||||
UPDATE `sys_menu` SET `status` = '1' WHERE `menu_id` = 2122;
|
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
|
||||||
|
Before Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 48 KiB |
@@ -1,8 +0,0 @@
|
|||||||
Package: OMC
|
|
||||||
Version: 2.2410.2-YYYYMMDD
|
|
||||||
Section: AGrandTech
|
|
||||||
Prioritt: optional
|
|
||||||
Architecture: amd64
|
|
||||||
Maintainer: Simon Zhangsz
|
|
||||||
Depends:
|
|
||||||
Description: OMC
|
|
||||||
@@ -1,166 +0,0 @@
|
|||||||
# !/bin/bash
|
|
||||||
|
|
||||||
OMCRootDir=/usr/local/omc
|
|
||||||
SystemdRootDir=/lib/systemd/system
|
|
||||||
OMCEtcDir=${OMCRootDir}/etc
|
|
||||||
FERootDir=${OMCRootDir}/htdocs/front
|
|
||||||
X86Lib64Dir=/lib/x86_64-linux-gnu
|
|
||||||
OMCBinDir=${OMCRootDir}/bin
|
|
||||||
OMCStaticDir=${OMCRootDir}/static
|
|
||||||
UsrLocalBinDir=/usr/local/bin
|
|
||||||
OMCDaemon=omcd
|
|
||||||
NginxEtcDir=/etc/nginx
|
|
||||||
NginxConfDir=${NginxEtcDir}/conf.d
|
|
||||||
CFileList="restconf.yaml crontask.yaml tasks.yaml sshsvc.yaml capconf.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 crontask.service"
|
|
||||||
echo " sudo systemctl start/stop/restart/status sshsvc.service"
|
|
||||||
echo " sudo systemctl start/stop/restart/status captrace.service"
|
|
||||||
echo " or run: "
|
|
||||||
echo " sudo /usr/local/omc/bin/omcsvc.sh start/stop/restart/status"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
cd ${X86Lib64Dir}
|
|
||||||
chmod +rx libwireshark.so.15.0.12
|
|
||||||
if [ ! -e libwireshark.so.15 ]; then ln -s libwireshark.so.15.0.12 libwireshark.so.15; fi
|
|
||||||
if [ ! -e libwireshark.so ]; then ln -s libwireshark.so.15.0.12 libwireshark.so; fi
|
|
||||||
chmod +rx libwiretap.so.12.0.12
|
|
||||||
if [ ! -e libwiretap.so.12 ]; then ln -s libwiretap.so.12.0.12 libwiretap.so.12; fi
|
|
||||||
if [ ! -e libwiretap.so ]; then ln -s libwiretap.so.12.0.12 libwiretap.so; fi
|
|
||||||
chmod +rx libwsutil.so.13.1.0
|
|
||||||
if [ ! -e libwsutil.so.13 ]; then ln -s libwsutil.so.13.1.0 libwsutil.so.13; fi
|
|
||||||
if [ ! -e libwsutil.so ]; then ln -s libwsutil.so.13.1.0 libwsutil.so; fi
|
|
||||||
cd ${UsrLocalBinDir}
|
|
||||||
if [ ! -e ${OMCDaemon} ]; then ln -s ${OMCBinDir}/omcsvc.sh ${OMCDaemon}; fi
|
|
||||||
|
|
||||||
chmod +rx ${OMCRootDir}/bin/*
|
|
||||||
chmod +rx ${OMCRootDir}/*
|
|
||||||
chmod +rx ${UsrLocalBinDir}/*
|
|
||||||
chmod -R 755 ${OMCRootDir}/htdocs/front
|
|
||||||
|
|
||||||
for CFile in ${CFileList}; do
|
|
||||||
if [ ! -e "${OMCEtcDir}/${CFile}" ]; then
|
|
||||||
cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}
|
|
||||||
else
|
|
||||||
# mv -f ${OMCEtcDir}/${CFile} ${OMCEtcDir}/${CFile}.bak
|
|
||||||
# cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}
|
|
||||||
if [ -e "${OMCBinDir}/upgconf.sh" ]; then
|
|
||||||
${OMCBinDir}/upgconf.sh
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# # 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
|
|
||||||
|
|
||||||
# disable auto upgrade
|
|
||||||
systemctl disable --now unattended-upgrades
|
|
||||||
|
|
||||||
systemctl enable restagent.service
|
|
||||||
systemctl enable crontask.service
|
|
||||||
systemctl enable sshsvc.service
|
|
||||||
systemctl enable captrace.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 crontask.service
|
|
||||||
systemctl start sshsvc.service
|
|
||||||
systemctl start captrace.service
|
|
||||||
systemctl start restagent.service
|
|
||||||
echo "done"
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
# !/bin/bash
|
|
||||||
|
|
||||||
X86Lib64Dir=/lib/x86_64-linux-gnu
|
|
||||||
rm -rf ${X86Lib64Dir}/libwireshark.so.15
|
|
||||||
rm -rf ${X86Lib64Dir}/libwireshark.so
|
|
||||||
rm -rf ${X86Lib64Dir}/libwiretap.so.12
|
|
||||||
rm -rf ${X86Lib64Dir}/libwiretap.so
|
|
||||||
rm -rf ${X86Lib64Dir}/libwsutil.so.13
|
|
||||||
rm -rf ${X86Lib64Dir}/libwsutil.so
|
|
||||||
|
|
||||||
#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 crontask.service
|
|
||||||
systemctl stop sshsvc.service
|
|
||||||
systemctl stop captrace.service
|
|
||||||
echo "done"
|
|
||||||
fi
|
|
||||||
|
|
||||||
systemctl disable restagent.service
|
|
||||||
systemctl disable crontask.service
|
|
||||||
systemctl disable sshsvc.service
|
|
||||||
systemctl disable captrace.service
|
|
||||||
|
|
||||||
systemctl daemon-reload
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# !/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 crontask.service
|
|
||||||
systemctl stop sshsvc.service
|
|
||||||
systemctl stop captrace.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
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
-----BEGIN OPENSSH PRIVATE KEY-----
|
|
||||||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
|
|
||||||
NhAAAAAwEAAQAAAYEAo8xNDB8tD9rEJhtTirwK8CxM0e+wcMT6fuDfTSgc/JRMjXIeM6B7
|
|
||||||
6Cw2lCSjwTME60nGZ8Yb0STXXuoc+WdEFcWaJVSlfeXzH4G/WCAsw3zxdwaYWnuavzwWFC
|
|
||||||
TX6wvUgI0Hh1eAgjusZOi1fDvzX8PLml8Lbjd8n6VFneZkVijHNxh1eL8Xq3yqCEGTenrS
|
|
||||||
4SBGImwIQidtT9LqFs2Ze3Hi5pBvuqq0Um8gtGwp6zd/sIzeG8LX5axBSZN10BrkW1bGC8
|
|
||||||
7sfpjJvadtvgiz0ZfxVDxd8eP8CgrKq+yQ0scfNB0j4ZOIP9Zwk6Q0fYQHxegPcMNr2v5P
|
|
||||||
IzHmDwTvDsHu3qyxGc74OVkAEd1o9OXiaSQ/fQXgvdUuSlugBUA3wx8Vlqa0om3fyY/XbX
|
|
||||||
LdqStmcVtKYfTiePX7UYc09YlYuFJycJxuf6i38Jek58fqp0NSH//ZWP/fXqwkwE8xUzEi
|
|
||||||
Jiq0c+wp7j5XMPFpMwmKViintJCS5C9nEQ+UIuMpAAAFiMzUaEPM1GhDAAAAB3NzaC1yc2
|
|
||||||
EAAAGBAKPMTQwfLQ/axCYbU4q8CvAsTNHvsHDE+n7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QlcGv9RjxMPNep+BwnYvPSZ1Piu3nmQqNtysg6ur3ZEHJeLVAAAA
|
|
||||||
wHZ5m4TECDOgkL138faHQycfd9Yi/Yj1akSwVvtGpiPd35ir1bOp52H/Ea3ymDwh6PvOSk
|
|
||||||
NjpvwqCXSX5nIQWrQQiDHMKA4pCfAtzbJ68fhWmfzWUaWGIcrnhnoxXzMYgXS/Gp6fwqOf
|
|
||||||
5JH4jm3uM5knXLTz0E0WofYnLgDo6CAuANl9bSQDfPYh8tuNndoQd9190r+15uLhv/pIM7
|
|
||||||
MsZzifBrE2cgSBIunIERdQbD9JwNCeDPIrV8aQbOJDyuJDbwAAAMEA1nYx8GVZM/0cSZqG
|
|
||||||
V9C4i6debJEep2k91z7XvjFRZJrTYYZavWJPEUmmqNjsJg0Bdad4g3SdK2iJ4W5CHzDm2S
|
|
||||||
Zn08j7on/ybcD2c1ZnXbwKrzPXRymc62xxwSDD95m/R5cSvN/Pmy57QfymQNPaNXMkhKq1
|
|
||||||
nzF56bljW0FHVFnrgUHpbLUOEc0QHXO4d2PaUNptLVxquOJI/VDW2GKKQWaIsdYKPJEDO9
|
|
||||||
GBe/LaUDzodd1s1isly86DLEgT2HwbAAAAwQDDhgO/kOI1N0jMOpE5gotcrhQc353jrP16
|
|
||||||
mKOdcp9MVHiioRybsyRdnbDIYKXbQz2ZRwmz2RBh55uPQjLcfi82GlIm2rdTL8KzP9vLpc
|
|
||||||
WAbZ7dcbv1lLyIlr4Yf33LgAChxJQTGNad771cwYFrtwTYk16O0Mdv302L0DgDTJUvhzJb
|
|
||||||
0ZuIk2nmzumSH1pOYmZl8Oa+UM7YSZNCWEpM7/S5laNISQ6dF/yy6Del2sQk/1/JCMUK0d
|
|
||||||
GLCkyCiaW9igsAAAASc2ltb25Ac2ltb256aGFuZ3N6AQ==
|
|
||||||
-----END OPENSSH PRIVATE KEY-----
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQ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bv1lLyIlr4Yf33LgAChxJQTGNad771cwYFrtwTYk16O0Mdv302L0DgDTJUvhzJb
|
|
||||||
0ZuIk2nmzumSH1pOYmZl8Oa+UM7YSZNCWEpM7/S5laNISQ6dF/yy6Del2sQk/1/JCMUK0d
|
|
||||||
GLCkyCiaW9igsAAAASc2ltb25Ac2ltb256aGFuZ3N6AQ==
|
|
||||||
-----END OPENSSH PRIVATE KEY-----
|
|
||||||
@@ -1,183 +0,0 @@
|
|||||||
# file: log file name
|
|
||||||
# level: /trace/debug/info/warn/error/fatal, default: debug
|
|
||||||
# duration: rotation time with xx hours, example: 1/12/24 hours
|
|
||||||
# count: rotation count of log, default is 30 rotation
|
|
||||||
logger:
|
|
||||||
file: /usr/local/omc/log/restagent.log
|
|
||||||
level: warn
|
|
||||||
duration: 24
|
|
||||||
count: 90
|
|
||||||
|
|
||||||
# rest agent listen ipv4/v6 and port, support multiple routines
|
|
||||||
# ip: 0.0.0.0 or ::0, support IPv4/v6
|
|
||||||
# clientAuthType: 0:NoClientCert (default), 1:RequestClientCert, 2:RequireAnyClientCert,
|
|
||||||
# 3:VerifyClientCertIfGiven, 4:RequireAndVerifyClientCerts
|
|
||||||
rest:
|
|
||||||
- ipv4: 0.0.0.0
|
|
||||||
ipv6:
|
|
||||||
port: 33030
|
|
||||||
- ipv4: 0.0.0.0
|
|
||||||
ipv6:
|
|
||||||
port: 33443
|
|
||||||
schema: https
|
|
||||||
clientAuthType: 0
|
|
||||||
caFile: /usr/local/omc/etc/certs/omc-ca.crt
|
|
||||||
certFile: /usr/local/omc/etc/certs/omc-server.crt
|
|
||||||
keyFile: /usr/local/omc/etc/certs/omc-server.key
|
|
||||||
|
|
||||||
webServer:
|
|
||||||
enabled: true
|
|
||||||
rootDir: /usr/local/omc/htdocs/front
|
|
||||||
listen:
|
|
||||||
- addr: :80
|
|
||||||
schema: http
|
|
||||||
- addr: :443
|
|
||||||
schema: https
|
|
||||||
clientAuthType: 0
|
|
||||||
caFile: /usr/local/omc/etc/certs/omc-ca.crt
|
|
||||||
certFile: /usr/local/omc/etc/certs/omc-server.crt
|
|
||||||
keyFile: /usr/local/omc/etc/certs/omc-server.key
|
|
||||||
|
|
||||||
database:
|
|
||||||
type: mysql
|
|
||||||
user: root
|
|
||||||
password: 1000omc@kp!
|
|
||||||
host: 127.0.0.1
|
|
||||||
port: 33066
|
|
||||||
name: tenants_db
|
|
||||||
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
|
|
||||||
backup: /usr/local/omc/database
|
|
||||||
|
|
||||||
# Redis data cache
|
|
||||||
redis:
|
|
||||||
dataSource:
|
|
||||||
# OMC system db
|
|
||||||
default:
|
|
||||||
port: 6379 # Redis port
|
|
||||||
host: "127.0.0.1" # Redis host
|
|
||||||
password: "helloearth"
|
|
||||||
db: 10 # Redis db_num
|
|
||||||
# UDM sub/auth db
|
|
||||||
udmuser:
|
|
||||||
port: 6379 # Redis port
|
|
||||||
host: "127.0.0.1"
|
|
||||||
password: "helloearth"
|
|
||||||
db: 0 # Redis db_num
|
|
||||||
# used to specify the default data source for multiple data resourece
|
|
||||||
defaultDataSourceName: "default"
|
|
||||||
|
|
||||||
# sleep: time delay for after write buffer (millisecond)
|
|
||||||
# deadLine: timeout for io read and write (second)
|
|
||||||
mml:
|
|
||||||
port: 4100
|
|
||||||
port2: 5002
|
|
||||||
sleep: 200
|
|
||||||
deadLine: 10
|
|
||||||
sizeRow: 600
|
|
||||||
sizeCol: 128
|
|
||||||
bufferSize: 65535
|
|
||||||
user: admin
|
|
||||||
password: admin
|
|
||||||
mmlHome: ./mmlhome
|
|
||||||
|
|
||||||
# NE config
|
|
||||||
ne:
|
|
||||||
user: omcuser
|
|
||||||
etcdir: /usr/local/etc
|
|
||||||
bindir: /usr/local/bin
|
|
||||||
omcdir: /usr/local/omc
|
|
||||||
scpdir: /tmp
|
|
||||||
licensedir: /usr/local/etc/{neType}/license
|
|
||||||
# backup etc list of IMS, does not contain spaces
|
|
||||||
etcListIMS: '{*.yaml,mmtel,vars.cfg}'
|
|
||||||
etcListDefault: '{*.yaml,*.conf,*.cfg}'
|
|
||||||
# true/false to overwrite config file when dpkg ne software
|
|
||||||
dpkgOverwrite: false
|
|
||||||
# dpkg timeout (second)
|
|
||||||
dpkgTimeout: 180
|
|
||||||
|
|
||||||
# chk2ne: true/false, if put OmcNeConfig parameters to NE
|
|
||||||
omc:
|
|
||||||
uriPrefix: "/omc/rest"
|
|
||||||
neType: OMC
|
|
||||||
neId: 001
|
|
||||||
rmUID: 4400HX101
|
|
||||||
neName: OMC
|
|
||||||
province: ""
|
|
||||||
vendor: ""
|
|
||||||
dn: ""
|
|
||||||
chk2ne: false
|
|
||||||
sn: "-"
|
|
||||||
checksign: false
|
|
||||||
rootDir: /usr/local/omc
|
|
||||||
binDir: /usr/local/omc/bin
|
|
||||||
backup: /usr/local/omc/backup
|
|
||||||
upload: /usr/local/omc/upload
|
|
||||||
frontUpload: /usr/local/omc/htdocs/front/upload
|
|
||||||
frontTraceDir: /usr/local/omc/htdocs/front/trace
|
|
||||||
software: /usr/local/omc/software
|
|
||||||
license: /usr/local/omc/license
|
|
||||||
gtpUri: gtp:192.168.2.119:32152
|
|
||||||
checkContentType: false
|
|
||||||
testMode: false
|
|
||||||
rbacMode: true
|
|
||||||
runDir: /usr/local/omc/run
|
|
||||||
cmdTimeout: 120
|
|
||||||
|
|
||||||
# Alarm module setting
|
|
||||||
# Forward interface:
|
|
||||||
# email/sms/smsc
|
|
||||||
alarm:
|
|
||||||
forwardAlarm: true
|
|
||||||
email:
|
|
||||||
smtp: smtp.xxx.com
|
|
||||||
port: 25
|
|
||||||
user: smtpuser@xxx.com
|
|
||||||
password: xxxxxx
|
|
||||||
# TLS skip verify: true/false
|
|
||||||
tlsSkipVerify: true
|
|
||||||
smProxy: smsc
|
|
||||||
sms:
|
|
||||||
apiURL: http://smsc.xxx.com
|
|
||||||
accessKeyID: xxx
|
|
||||||
accessKeySecret: xxx
|
|
||||||
signName: XXX SMSC
|
|
||||||
templateCode: 1000
|
|
||||||
smsc:
|
|
||||||
addr: "192.168.13.114:2775"
|
|
||||||
systemID: "alarmsmsfw"
|
|
||||||
password: "omc123"
|
|
||||||
systemType: ""
|
|
||||||
|
|
||||||
# User authorized information
|
|
||||||
# crypt: mysql/md5/bcrypt
|
|
||||||
# token: true/false to check accessToken
|
|
||||||
# expires for session, unit: second
|
|
||||||
# Support single/multiple session of user
|
|
||||||
#
|
|
||||||
auth:
|
|
||||||
crypt: bcrypt
|
|
||||||
token: true
|
|
||||||
expires: 1800
|
|
||||||
session: multiple
|
|
||||||
publicKey: /usr/local/omc/etc/certs/omc
|
|
||||||
privateKey: /usr/local/omc/etc/certs/omc
|
|
||||||
|
|
||||||
# Parameter for limit number
|
|
||||||
# rmuid_maxnum: the max number of rmUID, default: 50
|
|
||||||
# alarmid_maxnum: the max number of AlarmID, default: 50
|
|
||||||
# pmid_maxnum: the max number of pmID, default: 50
|
|
||||||
# subid_maxnum: the max number of subscription ID, default: 20
|
|
||||||
# uri_maxlen: the max length of uri, default: 8192
|
|
||||||
# rmuid_regexp: regexp pattern of rmUID
|
|
||||||
params:
|
|
||||||
rmuidmaxnum: 50
|
|
||||||
alarmidmaxnum: 50
|
|
||||||
pmidmaxnum: 50
|
|
||||||
subidmaxnum: 20
|
|
||||||
urimaxlen: 2100000
|
|
||||||
rmuidregexp: "[0-9]{4}[A-Z]{2}[A-Z]{2}[0-9A-Z]{1}[0-9A-Z]{3}[0-9A-Z]{1,16}"
|
|
||||||
|
|
||||||
testConfig:
|
|
||||||
enabled: false
|
|
||||||
file: /usr/local/omc/etc/testconfig.yaml
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
Package: OMC
|
|
||||||
Version: 2.2410.2-YYYYMMDD
|
|
||||||
Section: AGrandTech
|
|
||||||
Prioritt: optional
|
|
||||||
Architecture: amd64
|
|
||||||
Maintainer: Simon Zhangsz
|
|
||||||
Depends:
|
|
||||||
Description: OMC
|
|
||||||
@@ -1,110 +0,0 @@
|
|||||||
# !/bin/bash
|
|
||||||
|
|
||||||
OMCRootDir=/usr/local/omc
|
|
||||||
SystemdRootDir=/lib/systemd/system
|
|
||||||
OMCEtcDir=${OMCRootDir}/etc
|
|
||||||
FERootDir=${OMCRootDir}/htdocs/front
|
|
||||||
X86Lib64Dir=/lib/x86_64-linux-gnu
|
|
||||||
OMCBinDir=${OMCRootDir}/bin
|
|
||||||
OMCStaticDir=${OMCRootDir}/static
|
|
||||||
UsrLocalBinDir=/usr/local/bin
|
|
||||||
OMCDaemon=omcd
|
|
||||||
NginxEtcDir=/etc/nginx
|
|
||||||
NginxConfDir=${NginxEtcDir}/conf.d
|
|
||||||
CFileList="restconf.yaml crontask.yaml tasks.yaml sshsvc.yaml capconf.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 crontask.service"
|
|
||||||
echo " sudo systemctl start/stop/restart/status sshsvc.service"
|
|
||||||
echo " sudo systemctl start/stop/restart/status captrace.service"
|
|
||||||
echo " or run: "
|
|
||||||
echo " sudo /usr/local/omc/bin/omcsvc.sh start/stop/restart/status"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
cd ${X86Lib64Dir}
|
|
||||||
chmod +rx libwireshark.so.15.0.12
|
|
||||||
if [ ! -e libwireshark.so.15 ]; then ln -s libwireshark.so.15.0.12 libwireshark.so.15; fi
|
|
||||||
if [ ! -e libwireshark.so ]; then ln -s libwireshark.so.15.0.12 libwireshark.so; fi
|
|
||||||
chmod +rx libwiretap.so.12.0.12
|
|
||||||
if [ ! -e libwiretap.so.12 ]; then ln -s libwiretap.so.12.0.12 libwiretap.so.12; fi
|
|
||||||
if [ ! -e libwiretap.so ]; then ln -s libwiretap.so.12.0.12 libwiretap.so; fi
|
|
||||||
chmod +rx libwsutil.so.13.1.0
|
|
||||||
if [ ! -e libwsutil.so.13 ]; then ln -s libwsutil.so.13.1.0 libwsutil.so.13; fi
|
|
||||||
if [ ! -e libwsutil.so ]; then ln -s libwsutil.so.13.1.0 libwsutil.so; fi
|
|
||||||
cd ${UsrLocalBinDir}
|
|
||||||
if [ ! -e ${OMCDaemon} ]; then ln -s ${OMCBinDir}/omcsvc.sh ${OMCDaemon}; fi
|
|
||||||
|
|
||||||
chmod +rx ${OMCRootDir}/bin/*
|
|
||||||
chmod +rx ${OMCRootDir}/*
|
|
||||||
chmod +rx ${UsrLocalBinDir}/*
|
|
||||||
chmod -R 755 ${OMCRootDir}/htdocs/front
|
|
||||||
|
|
||||||
for CFile in ${CFileList}; do
|
|
||||||
if [ ! -e "${OMCEtcDir}/${CFile}" ]; then
|
|
||||||
cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}
|
|
||||||
else
|
|
||||||
# mv -f ${OMCEtcDir}/${CFile} ${OMCEtcDir}/${CFile}.bak
|
|
||||||
# cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}
|
|
||||||
if [ -e "${OMCBinDir}/upgconf.sh" ]; then
|
|
||||||
${OMCBinDir}/upgconf.sh
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -e "${FERootDir}/config.js" ]; then
|
|
||||||
cp ${FERootDir}/default/config.js ${FERootDir};
|
|
||||||
fi
|
|
||||||
|
|
||||||
for LogoFile in ${LogoFileList}; do
|
|
||||||
if [ ! -e "${OMCStaticDir}/logo/${LogoFile}" ]; then
|
|
||||||
cp ${OMCStaticDir}/omc.d/logo/${LogoFile} ${OMCStaticDir}/logo;
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if ! id -u omc >/dev/null 2>&1 ; then
|
|
||||||
useradd -d /opt/omc -m -s /bin/bash -pomc123 omc;
|
|
||||||
mkdir -p /opt/omc/ftp
|
|
||||||
else
|
|
||||||
echo "user omc exist";
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -e "${NginxConfDir}/omc.conf" ]; then
|
|
||||||
mkdir -p ${NginxConfDir}
|
|
||||||
cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir};
|
|
||||||
fi
|
|
||||||
|
|
||||||
# disable auto upgrade
|
|
||||||
systemctl disable --now unattended-upgrades
|
|
||||||
|
|
||||||
systemctl enable restagent.service
|
|
||||||
systemctl enable crontask.service
|
|
||||||
systemctl enable sshsvc.service
|
|
||||||
systemctl enable captrace.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 crontask.service
|
|
||||||
systemctl start sshsvc.service
|
|
||||||
systemctl start captrace.service
|
|
||||||
systemctl start restagent.service
|
|
||||||
echo "done"
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
# !/bin/bash
|
|
||||||
|
|
||||||
X86Lib64Dir=/lib/x86_64-linux-gnu
|
|
||||||
rm -rf ${X86Lib64Dir}/libwireshark.so.15
|
|
||||||
rm -rf ${X86Lib64Dir}/libwireshark.so
|
|
||||||
rm -rf ${X86Lib64Dir}/libwiretap.so.12
|
|
||||||
rm -rf ${X86Lib64Dir}/libwiretap.so
|
|
||||||
rm -rf ${X86Lib64Dir}/libwsutil.so.13
|
|
||||||
rm -rf ${X86Lib64Dir}/libwsutil.so
|
|
||||||
|
|
||||||
#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 crontask.service
|
|
||||||
systemctl stop sshsvc.service
|
|
||||||
systemctl stop captrace.service
|
|
||||||
echo "done"
|
|
||||||
fi
|
|
||||||
|
|
||||||
systemctl disable restagent.service
|
|
||||||
systemctl disable crontask.service
|
|
||||||
systemctl disable sshsvc.service
|
|
||||||
systemctl disable captrace.service
|
|
||||||
|
|
||||||
systemctl daemon-reload
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# !/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 crontask.service
|
|
||||||
systemctl stop sshsvc.service
|
|
||||||
systemctl stop captrace.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
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
-----BEGIN OPENSSH PRIVATE KEY-----
|
|
||||||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
|
|
||||||
NhAAAAAwEAAQAAAYEAo8xNDB8tD9rEJhtTirwK8CxM0e+wcMT6fuDfTSgc/JRMjXIeM6B7
|
|
||||||
6Cw2lCSjwTME60nGZ8Yb0STXXuoc+WdEFcWaJVSlfeXzH4G/WCAsw3zxdwaYWnuavzwWFC
|
|
||||||
TX6wvUgI0Hh1eAgjusZOi1fDvzX8PLml8Lbjd8n6VFneZkVijHNxh1eL8Xq3yqCEGTenrS
|
|
||||||
4SBGImwIQidtT9LqFs2Ze3Hi5pBvuqq0Um8gtGwp6zd/sIzeG8LX5axBSZN10BrkW1bGC8
|
|
||||||
7sfpjJvadtvgiz0ZfxVDxd8eP8CgrKq+yQ0scfNB0j4ZOIP9Zwk6Q0fYQHxegPcMNr2v5P
|
|
||||||
IzHmDwTvDsHu3qyxGc74OVkAEd1o9OXiaSQ/fQXgvdUuSlugBUA3wx8Vlqa0om3fyY/XbX
|
|
||||||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LVxquOJI/VDW2GKKQWaIsdYKPJEDO9
|
|
||||||
GBe/LaUDzodd1s1isly86DLEgT2HwbAAAAwQDDhgO/kOI1N0jMOpE5gotcrhQc353jrP16
|
|
||||||
mKOdcp9MVHiioRybsyRdnbDIYKXbQz2ZRwmz2RBh55uPQjLcfi82GlIm2rdTL8KzP9vLpc
|
|
||||||
WAbZ7dcbv1lLyIlr4Yf33LgAChxJQTGNad771cwYFrtwTYk16O0Mdv302L0DgDTJUvhzJb
|
|
||||||
0ZuIk2nmzumSH1pOYmZl8Oa+UM7YSZNCWEpM7/S5laNISQ6dF/yy6Del2sQk/1/JCMUK0d
|
|
||||||
GLCkyCiaW9igsAAAASc2ltb25Ac2ltb256aGFuZ3N6AQ==
|
|
||||||
-----END OPENSSH PRIVATE KEY-----
|
|
||||||
@@ -1,182 +0,0 @@
|
|||||||
# file: log file name
|
|
||||||
# level: /trace/debug/info/warn/error/fatal, default: debug
|
|
||||||
# duration: rotation time with xx hours, example: 1/12/24 hours
|
|
||||||
# count: rotation count of log, default is 30 rotation
|
|
||||||
logger:
|
|
||||||
file: /usr/local/omc/log/restagent.log
|
|
||||||
level: warn
|
|
||||||
duration: 24
|
|
||||||
count: 90
|
|
||||||
|
|
||||||
# rest agent listen ipv4/v6 and port, support multiple routines
|
|
||||||
# ip: 0.0.0.0 or ::0, support IPv4/v6
|
|
||||||
# clientAuthType: 0:NoClientCert (default), 1:RequestClientCert, 2:RequireAnyClientCert,
|
|
||||||
# 3:VerifyClientCertIfGiven, 4:RequireAndVerifyClientCerts
|
|
||||||
rest:
|
|
||||||
- ipv4: 0.0.0.0
|
|
||||||
ipv6:
|
|
||||||
port: 33030
|
|
||||||
- ipv4: 0.0.0.0
|
|
||||||
ipv6:
|
|
||||||
port: 33443
|
|
||||||
schema: https
|
|
||||||
clientAuthType: 0
|
|
||||||
caFile: /usr/local/omc/etc/certs/omc-ca.crt
|
|
||||||
certFile: /usr/local/omc/etc/certs/omc-server.crt
|
|
||||||
keyFile: /usr/local/omc/etc/certs/omc-server.key
|
|
||||||
|
|
||||||
webServer:
|
|
||||||
enabled: true
|
|
||||||
rootDir: /usr/local/omc/htdocs/front
|
|
||||||
listen:
|
|
||||||
- addr: :80
|
|
||||||
schema: http
|
|
||||||
- addr: :443
|
|
||||||
schema: https
|
|
||||||
clientAuthType: 0
|
|
||||||
caFile: /usr/local/omc/etc/certs/omc-ca.crt
|
|
||||||
certFile: /usr/local/omc/etc/certs/omc-server.crt
|
|
||||||
keyFile: /usr/local/omc/etc/certs/omc-server.key
|
|
||||||
|
|
||||||
database:
|
|
||||||
type: mysql
|
|
||||||
user: root
|
|
||||||
password: 1000omc@kp!
|
|
||||||
host: 127.0.0.1
|
|
||||||
port: 33066
|
|
||||||
name: tenants_db
|
|
||||||
backup: /usr/local/omc/database
|
|
||||||
|
|
||||||
# Redis data cache
|
|
||||||
redis:
|
|
||||||
dataSource:
|
|
||||||
# OMC system db
|
|
||||||
default:
|
|
||||||
port: 6379 # Redis port
|
|
||||||
host: "127.0.0.1" # Redis host
|
|
||||||
password: "helloearth"
|
|
||||||
db: 10 # Redis db_num
|
|
||||||
# UDM sub/auth db
|
|
||||||
udmuser:
|
|
||||||
port: 6379 # Redis port
|
|
||||||
host: "127.0.0.1"
|
|
||||||
password: "helloearth"
|
|
||||||
db: 0 # Redis db_num
|
|
||||||
# used to specify the default data source for multiple data resourece
|
|
||||||
defaultDataSourceName: "default"
|
|
||||||
|
|
||||||
# sleep: time delay for after write buffer (millisecond)
|
|
||||||
# deadLine: timeout for io read and write (second)
|
|
||||||
mml:
|
|
||||||
port: 4100
|
|
||||||
port2: 5002
|
|
||||||
sleep: 200
|
|
||||||
deadLine: 10
|
|
||||||
sizeRow: 600
|
|
||||||
sizeCol: 128
|
|
||||||
bufferSize: 65535
|
|
||||||
user: admin
|
|
||||||
password: admin
|
|
||||||
mmlHome: ./mmlhome
|
|
||||||
|
|
||||||
# NE config
|
|
||||||
ne:
|
|
||||||
user: omcuser
|
|
||||||
etcdir: /usr/local/etc
|
|
||||||
bindir: /usr/local/bin
|
|
||||||
omcdir: /usr/local/omc
|
|
||||||
scpdir: /tmp
|
|
||||||
licensedir: /usr/local/etc/{neType}/license
|
|
||||||
# backup etc list of IMS, does not contain spaces
|
|
||||||
etcListIMS: '{*.yaml,mmtel,vars.cfg}'
|
|
||||||
etcListDefault: '{*.yaml,*.conf,*.cfg}'
|
|
||||||
# true/false to overwrite config file when dpkg ne software
|
|
||||||
dpkgOverwrite: false
|
|
||||||
# dpkg timeout (second)
|
|
||||||
dpkgTimeout: 180
|
|
||||||
|
|
||||||
# chk2ne: true/false, if put OmcNeConfig parameters to NE
|
|
||||||
omc:
|
|
||||||
uriPrefix: "/omc/rest"
|
|
||||||
neType: OMC
|
|
||||||
neId: 001
|
|
||||||
rmUID: 4400HX101
|
|
||||||
neName: OMC
|
|
||||||
province: ""
|
|
||||||
vendor: ""
|
|
||||||
dn: ""
|
|
||||||
chk2ne: false
|
|
||||||
sn: "-"
|
|
||||||
checksign: false
|
|
||||||
rootDir: /usr/local/omc
|
|
||||||
binDir: /usr/local/omc/bin
|
|
||||||
backup: /usr/local/omc/backup
|
|
||||||
upload: /usr/local/omc/upload
|
|
||||||
frontUpload: /usr/local/omc/htdocs/front/upload
|
|
||||||
frontTraceDir: /usr/local/omc/htdocs/front/trace
|
|
||||||
software: /usr/local/omc/software
|
|
||||||
license: /usr/local/omc/license
|
|
||||||
gtpUri: gtp:192.168.2.119:32152
|
|
||||||
checkContentType: false
|
|
||||||
testMode: false
|
|
||||||
rbacMode: true
|
|
||||||
runDir: /usr/local/omc/run
|
|
||||||
cmdTimeout: 120
|
|
||||||
|
|
||||||
# Alarm module setting
|
|
||||||
# Forward interface:
|
|
||||||
# email/sms/smsc
|
|
||||||
alarm:
|
|
||||||
forwardAlarm: true
|
|
||||||
email:
|
|
||||||
smtp: smtp.xxx.com
|
|
||||||
port: 25
|
|
||||||
user: smtpuser@xxx.com
|
|
||||||
password: xxxxxx
|
|
||||||
# TLS skip verify: true/false
|
|
||||||
tlsSkipVerify: true
|
|
||||||
smProxy: smsc
|
|
||||||
sms:
|
|
||||||
apiURL: http://smsc.xxx.com
|
|
||||||
accessKeyID: xxx
|
|
||||||
accessKeySecret: xxx
|
|
||||||
signName: XXX SMSC
|
|
||||||
templateCode: 1000
|
|
||||||
smsc:
|
|
||||||
addr: "192.168.13.114:2775"
|
|
||||||
systemID: "alarmsmsfw"
|
|
||||||
password: "omc123"
|
|
||||||
systemType: ""
|
|
||||||
|
|
||||||
# User authorized information
|
|
||||||
# crypt: mysql/md5/bcrypt
|
|
||||||
# token: true/false to check accessToken
|
|
||||||
# expires for session, unit: second
|
|
||||||
# Support single/multiple session of user
|
|
||||||
#
|
|
||||||
auth:
|
|
||||||
crypt: bcrypt
|
|
||||||
token: true
|
|
||||||
expires: 1800
|
|
||||||
session: multiple
|
|
||||||
publicKey: /usr/local/omc/etc/certs/omc
|
|
||||||
privateKey: /usr/local/omc/etc/certs/omc
|
|
||||||
|
|
||||||
# Parameter for limit number
|
|
||||||
# rmuid_maxnum: the max number of rmUID, default: 50
|
|
||||||
# alarmid_maxnum: the max number of AlarmID, default: 50
|
|
||||||
# pmid_maxnum: the max number of pmID, default: 50
|
|
||||||
# subid_maxnum: the max number of subscription ID, default: 20
|
|
||||||
# uri_maxlen: the max length of uri, default: 8192
|
|
||||||
# rmuid_regexp: regexp pattern of rmUID
|
|
||||||
params:
|
|
||||||
rmuidmaxnum: 50
|
|
||||||
alarmidmaxnum: 50
|
|
||||||
pmidmaxnum: 50
|
|
||||||
subidmaxnum: 20
|
|
||||||
urimaxlen: 2100000
|
|
||||||
rmuidregexp: "[0-9]{4}[A-Z]{2}[A-Z]{2}[0-9A-Z]{1}[0-9A-Z]{3}[0-9A-Z]{1,16}"
|
|
||||||
|
|
||||||
testConfig:
|
|
||||||
enabled: false
|
|
||||||
file: /usr/local/omc/etc/testconfig.yaml
|
|
||||||
@@ -1,403 +0,0 @@
|
|||||||
# 5GC OMC安装指南
|
|
||||||
|
|
||||||
## 1 安装环境及依赖包
|
|
||||||
|
|
||||||
X86_64通用服务器:
|
|
||||||
|
|
||||||
```
|
|
||||||
计算机或者虚拟机环境(最低配置):CPU: 2, Memory: 8.00 GB, Disk: 200 GB
|
|
||||||
操作系统环境:Ubuntu 18.04
|
|
||||||
数据库环境:mariadb-10.3.38-GA
|
|
||||||
WEB服务: nginx 1.14.0 (ubuntu)
|
|
||||||
安装包名称格式:OMC 5GC16.1.1.amd64.deb (其中,'5GC16.1.1'为版本号, 'amd64'为硬件平台名称)
|
|
||||||
```
|
|
||||||
|
|
||||||
麒麟arm64服务器:
|
|
||||||
|
|
||||||
```
|
|
||||||
计算机或者虚拟机环境(最低配置):CPU: 2, Memory: 8.00 GB, Disk: 200 GB
|
|
||||||
操作系统环境:银河麒麟 kylin server v10
|
|
||||||
数据库环境:mariadb-10.3.35-1.p01.ky10.aarch64
|
|
||||||
WEB服务: nginx 1.16.1-11.p01.ky10.aarch64
|
|
||||||
安装包名称格式:OMC-5GC16.1.1.arm64.rpm (其中,'5GC16.1.1'为版本号, 'arm64'为硬件平台名称)
|
|
||||||
```
|
|
||||||
|
|
||||||
注意事项:
|
|
||||||
|
|
||||||
```tips
|
|
||||||
* 以下操作以银河麒麟arm64硬件平台为例
|
|
||||||
* 全新安装方式,数据库的数据会被全部清除
|
|
||||||
```
|
|
||||||
|
|
||||||
### 1.1 安装数据库
|
|
||||||
|
|
||||||
注意:非第一次安装或者全新安装请跳过此步骤
|
|
||||||
|
|
||||||
mariadb版本:mariadb-server-3:10.3.35-1.p01.ky10.aarch64
|
|
||||||
|
|
||||||
软件安装
|
|
||||||
|
|
||||||
银河麒麟OS(CentOS)
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# yum clean all
|
|
||||||
# yum makecache
|
|
||||||
# yum -y update
|
|
||||||
# yum install -y mariadb
|
|
||||||
# yum install -y mariadb-server-3:10.3.35-1.p01.ky10.aarch64
|
|
||||||
```
|
|
||||||
|
|
||||||
配置修改
|
|
||||||
|
|
||||||
修改/etc/my.cnf.d/mariadb-server.cnf
|
|
||||||
增加或者修改如下三行:
|
|
||||||
|
|
||||||
```
|
|
||||||
bind-address=0.0.0.0
|
|
||||||
port=33066
|
|
||||||
max_connections=1000
|
|
||||||
```
|
|
||||||
|
|
||||||
验证测试
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# systemctl enable mariadb
|
|
||||||
# systemctl restart mariadb
|
|
||||||
# systemctl status mariadb
|
|
||||||
```
|
|
||||||
|
|
||||||
正常显示结果如下:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
[root@ems omc]# systemctl status mariadb
|
|
||||||
● mariadb.service - MariaDB 10.3.35 database server
|
|
||||||
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
|
|
||||||
Active: active (running) since Sun 2023-04-30 11:09:56 CST; 7h ago
|
|
||||||
Docs: man:mysqld(8)
|
|
||||||
https://mariadb.com/kb/en/library/systemd/
|
|
||||||
Main PID: 5127 (mysqld)
|
|
||||||
Status: "Taking your SQL requests now..."
|
|
||||||
Tasks: 37
|
|
||||||
Memory: 101.0M
|
|
||||||
CGroup: /system.slice/mariadb.service
|
|
||||||
└─5127 /usr/libexec/mysqld
|
|
||||||
```
|
|
||||||
|
|
||||||
修改mysql数据库root密码:
|
|
||||||
|
|
||||||
```tips
|
|
||||||
!!!注意!!!: 修改后的密码需要更新到/usr/local/omc/etc/restconf.yaml, crontask.yaml和nbi_alarm.json等配置文件中的数据库信息配置项
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
[root@ems ~]# mysql -u root
|
|
||||||
MariaDB [none]> use mysql
|
|
||||||
|
|
||||||
MariaDB [mysql]> update user set password=PASSWORD('******') where User='root';
|
|
||||||
|
|
||||||
MariaDB [mysql]> flush privileges;
|
|
||||||
|
|
||||||
MariaDB [mysql]> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '******'
|
|
||||||
|
|
||||||
MariaDB [mysql]> quit
|
|
||||||
```
|
|
||||||
|
|
||||||
通过以下登录命令确认修改成功
|
|
||||||
|
|
||||||
```
|
|
||||||
[root@ems ~]# mysql -u root -h 192.168.0.229 -P 33066 -p
|
|
||||||
Enter password:
|
|
||||||
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
|
||||||
Your MariaDB connection id is 95
|
|
||||||
Server version: 10.3.35-MariaDB MariaDB Server
|
|
||||||
|
|
||||||
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
|
|
||||||
|
|
||||||
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|
||||||
|
|
||||||
MariaDB [(none)]>
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
### 1.2 安装WEB服务(可选)
|
|
||||||
|
|
||||||
注意:非第一次安装或者全新安装请跳过此步骤
|
|
||||||
|
|
||||||
OMC Web服务可通过nginx代理进行访问,也可不需要代理进行访问
|
|
||||||
|
|
||||||
WEB服务: nginx-1.16.1-11.p01.ky10.aarch64
|
|
||||||
|
|
||||||
* 软件安装
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# yum clean all
|
|
||||||
# yum makecache
|
|
||||||
# yum -y update
|
|
||||||
# yum install -y nginx
|
|
||||||
```
|
|
||||||
|
|
||||||
* 验证测试
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# systemctl enable nginx
|
|
||||||
# systemctl daemon-reload
|
|
||||||
# systemctl start nginx
|
|
||||||
# systemctl status nginx
|
|
||||||
● nginx.service - The nginx HTTP and reverse proxy server
|
|
||||||
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)
|
|
||||||
Active: active (running) since Tue 2023-05-02 20:57:48 CST; 3h 12min ago
|
|
||||||
Main PID: 23163 (nginx)
|
|
||||||
Tasks: 5
|
|
||||||
Memory: 19.3M
|
|
||||||
CGroup: /system.slice/nginx.service
|
|
||||||
├─23163 nginx: master process /usr/sbin/nginx
|
|
||||||
├─23164 nginx: worker process
|
|
||||||
├─23165 nginx: worker process
|
|
||||||
```
|
|
||||||
|
|
||||||
## 2 安装配置OMC
|
|
||||||
|
|
||||||
### 2.1 安装OMC软件包
|
|
||||||
|
|
||||||
安装OMC软件包
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# rpm -ivh OMC\ 5GC16.1.1.arm64.rpm
|
|
||||||
```
|
|
||||||
|
|
||||||
安装后的软件包目录树(实际目录树会随版本不同有变化,以下仅供参考):
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# cd /usr/local
|
|
||||||
# tree omc -L 2
|
|
||||||
omc
|
|
||||||
├── backup
|
|
||||||
├── bin
|
|
||||||
│ ├── cpsshkey.sh
|
|
||||||
│ ├── crontask
|
|
||||||
│ ├── importdb.sh
|
|
||||||
│ ├── nehosts
|
|
||||||
│ ├── omcsvc.sh
|
|
||||||
│ ├── restagent
|
|
||||||
│ └── tables.txt
|
|
||||||
├── database
|
|
||||||
├── etc
|
|
||||||
│ ├── cm
|
|
||||||
│ ├── crontask.yaml
|
|
||||||
│ ├── db
|
|
||||||
│ ├── default
|
|
||||||
│ ├── restconf.yaml
|
|
||||||
│ ├── schema
|
|
||||||
│ └── tasks.yaml
|
|
||||||
├── htdocs
|
|
||||||
│ └── front
|
|
||||||
├── license
|
|
||||||
├── log
|
|
||||||
│ ├── crontask.log -> /usr/local/omc/log/crontask.log-20230629
|
|
||||||
│ ├── crontask.log-20230628
|
|
||||||
│ ├── crontask.log-20230629
|
|
||||||
│ ├── nbi_alarm
|
|
||||||
│ ├── restagent.log -> /usr/local/omc/log/restagent.log-20230629
|
|
||||||
│ ├── restagent.log-20230628
|
|
||||||
│ └── restagent.log-20230629
|
|
||||||
├── software
|
|
||||||
└── upload
|
|
||||||
#
|
|
||||||
```
|
|
||||||
|
|
||||||
### 2.2 修改nginx服务的OMC配置(可选)
|
|
||||||
|
|
||||||
安装软件包成功后可以根据实际环境对nginx的OMC配置进行修改,前端Web的默认侦听端口是8888,除了侦听端口,其它不用修改
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# cd /etc/nginx/conf.d
|
|
||||||
# cat omc.conf
|
|
||||||
server {
|
|
||||||
listen 8888 default_server;
|
|
||||||
root /usr/local/omc/htdocs/front/;
|
|
||||||
index index.html index.htm;
|
|
||||||
server_name localhost;
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri/ =404;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 2.3 修改OMC Web前端配置
|
|
||||||
|
|
||||||
根据实际环境修改如下文件的IP地址和端口,端口需要和OMC的配置文件一致, OMC后端ipv4服务侦听端口默认为3030, ipv6的默认侦听端口为6060:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# sudo sed -i.bak 's/192.168.2.119:/192.168.0.229:/g' /usr/local/omc/htdocs/front/config.js
|
|
||||||
```
|
|
||||||
|
|
||||||
### 2.4 修改OMC后端配置
|
|
||||||
|
|
||||||
说明:
|
|
||||||
|
|
||||||
```tips
|
|
||||||
* 目录/usr/local/omc/etc/default下的文件是OMC程序的初始配置文件,不要修改
|
|
||||||
* 拷贝default目录下的文件至/usr/local/omc/etc目录,根据使用环境修改配置文件
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# cd /usr/local/omc/etc
|
|
||||||
# cp default/* ../
|
|
||||||
```
|
|
||||||
|
|
||||||
根据实际的运行环境对配置文件restconf.yaml, crontask.yaml, nbi_alarm.json, nbi_agent.json, 4a_agent.yaml及tasks.yaml进行修改, 特别是侦听端口和数据库配置信息(包括端口/用户/密码)
|
|
||||||
|
|
||||||
### 2.5 数据库配置
|
|
||||||
|
|
||||||
注意:第一次或全新安装执行该步骤, 该步骤会清除掉原有的omc数据库
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# /usr/local/omc/bin/importdb.sh install
|
|
||||||
```
|
|
||||||
|
|
||||||
升级安装执行该步骤
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# /usr/local/omc/bin/importdb.sh upgrade
|
|
||||||
```
|
|
||||||
|
|
||||||
### 2.6 防火墙配置
|
|
||||||
|
|
||||||
如果系统默认是打开防火墙,需要添加配置文件中配置的服务和端口(端口要和实际环境配置一致),如下:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# firewall-cmd --add-port=33066/tcp --permanent
|
|
||||||
# firewall-cmd --add-port=8443/tcp --permanent
|
|
||||||
# firewall-cmd --add-port=8080/tcp --permanent
|
|
||||||
# firewall-cmd --add-port=4443/tcp --permanent
|
|
||||||
# firewall-cmd --add-port=8888/tcp --permanent
|
|
||||||
# firewall-cmd --add-port=3030/tcp --permanent
|
|
||||||
# firewall-cmd --add-port=4040/tcp --permanent
|
|
||||||
# firewall-cmd --add-port=5050/tcp --permanent
|
|
||||||
# firewall-cmd --add-port=6060/tcp --permanent
|
|
||||||
# firewall-cmd --add-port=31232-31271/tcp --permanent
|
|
||||||
# firewall-cmd --add-port=2222/tcp --permanent
|
|
||||||
# firewall-cmd --add-port=6379/tcp --permanent
|
|
||||||
# firewall-cmd --add-port=2152/udp --permanent
|
|
||||||
# firewall-cmd --reload
|
|
||||||
```
|
|
||||||
|
|
||||||
### 2.7 配置被管网元的SSH信任关系
|
|
||||||
|
|
||||||
为了便于OMC管理被管网元(包括登录网元,安装软件,备份配置文件和执行命令等操作), 第一次安装时需要配置被管网元与OMC的SSH信任关系,便于无密码SSH登录:
|
|
||||||
|
|
||||||
* 修改/usr/local/omc/bin目录下的nehosts文件(******替换为明文密码), 根据现网环境增加被管网元的ip, 用户和密码信息列表
|
|
||||||
* 运行脚本cpsshkey.sh, 将公钥拷贝至被管网元
|
|
||||||
* 运行ssh root@192.168.4.133验证是否可以无密码登录
|
|
||||||
* 执行成功后, 为了防止密码泄露,清除掉nehosts文件的密码信息
|
|
||||||
|
|
||||||
```bash
|
|
||||||
[root@ems bin]# cat nehosts
|
|
||||||
# host user password
|
|
||||||
# Example: 192.168.4.133 root password
|
|
||||||
192.168.4.133 root ******
|
|
||||||
192.168.4.134 root ******
|
|
||||||
[root@ems bin]# ./cpsshkey.sh
|
|
||||||
[root@ems bin]# ssh root@192.168.4.133
|
|
||||||
```
|
|
||||||
|
|
||||||
## 3 启动和停止OMC
|
|
||||||
|
|
||||||
### 3.1 系统服务启动
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# systemctl enable restagent.service
|
|
||||||
# systemctl enable crontask.service
|
|
||||||
# systemctl enable sshsvc.service
|
|
||||||
# systemctl enable captrace.service
|
|
||||||
# systemctl daemon-reload
|
|
||||||
```
|
|
||||||
|
|
||||||
执行上述命令后,它被设置为作为 systemd 服务运行。
|
|
||||||
|
|
||||||
### 3.2 手动启动/查询/停止OMC
|
|
||||||
|
|
||||||
您可以按如下方式启动,查询状态,停止和重新启动OMC, 以下命令可通过/usr/local/omc/bin/omcsvc.sh脚本一次性执行:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# cd /usr/local/omc/bin
|
|
||||||
# ./omcsvc.sh start/stop/restart/status
|
|
||||||
```
|
|
||||||
|
|
||||||
单个OMC进程的执行命令如下, 启动/状态/停止/重启:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# systemctl start restagent.service
|
|
||||||
# systemctl start crontask.service
|
|
||||||
# systemctl start sshsvc.service
|
|
||||||
# systemctl start captrace.service
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# systemctl status restagent.service
|
|
||||||
# systemctl status crontask.service
|
|
||||||
# systemctl status sshsvc.service
|
|
||||||
# systemctl status captrace.service
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# systemctl stop restagent.service
|
|
||||||
# systemctl stop crontask.service
|
|
||||||
# systemctl stop sshsvc.service
|
|
||||||
# systemctl stop captrace.service
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# systemctl restart restagent.service
|
|
||||||
# systemctl restart crontask.service
|
|
||||||
# systemctl restart sshsvc.service
|
|
||||||
# systemctl restart captrace.service
|
|
||||||
```
|
|
||||||
|
|
||||||
## 4 问题定位跟踪
|
|
||||||
|
|
||||||
OMC restagent程序的配置文件在restagent.yaml,trace级别的日志通常在调试系统时使用,正常运行级别为debug,如下配置项所示:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
logger:
|
|
||||||
file: /usr/local/omc/log/restagent.log
|
|
||||||
level: debug
|
|
||||||
duration: 24
|
|
||||||
count: 90
|
|
||||||
```
|
|
||||||
|
|
||||||
OMC crontask程序的配置文件在crontask.yaml,trace级别的日志通常在调试系统时使用,正常运行级别为debug,如下配置项所示:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
logger:
|
|
||||||
file: /usr/local/omc/log/crontask.log
|
|
||||||
level: trace
|
|
||||||
duration: 24
|
|
||||||
count: 90
|
|
||||||
```
|
|
||||||
|
|
||||||
OMC sshsvc程序的配置文件在sshsvc.yaml,日志配置项如下所示:
|
|
||||||
|
|
||||||
```json
|
|
||||||
logger:
|
|
||||||
file: /usr/local/omc/log/sshsvc.log
|
|
||||||
level: debug
|
|
||||||
duration: 24
|
|
||||||
count: 30
|
|
||||||
```
|
|
||||||
|
|
||||||
OMC captrace程序的配置文件在capconf.yaml,日志配置项如下所示:
|
|
||||||
|
|
||||||
```json
|
|
||||||
logger:
|
|
||||||
file: /usr/local/omc/log/captrace.log
|
|
||||||
level: trace
|
|
||||||
duration: 24
|
|
||||||
count: 10
|
|
||||||
```
|
|
||||||
|
|
||||||
## 5 管理核心网系统
|
|
||||||
|
|
||||||
通过浏览器输入:[http://192.168.0.229:8888](http://192.168.0.229:8888) (nginx代理模式)
|
|
||||||
|
|
||||||
或:http://192.168.0.229:8080 (非nginx代理模式)
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# MySQL install guide
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 环境准备
|
|
||||||
|
|
||||||
硬件平台:辉腾arm服务器
|
|
||||||
|
|
||||||
操作系统:麒麟
|
|
||||||
|
|
||||||
MySQL:8.0.32
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
|
|
||||||
# OMC Overview
|
|
||||||
|
|
||||||
## Introduction to OMC
|
|
||||||
|
|
||||||
The Core Network OMC (Operation and Maintenance Center) is a central facility used by operators to manage and maintain core network equipment. It typically includes modules for network monitoring, fault management, performance management, configuration management, security management, and other functions to ensure the smooth operation and efficient maintenance of core network equipment. By monitoring and managing core network equipment, the OMC can quickly identify and resolve network faults in real-time, improve network performance, ensure network security, and enhance operational efficiency. The OMC plays a crucial role in the network operations and maintenance of operators, serving as a key element in ensuring stable network operation.
|
|
||||||
|
|
||||||
## System Architecture
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Platform
|
|
||||||
|
|
||||||
1. Operating System: Linux
|
|
||||||
2. Hardware Platform: X86/ARM64
|
|
||||||
3. Network Architecture: B/S mode
|
|
||||||
4. Front-end Languages: HTML+CSS+JS (Vue3)
|
|
||||||
5. Back-end Languages: Golang+MySQL/MariaDB+Redis, Nginx (optional)
|
|
||||||
|
|
||||||
## Features
|
|
||||||
|
|
||||||
General Version:
|
|
||||||
|
|
||||||
1. Topology Management (Dashboard/State/Monitor): Dashboard, Network topology, System status, etc.
|
|
||||||
2. Fault Management (FM): active alarms, historical alarms, etc.
|
|
||||||
3. Configuration Management (CM): NE (Network Element) management, parameter configuration, etc.
|
|
||||||
4. Performance Management (PM): subscription tasks for performance-related metrics, data reports, performance thresholds, etc.
|
|
||||||
5. CDR/Event Managemet (CDR): IMS CDR, SMF CDR, AMF UE event.
|
|
||||||
6. UE Management (UE): UDM Auth Data, UDM Subscriber, IMS Online Users, SMF UE Online Information, Radio Information, PCC Information, etc.
|
|
||||||
7. Operation and Maintenance (MML): NE MML(Man Machine Language) operations, UDM (User Data Management) MML, OMC (Operation and Maintenance Center) MML, etc.
|
|
||||||
8. Log Management (Log): operation logs, security logs, alarm logs, etc.
|
|
||||||
9. Tracing Management (Trace): signaling tracking task creation, signaling analysis, signaling capture, etc.
|
|
||||||
10. Security Management (Security): user management, role management, current online users, permission management, etc.
|
|
||||||
11. System Management (System): menu management, dictionary management, system information, scheduling tasks, etc.
|
|
||||||
12. Northbound Interface (NBI): optional and customized interfaces, northbound interface services, resource configuration data, performance statistics data, performance golden indicators, alarm reporting, 4A, etc.
|
|
||||||
|
|
||||||
Multi-tenancy Version:
|
|
||||||
|
|
||||||
1. In a public cloud core network, logical isolation of network assets leased by different tenants is achieved through element-specific devices (such as edge UPF), different base station IDs, SIM card number ranges, or slices.
|
|
||||||
2. The network management system data isolates user data, user online information, base station information, and UPF throughput for each tenant based on the mapping of slice information and tenants.
|
|
||||||
3. Tenants can view their own users (UE), have their own dedicated dashboard, and only view operation logs related to their users and accounts after logging in through the network management system.
|
|
||||||
4. Account roles include platform operation and tenants, where the operation account is equivalent to the current network management account. Operation and multi-tenant accounts can both log in to the network management system simultaneously without affecting each other.
|
|
||||||
|
|
||||||
Practical Training Version:
|
|
||||||
|
|
||||||
1. Implement multiple student logins to the network management system for configuration practical training, where configuration parameters are stored independently but not directly pushed to network elements; final device configuration deployment is controlled by the teacher.
|
|
||||||
2. All student configurations can be exported into a single Excel spreadsheet (students can also export their own), including header information (various configuration parameter names), student accounts, PLMN, and other key details.
|
|
||||||
3. Teacher account privileges:
|
|
||||||
* Ability to export, view, and compare all student parameter configurations.
|
|
||||||
* Login with selected student accounts to browse the student's operation interface.
|
|
||||||
* Restore a student's configuration to the system default with one click.
|
|
||||||
* Load and deploy a student's configuration to the devices.
|
|
||||||
|
|
||||||
## Supported NEs
|
|
||||||
|
|
||||||
AMF, AUSF, UDM, SMF, UPF, PCF, NRF, NSSF, NEF, LMF, IMS, MME, N3IWF, SMSC, MOCNGW
|
|
||||||
|
|
||||||
## Interfaces
|
|
||||||
|
|
||||||

|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
# OMC架构与功能
|
|
||||||
|
|
||||||
## OMC简介
|
|
||||||
|
|
||||||
核心网OMC(Operation and Maintenance Center)是运营商用于管理和维护核心网设备的中心。它通常包括网络监控、故障管理、性能管理、配置管理、安全管理等功能模块,用于确保核心网设备的正常运行和高效维护。OMC通过监控和管理核心网设备,可以实时发现和解决网络故障,提高网络性能,保障网络安全,提升运营效率。OMC在运营商的网络运维中扮演着重要的角色,是保障网络稳定运行的关键环节。
|
|
||||||
|
|
||||||
## 系统架构
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## 开发平台
|
|
||||||
|
|
||||||
1. 操作系统:Linux
|
|
||||||
2. 硬件平台:X86/ARM64
|
|
||||||
3. 网络架构: B/S模式
|
|
||||||
4. 前端语言:HTML+CSS+JS(vue3)
|
|
||||||
5. 后端语言:Golang+MySQL+Redis, Nginx(optional)
|
|
||||||
|
|
||||||
## 功能清单
|
|
||||||
|
|
||||||
通用版本(专网运营商网络):
|
|
||||||
|
|
||||||
1. 拓扑管理(Dashboard/State/Monitor):仪表盘,网络拓扑,系统状态等
|
|
||||||
2. 故障管理(FM):活动告警/历史告警等
|
|
||||||
3. 配置管理(CM):网元管理,参数配置等
|
|
||||||
4. 性能管理(PM):性能统计相关指标项的订阅任务,数据报表,性能门限等
|
|
||||||
5. CDR管理(CDR): IMS话单,SMF话单,AMF UE事件等
|
|
||||||
6. 终端管理(UE): UDM鉴权数据,UDM签约用户,IMS在线用户,SMF UE在线信息,基站信息,用户策略控制信息等
|
|
||||||
7. 操作维护(MML):网元MML操作,UDM用户数据MML,OMC MML等
|
|
||||||
8. 日志管理(Log):操作日志,安全日志,告警日志等
|
|
||||||
9. 跟踪管理(Trace):信令跟踪任务创建,信令分析,信令抓包等
|
|
||||||
10. 安全管理(Security):用户管理,角色管理,当前在线用户,权限管理等
|
|
||||||
11. 系统管理(System): 菜单管理,字典管理,系统信息,调度任务等
|
|
||||||
12. 北向接口(NBI: Northbound Interface): 可选接口,定制化接口,北向接口服务,资源配置数据,性能统计数据, 性能黄金指标, 告警上报, 4A等
|
|
||||||
|
|
||||||
多租户版本(Multi-tenancy):
|
|
||||||
|
|
||||||
1. 公有云中心核心网通过网元设备级(如边缘UPF),不同的基站ID, SIM Card号段或切片实现各租户租赁的网络资产逻辑隔离
|
|
||||||
2. 网管根据切片信息与租户的映射关系对各租户的用户数据、用户在线信息、基站信息以及UPF吞吐量等进行数据隔离
|
|
||||||
3. 租户通过网管登录后,可以进行自己用户(UE)的查看、有自己的专有仪表盘,只能看自己用户和账户相关的操作日志
|
|
||||||
4. 账号角色:平台运维和租户,运维账户相当于当前网管账户,运维账号和多租户账户可以同时登录网管系统操作,相互不影响。
|
|
||||||
|
|
||||||
实训版本(Practical-traning):
|
|
||||||
|
|
||||||
1. 实现多学员登录网管并且进行配置实训,配置参数独立存储,但不直接下发到网元设备,真正下发到设备由教师来控制;
|
|
||||||
2. 所有学员的配置可以导出成一个excel表格(学员自己也可以导出excel表格),包含表头信息(各种配置参数名称)、学生账号、PLMN等主要信息
|
|
||||||
3. 教师账号的权限:
|
|
||||||
* 可以导出,查看和比较所有学员的参数配置
|
|
||||||
* 选择学员账号登陆到学员的操作界面进行浏览
|
|
||||||
* 选择学员的配置一键还原系统默认配置
|
|
||||||
* 加载学员的配置并下发到设备
|
|
||||||
|
|
||||||
## 支持的NEs
|
|
||||||
|
|
||||||
AMF, AUSF, UDM, SMF, UPF, PCF, NRF, NSSF, NEF, LMF, IMS, MME, N3IWF, SMSC, MOCNGW
|
|
||||||
|
|
||||||
## 接口
|
|
||||||
|
|
||||||

|
|
||||||
|
Before Width: | Height: | Size: 269 KiB |
|
Before Width: | Height: | Size: 9.1 KiB |
@@ -1,11 +0,0 @@
|
|||||||
## OMC Database Diagrams
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### Diagram of OMC database
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### OMC Database Table Creation Script
|
|
||||||
|
|
||||||
Refer to omc_db.sql
|
|
||||||