Compare commits
89 Commits
667f6b1987
...
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 |
21
.gitignore
vendored
@@ -8,23 +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
|
||||||
# build files
|
*.exe
|
||||||
build
|
|
||||||
debbuild/etc
|
|
||||||
debbuild/usr
|
|
||||||
debbuild/lib
|
|
||||||
debbuild/22.04/etc
|
|
||||||
debbuild/22.04/usr
|
|
||||||
debbuild/22.04/lib
|
|
||||||
release
|
|
||||||
rpmbuild
|
|
||||||
!rpmbuild/SPECS/omc.spec
|
|
||||||
|
|
||||||
|
|
||||||
|
# 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
|
||||||
522
build.sh
@@ -1,352 +1,188 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Default Version
|
||||||
|
VERSION="1.0.0"
|
||||||
|
# usage
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: $0 [OPTION] deb|badeb|rpm"
|
echo "Usage: bash $0 [OPTION]"
|
||||||
echo
|
echo
|
||||||
echo "Build omc package, option as follow:"
|
echo "Build Software Package OPTION:"
|
||||||
echo " deb|badeb|rpm, deb: ubuntu|debian package build by dpkg"
|
echo " -v Specify the version"
|
||||||
echo " badeb: ubuntu|debian package build by dpkg"
|
echo " -h Display this help message"
|
||||||
echo " rpm: centos/redhat package, build by rpmbuild"
|
echo
|
||||||
echo " -r, =build root directory build root directory, default directory is $HOME/omc.git"
|
exit 1
|
||||||
echo " -d dump SQL from database"
|
|
||||||
echo
|
|
||||||
}
|
}
|
||||||
|
# Read command line arguments
|
||||||
pkgtype=""
|
while [[ $# -gt 0 ]]; do
|
||||||
new_args=()
|
case "$1" in
|
||||||
# Traverse all parameters
|
-v) VERSION="$2"; shift 2 ;; # Processing the version after -v
|
||||||
for arg in "$@"; do
|
*) usage ;;
|
||||||
if [[ "$arg" == "deb" || "$arg" == "badeb" || "$arg" == "rpm" ]]; then
|
esac
|
||||||
pkgtype=$arg
|
|
||||||
else
|
|
||||||
new_args+=("$arg") # Add non pkgtype parameters to a new parameter list
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
# output result
|
||||||
|
echo "Version: $VERSION"
|
||||||
|
|
||||||
if [ -z "$pkgtype" ]; then
|
# =================== Compile System Information
|
||||||
usage
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Use a new parameter list
|
# package manager
|
||||||
set -- "${new_args[@]}"
|
get_manager() {
|
||||||
|
if command -v rpm &> /dev/null; then
|
||||||
GitLocalRoot=${HOME}/omc.git
|
echo "rpm"
|
||||||
while getopts "r:d" option; do
|
elif command -v dpkg &> /dev/null; then
|
||||||
case $option in
|
echo "deb"
|
||||||
r)
|
else
|
||||||
GitLocalRoot=$OPTARG
|
echo "unknown manager"
|
||||||
;;
|
cat /etc/os-release
|
||||||
d)
|
|
||||||
dumpdb="yes"
|
|
||||||
;;
|
|
||||||
\?)
|
|
||||||
echo "Invalid option: -$OPTARG" >&2
|
|
||||||
usage
|
|
||||||
exit 2
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d ${GitLocalRoot} ]; then
|
|
||||||
echo "Not exist directory: ${GitLocalRoot}"
|
|
||||||
exit 3
|
|
||||||
fi
|
|
||||||
|
|
||||||
ProjectL=omc
|
|
||||||
ProjectU=OMC
|
|
||||||
PROJECT=${ProjectL}
|
|
||||||
VERSION=2.2502.2
|
|
||||||
RelDate=`date +%Y%m%d`
|
|
||||||
RelVer=${VERSION}-${RelDate}
|
|
||||||
Ky10Arch=ky10.aarch64
|
|
||||||
RpmPkgName=${ProjectL}-${RelVer}.ky10.aarch64.rpm
|
|
||||||
RpmPkgRename=${ProjectL}-r${RelVer}-ky10.rpm
|
|
||||||
DebPkgName=${ProjectL}-r${RelVer}-ub*.deb
|
|
||||||
EmsBEDir=${GitLocalRoot}/be.ems
|
|
||||||
EmsBuildRoot=${GitLocalRoot}/build.ems
|
|
||||||
RpmArch=`arch`
|
|
||||||
RpmsDir=${EmsBuildRoot}/rpmbuild/RPMS
|
|
||||||
ReleaseDir=${EmsBuildRoot}/release
|
|
||||||
DumpToolDir=${EmsBEDir}/tools/misc
|
|
||||||
ProjectTag=""
|
|
||||||
|
|
||||||
BuildDir=${EmsBuildRoot}/build
|
|
||||||
CustomizedDir=${EmsBuildRoot}/customized
|
|
||||||
BuildOMCDir=${BuildDir}/usr/local/omc
|
|
||||||
BuildOMCBinDir=${BuildOMCDir}/bin
|
|
||||||
BuildOMCEtcDir=${BuildOMCDir}/etc
|
|
||||||
BuildLibDir=${BuildDir}/lib
|
|
||||||
BuildLibSystemDir=${BuildLibDir}/systemd/system
|
|
||||||
DebBuildDir=${EmsBuildRoot}/debbuild
|
|
||||||
DebBuildOMCDir=${EmsBuildRoot}/debbuild/usr/local/omc
|
|
||||||
DebFEBuildDir=${DebBuildOMCDir}/htdocs
|
|
||||||
DebBuild2204Dir=${EmsBuildRoot}/debbuild/22.04
|
|
||||||
DebBuild2204OMCDir=${EmsBuildRoot}/debbuild/22.04/usr/local/omc
|
|
||||||
DebFEBuild2204Dir=${DebBuild2204OMCDir}/htdocs
|
|
||||||
RpmBuildDir=${EmsBuildRoot}/rpmbuild
|
|
||||||
RpmBuildOMCDir=${RpmBuildDir}/BUILD/usr/local/omc
|
|
||||||
RpmFEBuildDir=${RpmBuildOMCDir}/htdocs
|
|
||||||
OmcInstallDir=/usr/local/omc
|
|
||||||
ConfigEtcDir=${EmsBEDir}/config/etc
|
|
||||||
ConfigSystemdDir=${EmsBEDir}/config/systemd
|
|
||||||
EmsFEDir=${GitLocalRoot}/fe.ems
|
|
||||||
EmsFEVue3Dir=${GitLocalRoot}/fe.ems.vue3/dist
|
|
||||||
LibDir=${EmsBEDir}/lib
|
|
||||||
RESTAGENT=restagent
|
|
||||||
SshSvcBin=sshsvc
|
|
||||||
RestagentDir=${EmsBEDir}/${RESTAGENT}
|
|
||||||
SshSvcDir=${EmsBEDir}/${SshSvcBin}
|
|
||||||
DBSQLSrcDir=${EmsBEDir}/database
|
|
||||||
MiscDir=${EmsBEDir}/misc
|
|
||||||
FrontBuildDir=${BuildOMCDir}/htdocs
|
|
||||||
FrontSrcDir=${EmsBEDir}/front
|
|
||||||
BinWriterDir=${HOME}/bin
|
|
||||||
|
|
||||||
# Get the output of uname -a
|
|
||||||
UnameOutput=$(uname -a)
|
|
||||||
|
|
||||||
# Extract hardware architecture
|
|
||||||
if [[ $UnameOutput =~ "x86_64" ]]; then
|
|
||||||
RelArch=amd64
|
|
||||||
RpmArch=x86_64
|
|
||||||
elif [[ $UnameOutput =~ "aarch64" ]]; then
|
|
||||||
RelArch=arm64
|
|
||||||
RpmArch=aarch64
|
|
||||||
else
|
|
||||||
echo "Unsupported hardware architecture"
|
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
# Get the package manager of the current system
|
||||||
|
PACKAGE_MANAGER=$(get_manager)
|
||||||
|
echo "Package Manager: $PACKAGE_MANAGER"
|
||||||
|
|
||||||
|
# System Architecture
|
||||||
|
get_arch() {
|
||||||
|
ARCH_UNAME=$(uname -m)
|
||||||
|
case $ARCH_UNAME in
|
||||||
|
x86_64) echo "amd64" ;;
|
||||||
|
aarch64) echo "arm64" ;;
|
||||||
|
i386|i686) echo "i386" ;;
|
||||||
|
*)
|
||||||
|
echo "unknown architecture: $ARCH_UNAME"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
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
|
fi
|
||||||
|
|
||||||
get_os_info() {
|
# bash build.sh -v 2.2505.2
|
||||||
if [ -f /etc/os-release ]; then
|
|
||||||
. /etc/os-release
|
|
||||||
echo $ID
|
|
||||||
else
|
|
||||||
echo "unknown"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
get_os_version() {
|
|
||||||
if [ -f /etc/os-release ]; then
|
|
||||||
. /etc/os-release
|
|
||||||
echo $VERSION_ID
|
|
||||||
else
|
|
||||||
echo "unknown"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
OSVersion=$(get_os_version)
|
|
||||||
case $(get_os_info) in
|
|
||||||
ubuntu|debian)
|
|
||||||
ptype=deb
|
|
||||||
if [[ "$OSVersion" == "22.04" ]]; then
|
|
||||||
RelOS=ub22
|
|
||||||
DebBuildDir=${DebBuild2204Dir}
|
|
||||||
DebBuildOMCDir=${DebBuild2204OMCDir}
|
|
||||||
DebFEBuildDir=${DebFEBuild2204Dir}
|
|
||||||
elif [[ "$OSVersion" == "18.04" ]]; then
|
|
||||||
RelOS=ub18
|
|
||||||
else
|
|
||||||
echo "Unsupported Ubuntu version: $OSVersion"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
centos|rhel)
|
|
||||||
ptype=rpm
|
|
||||||
RelOS=ct8
|
|
||||||
RpmPkgRename=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
|
|
||||||
;;
|
|
||||||
openEuler)
|
|
||||||
ptype=rpm
|
|
||||||
RelOS=oe20
|
|
||||||
RpmPkgName=${ProjectL}-${RelVer}.${RpmArch}.${ptype}
|
|
||||||
RpmPkgRename=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Unsupported OS"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
case "${pkgtype}" in
|
|
||||||
rpm)
|
|
||||||
echo "Begin to make ${pkgtype} package ======>"
|
|
||||||
ReleasePkgDir=${ReleaseDir}/rpms/${RelArch}
|
|
||||||
ProcList="restagent sshsvc"
|
|
||||||
cd $EmsBEDir
|
|
||||||
for procName in $ProcList;do
|
|
||||||
cd $EmsBEDir/$procName
|
|
||||||
echo "Make $procName ..."
|
|
||||||
make
|
|
||||||
done
|
|
||||||
|
|
||||||
cd $EmsBEDir
|
|
||||||
# make rpm
|
|
||||||
# clear build cache
|
|
||||||
rm -rf ${FrontBuildDir}/front/*
|
|
||||||
rm -rf ${RpmFEBuildDir}/front/*
|
|
||||||
rm -rf ${RpmBuildDir}/BUILD/usr/local/omc/etc/db/*
|
|
||||||
|
|
||||||
cp -rf ${RestagentDir}/${RESTAGENT} ${BuildOMCBinDir}
|
|
||||||
cp -rf ${SshSvcDir}/${SshSvcBin} ${BuildOMCBinDir}
|
|
||||||
|
|
||||||
cp -rf ${MiscDir}/* ${BuildOMCBinDir}
|
|
||||||
# rm -rf ${BinDir2}/ne-hosts
|
|
||||||
cp -rf ${ConfigEtcDir}/* ${BuildOMCEtcDir}
|
|
||||||
rm -rf ${BuildOMCEtcDir}/db/*
|
|
||||||
cp -rf ${DBSQLSrcDir}/* ${BuildOMCEtcDir}/db/
|
|
||||||
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/install
|
|
||||||
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/upgrade
|
|
||||||
#Get SQL from database, overwrite from git
|
|
||||||
if [ "$dumpdb" = "yes" ]; then
|
|
||||||
cd ${DumpToolDir}
|
|
||||||
chmod +x ${DumpToolDir}/dumpsql.sh
|
|
||||||
${DumpToolDir}/dumpsql.sh
|
|
||||||
fi
|
|
||||||
cp -rf ${ConfigSystemdDir}/* ${BuildLibSystemDir}
|
|
||||||
#unzip ${FrontSrcDir}/front.zip -d ${FrontBuildDir} >/dev/null
|
|
||||||
mkdir -p ${FrontBuildDir}/front
|
|
||||||
cp -rf ${EmsFEVue3Dir}/* ${FrontBuildDir}/front >/dev/null
|
|
||||||
chmod 755 ${BuildOMCBinDir}/*
|
|
||||||
cp -rf ${BuildDir}/* ${RpmBuildDir}/BUILD/
|
|
||||||
cp -rf ${CustomizedDir}/agt.d ${RpmBuildOMCDir}/static
|
|
||||||
cp -rf ${CustomizedDir}/omc.d ${RpmBuildOMCDir}/static
|
|
||||||
cd ${RpmBuildDir}
|
|
||||||
rpmbuild -bb -D "_topdir ${RpmBuildDir}" ${RpmBuildDir}/SPECS/omc.spec
|
|
||||||
|
|
||||||
mv -f $RpmsDir/$RpmArch/$RpmPkgName ${ReleasePkgDir}/$RpmPkgRename
|
|
||||||
cd ${ReleasePkgDir}
|
|
||||||
rm -f omc-md5sum.txt
|
|
||||||
# rpm --addsign *.rpm
|
|
||||||
md5sum $RpmPkgRename >omc-md5sum.txt
|
|
||||||
echo "Finish to make ${pkgtype} package <======"
|
|
||||||
;;
|
|
||||||
deb)
|
|
||||||
echo "Begin to make ${pkgtype} package ======>"
|
|
||||||
ReleasePkgDir=${ReleaseDir}/debs/${RelArch}
|
|
||||||
ProcList="restagent sshsvc"
|
|
||||||
cd $EmsBEDir
|
|
||||||
for procName in $ProcList;do
|
|
||||||
cd $EmsBEDir/$procName
|
|
||||||
echo "Make $procName ..."
|
|
||||||
make
|
|
||||||
done
|
|
||||||
|
|
||||||
DebPkgFile=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
|
|
||||||
if [ ! $ProjectTag = "" ]; then
|
|
||||||
DebPkgFile=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}-${ProjectTag}.${ptype}
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd ${EmsBEDir}
|
|
||||||
|
|
||||||
#make deb
|
|
||||||
# clear build cache
|
|
||||||
rm -rf ${FrontBuildDir}/front/*
|
|
||||||
rm -rf ${DebFEBuildDir}/front/*
|
|
||||||
rm -rf ${DebBuildDir}/usr/local/omc/etc/db/*
|
|
||||||
rm -rf ${DebBuildOMCDir}/static/*
|
|
||||||
|
|
||||||
cp -rf ${RestagentDir}/${RESTAGENT} ${BuildOMCBinDir}
|
|
||||||
cp -rf ${SshSvcDir}/${SshSvcBin} ${BuildOMCBinDir}
|
|
||||||
|
|
||||||
cp -rf ${MiscDir}/* ${BuildOMCBinDir}
|
|
||||||
cp -rf ${ConfigEtcDir}/* ${BuildOMCEtcDir}
|
|
||||||
rm -rf ${BuildOMCEtcDir}/db/*
|
|
||||||
cp -rf ${DBSQLSrcDir}/* ${BuildOMCEtcDir}/db/
|
|
||||||
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/install
|
|
||||||
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/upgrade
|
|
||||||
#Get SQL from database, overwrite from git
|
|
||||||
if [ "${dumpdb}" = "yes" ]; then
|
|
||||||
cd ${DumpToolDir}
|
|
||||||
chmod +x ${DumpToolDir}/dumpsql.sh
|
|
||||||
${DumpToolDir}/dumpsql.sh
|
|
||||||
fi
|
|
||||||
cp -rf ${ConfigSystemdDir}/* ${BuildLibSystemDir}
|
|
||||||
cp -rf ${EmsFEVue3Dir}/* ${FrontBuildDir}/front >/dev/null
|
|
||||||
chmod 755 ${BuildOMCBinDir}/*
|
|
||||||
chmod 755 ${DebBuildDir}/DEBIAN/preinst
|
|
||||||
chmod 755 ${DebBuildDir}/DEBIAN/postinst
|
|
||||||
chmod 755 ${DebBuildDir}/DEBIAN/postrm
|
|
||||||
cp -rf ${BuildDir}/* ${DebBuildDir}/
|
|
||||||
cp -rf ${CustomizedDir}/agt.d ${DebBuildOMCDir}/static
|
|
||||||
cp -rf ${CustomizedDir}/omc.d ${DebBuildOMCDir}/static
|
|
||||||
#cp -rf ${BuildDir}/nginx/* ${DebBuildDir}/etc/nginx/conf.d
|
|
||||||
#cp -rf ${BuildDir}/systemd/*.service ${DebBuildDir}/lib/systemd/system/
|
|
||||||
chmod +x ${DebBuildDir}/usr/local/omc/bin/*
|
|
||||||
sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control
|
|
||||||
sed -i "s/Architecture: amd64/Architecture: ${RelArch}/g" ${DebBuildDir}/DEBIAN/control
|
|
||||||
perl -0777 -i -pe 's/ne:\n user: root/ne:\n user: omcuser/g' ${DebBuildDir}/usr/local/omc/etc/default/restconf.yaml
|
|
||||||
dpkg -b ${DebBuildDir} ${ReleasePkgDir}/${DebPkgFile}
|
|
||||||
|
|
||||||
cd ${ReleasePkgDir}
|
|
||||||
rm -f omc-md5sum.txt
|
|
||||||
# rpm --addsign *.rpm
|
|
||||||
md5sum ${DebPkgName} >omc-md5sum.txt
|
|
||||||
echo "Finish to make ${pkgtype} package <======="
|
|
||||||
;;
|
|
||||||
badeb)
|
|
||||||
echo "Begin to make ${pkgtype} package ======>"
|
|
||||||
ReleasePkgDir=${ReleaseDir}/debs/${RelArch}
|
|
||||||
ProcList="restagent sshsvc"
|
|
||||||
cd $EmsBEDir
|
|
||||||
for procName in $ProcList;do
|
|
||||||
cd $EmsBEDir/$procName
|
|
||||||
echo "Make $procName ..."
|
|
||||||
make
|
|
||||||
done
|
|
||||||
|
|
||||||
DebPkgFile=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}-ba.deb
|
|
||||||
|
|
||||||
cd ${EmsBEDir}
|
|
||||||
|
|
||||||
#make deb
|
|
||||||
# clear build cache
|
|
||||||
rm -rf ${FrontBuildDir}/front/*
|
|
||||||
rm -rf ${DebFEBuildDir}/front/*
|
|
||||||
rm -rf ${DebBuildDir}/usr/local/omc/etc/db/*
|
|
||||||
rm -rf ${DebBuildOMCDir}/static/*
|
|
||||||
|
|
||||||
cp -rf ${RestagentDir}/${RESTAGENT} ${BuildOMCBinDir}
|
|
||||||
cp -rf ${SshSvcDir}/${SshSvcBin} ${BuildOMCBinDir}
|
|
||||||
|
|
||||||
cp -rf ${MiscDir}/* ${BuildOMCBinDir}
|
|
||||||
cp -rf ${ConfigEtcDir}/* ${BuildOMCEtcDir}
|
|
||||||
rm -rf ${BuildOMCEtcDir}/db/*
|
|
||||||
cp -rf ${DBSQLSrcDir}/* ${BuildOMCEtcDir}/db/
|
|
||||||
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/install
|
|
||||||
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/upgrade
|
|
||||||
|
|
||||||
#Get SQL from database, overwrite from git
|
|
||||||
if [ "${dumpdb}" = "yes" ]; then
|
|
||||||
cd ${DumpToolDir}
|
|
||||||
chmod +x ${DumpToolDir}/dumpsql.sh
|
|
||||||
${DumpToolDir}/dumpsql.sh
|
|
||||||
fi
|
|
||||||
cp -rf ${ConfigSystemdDir}/* ${BuildLibSystemDir}
|
|
||||||
cp -rf ${EmsFEVue3Dir}/* ${FrontBuildDir}/front >/dev/null
|
|
||||||
chmod 755 ${BuildOMCBinDir}/*
|
|
||||||
chmod 755 ${DebBuildDir}/DEBIAN/preinst
|
|
||||||
chmod 755 ${DebBuildDir}/DEBIAN/postinst
|
|
||||||
chmod 755 ${DebBuildDir}/DEBIAN/postrm
|
|
||||||
cp -rf ${BuildDir}/* ${DebBuildDir}/
|
|
||||||
cp -rf ${CustomizedDir}/ba.d ${DebBuildOMCDir}/static
|
|
||||||
# replace Chinese character
|
|
||||||
find "${DebBuildOMCDir}/etc/db" -type f -name '*.sql' -exec sed -i 's/[一-龥]//g' {} +
|
|
||||||
echo "Replace all chinese character."
|
|
||||||
chmod +x ${DebBuildDir}/usr/local/omc/bin
|
|
||||||
sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control
|
|
||||||
sed -i "s/Architecture: amd64/Architecture: ${RelArch}/g" ${DebBuildDir}/DEBIAN/control
|
|
||||||
perl -0777 -i -pe 's/ne:\n user: root/ne:\n user: omcuser/g' ${DebBuildDir}/usr/local/omc/etc/default/restconf.yaml
|
|
||||||
dpkg -b ${DebBuildDir} ${ReleasePkgDir}/${DebPkgFile}
|
|
||||||
|
|
||||||
cd ${ReleasePkgDir}
|
|
||||||
rm -f omc-md5sum.txt
|
|
||||||
md5sum ${DebPkgName} >omc-md5sum.txt
|
|
||||||
echo "Finish to make ${pkgtype} package <======"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
usage
|
|
||||||
exit 4
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|||||||
@@ -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/fQXgvdUu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bljW0FHVFnrgUHpbLUOEc0QHXO4d2PaUNptLVxquOJI/VDW2GKKQWaIsdYKPJEDO9
|
|
||||||
GBe/LaUDzodd1s1isly86DLEgT2HwbAAAAwQDDhgO/kOI1N0jMOpE5gotcrhQc353jrP16
|
|
||||||
mKOdcp9MVHiioRybsyRdnbDIYKXbQz2ZRwmz2RBh55uPQjLcfi82GlIm2rdTL8KzP9vLpc
|
|
||||||
WAbZ7dcbv1lLyIlr4Yf33LgAChxJQTGNad771cwYFrtwTYk16O0Mdv302L0DgDTJUvhzJb
|
|
||||||
0ZuIk2nmzumSH1pOYmZl8Oa+UM7YSZNCWEpM7/S5laNISQ6dF/yy6Del2sQk/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,193 +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: omc_db
|
|
||||||
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
|
|
||||||
backup: /usr/local/omc/database
|
|
||||||
|
|
||||||
# Redis data cache
|
|
||||||
redis:
|
|
||||||
dataSource:
|
|
||||||
# OMC system db
|
|
||||||
default:
|
|
||||||
port: 6379 # Redis port
|
|
||||||
host: "127.0.0.1" # Redis host
|
|
||||||
password: "helloearth"
|
|
||||||
db: 10 # Redis db_num
|
|
||||||
# UDM sub/auth db
|
|
||||||
udmuser:
|
|
||||||
port: 6379 # Redis port
|
|
||||||
host: "127.0.0.1"
|
|
||||||
password: "helloearth"
|
|
||||||
db: 0 # Redis db_num
|
|
||||||
# used to specify the default data source for multiple data resourece
|
|
||||||
defaultDataSourceName: "default"
|
|
||||||
|
|
||||||
# sleep: time delay for after write buffer (millisecond)
|
|
||||||
# deadLine: timeout for io read and write (second)
|
|
||||||
mml:
|
|
||||||
sleep: 200
|
|
||||||
deadLine: 10
|
|
||||||
sizeRow: 600
|
|
||||||
sizeCol: 128
|
|
||||||
bufferSize: 65535
|
|
||||||
mmlHome: ./mmlhome
|
|
||||||
|
|
||||||
# Tracking configuration
|
|
||||||
trace:
|
|
||||||
enabled: true
|
|
||||||
host: "172.16.5.100" # Fill in the specific IP address
|
|
||||||
port: 33033
|
|
||||||
|
|
||||||
# NE config
|
|
||||||
ne:
|
|
||||||
user: omcuser
|
|
||||||
etcdir: /usr/local/etc
|
|
||||||
bindir: /usr/local/bin
|
|
||||||
omcdir: /usr/local/omc
|
|
||||||
scpdir: /tmp
|
|
||||||
licensedir: /usr/local/etc/{neType}/license
|
|
||||||
# backup etc list of IMS, does not contain spaces
|
|
||||||
etcListIMS: '{*.yaml,mmtel,vars.cfg}'
|
|
||||||
etcListDefault: '{*.yaml,*.conf,*.cfg}'
|
|
||||||
# true/false to overwrite config file when dpkg ne software
|
|
||||||
dpkgOverwrite: false
|
|
||||||
# dpkg timeout (second)
|
|
||||||
dpkgTimeout: 180
|
|
||||||
|
|
||||||
# chk2ne: true/false, if put OmcNeConfig parameters to NE
|
|
||||||
omc:
|
|
||||||
uriPrefix: "/omc/rest"
|
|
||||||
neType: OMC
|
|
||||||
neId: 001
|
|
||||||
rmUID: 4400HX101
|
|
||||||
neName: OMC
|
|
||||||
province: ""
|
|
||||||
vendor: ""
|
|
||||||
dn: ""
|
|
||||||
chk2ne: false
|
|
||||||
sn: "-"
|
|
||||||
checksign: false
|
|
||||||
rootDir: /usr/local/omc
|
|
||||||
binDir: /usr/local/omc/bin
|
|
||||||
backup: /usr/local/omc/backup
|
|
||||||
upload: /usr/local/omc/upload
|
|
||||||
frontUpload: /usr/local/omc/htdocs/front/upload
|
|
||||||
frontTraceDir: /usr/local/omc/htdocs/front/trace
|
|
||||||
software: /usr/local/omc/software
|
|
||||||
license: /usr/local/omc/license
|
|
||||||
gtpUri: gtp:192.168.2.119:32152
|
|
||||||
checkContentType: false
|
|
||||||
testMode: false
|
|
||||||
rbacMode: true
|
|
||||||
runDir: /usr/local/omc/run
|
|
||||||
cmdTimeout: 120
|
|
||||||
|
|
||||||
# Alarm module setting
|
|
||||||
# Forward interface:
|
|
||||||
# TLS Skip verify: true/false
|
|
||||||
# email/sms
|
|
||||||
# smProxy: sms(Short Message Service)/smsc(SMS Centre)
|
|
||||||
# dataCoding: 0:GSM7BIT, 1:ASCII, 2:BINARY8BIT1, 3:LATIN1,
|
|
||||||
# 4:BINARY8BIT2, 6:CYRILLIC, 7:HEBREW, 8:UCS2
|
|
||||||
alarm:
|
|
||||||
alarmEmailForward:
|
|
||||||
enable: true
|
|
||||||
emailList:
|
|
||||||
smtp: mail.smtp.com
|
|
||||||
port: 25
|
|
||||||
user: smtpext@smtp.com
|
|
||||||
password: "1000smtp@omc!"
|
|
||||||
tlsSkipVerify: true
|
|
||||||
alarmSMSForward:
|
|
||||||
enable: true
|
|
||||||
mobileList:
|
|
||||||
smscAddr: "192.168.13.114:2775"
|
|
||||||
systemID: "omc"
|
|
||||||
password: "omc123"
|
|
||||||
systemType: "UTRAN"
|
|
||||||
dataCoding: 0
|
|
||||||
serviceNumber: "OMC"
|
|
||||||
sms:
|
|
||||||
apiURL: http://smsc.xxx.com/
|
|
||||||
accessKeyID: xxxx
|
|
||||||
accessKeySecret: xxxx
|
|
||||||
signName: xxx SMSC
|
|
||||||
templateCode: 1000
|
|
||||||
smProxy: smsc
|
|
||||||
|
|
||||||
# User authorized information
|
|
||||||
# crypt: mysql/md5/bcrypt
|
|
||||||
# token: true/false to check accessToken
|
|
||||||
# expires for session, unit: second
|
|
||||||
# Support single/multiple session of user
|
|
||||||
#
|
|
||||||
auth:
|
|
||||||
crypt: bcrypt
|
|
||||||
token: true
|
|
||||||
expires: 1800
|
|
||||||
session: multiple
|
|
||||||
publicKey: /usr/local/omc/etc/certs/omc
|
|
||||||
privateKey: /usr/local/omc/etc/certs/omc
|
|
||||||
|
|
||||||
# Parameter for limit number
|
|
||||||
# rmuid_maxnum: the max number of rmUID, default: 50
|
|
||||||
# alarmid_maxnum: the max number of AlarmID, default: 50
|
|
||||||
# pmid_maxnum: the max number of pmID, default: 50
|
|
||||||
# subid_maxnum: the max number of subscription ID, default: 20
|
|
||||||
# uri_maxlen: the max length of uri, default: 8192
|
|
||||||
# rmuid_regexp: regexp pattern of rmUID
|
|
||||||
params:
|
|
||||||
rmuidmaxnum: 50
|
|
||||||
alarmidmaxnum: 50
|
|
||||||
pmidmaxnum: 50
|
|
||||||
subidmaxnum: 20
|
|
||||||
urimaxlen: 2100000
|
|
||||||
rmuidregexp: "[0-9]{4}[A-Z]{2}[A-Z]{2}[0-9A-Z]{1}[0-9A-Z]{3}[0-9A-Z]{1,16}"
|
|
||||||
|
|
||||||
testConfig:
|
|
||||||
enabled: false
|
|
||||||
file: /usr/local/omc/etc/testconfig.yaml
|
|
||||||
@@ -1,87 +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: warn
|
|
||||||
duration: 24
|
|
||||||
count: 30
|
|
||||||
|
|
||||||
# file: MML log file name
|
|
||||||
# duration: rotation time with xx hours, example: 1/12/24 hours
|
|
||||||
# count: rotation count of log, default is 30 rotation
|
|
||||||
# level: cmd/ret log cmd/log cmd & result
|
|
||||||
logmml:
|
|
||||||
file: /usr/local/omc/mmllog/omcmml.log
|
|
||||||
duration: 24
|
|
||||||
count: 30
|
|
||||||
level: cmd
|
|
||||||
|
|
||||||
# ssh service listen ipv4/v6 and port, support multiple routines
|
|
||||||
# ip: 0.0.0.0 or ::0, support IPv4/v6
|
|
||||||
# session: single/multiple session for one user
|
|
||||||
sshd:
|
|
||||||
listenAddr: 0.0.0.0
|
|
||||||
listenPort: 32222
|
|
||||||
privateKey: /usr/local/omc/.ssh/id_rsa
|
|
||||||
maxConnNum: 2
|
|
||||||
timeout: 1800
|
|
||||||
session: multiple
|
|
||||||
mmlHome: /usr/local/omc/mmlhome
|
|
||||||
userName: manager
|
|
||||||
password: pass123
|
|
||||||
authType: local
|
|
||||||
tagNE: omc
|
|
||||||
|
|
||||||
# authType: local/omc
|
|
||||||
telnetServer:
|
|
||||||
listenAddr: 0.0.0.0
|
|
||||||
listenPort: 32323
|
|
||||||
maxConnNum: 2
|
|
||||||
timeout: 1800
|
|
||||||
session: multiple
|
|
||||||
mmlHome: /usr/local/omc/mmlhome
|
|
||||||
userName: manager
|
|
||||||
password: pass123
|
|
||||||
authType: local
|
|
||||||
tagNE: omc
|
|
||||||
|
|
||||||
# authproto: NoAuth/MD5/SHA
|
|
||||||
# privProto: NoPriv/DES/AES/AES192/AES256
|
|
||||||
snmpServer:
|
|
||||||
listenAddr: '[::]'
|
|
||||||
listenPort: 34957
|
|
||||||
userName: manager
|
|
||||||
authPass: pass123
|
|
||||||
authproto: MD5
|
|
||||||
privPass: "3F2A1B4C5D6E7F8A9B0C1D2E3F4A5B6C7D8E9F0A1B2C3D4E"
|
|
||||||
privProto: DES
|
|
||||||
engineID: "8000000004323030313a6462383a3a39313636"
|
|
||||||
trapPort: 34958
|
|
||||||
trapListen: false
|
|
||||||
trapBool: false
|
|
||||||
trapTick: 60
|
|
||||||
timeOut: 5
|
|
||||||
trapTarget: ""
|
|
||||||
|
|
||||||
database:
|
|
||||||
type: mysql
|
|
||||||
user: root
|
|
||||||
password: 1000omc@kp!
|
|
||||||
host: 127.0.0.1
|
|
||||||
port: 33066
|
|
||||||
name: omc_db
|
|
||||||
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
|
|
||||||
|
|
||||||
omc:
|
|
||||||
httpUri: http://127.0.0.1:33030
|
|
||||||
userCrypt: bcrypt
|
|
||||||
|
|
||||||
ne:
|
|
||||||
port: 4100
|
|
||||||
sleep: 200
|
|
||||||
user: admin
|
|
||||||
password: admin
|
|
||||||
|
|
||||||
|
|
||||||
@@ -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.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: 114 B |
|
Before Width: | Height: | Size: 70 KiB |
|
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,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: 216 KiB |
|
Before Width: | Height: | Size: 216 KiB |
@@ -1,2 +0,0 @@
|
|||||||
export default {
|
|
||||||
};
|
|
||||||
|
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', '#', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.officialUrlRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (106, 'config.sys.title', 'sys.title', 'config.sys.titleValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.titleRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (107, 'config.sys.copyright', 'sys.copyright', 'config.sys.copyrightValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.copyrightRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (108, 'config.sys.i18nOpen', 'sys.i18n.open', 'true', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nOpenRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (109, 'config.sys.i18nDefault', 'sys.i18n.default', 'en_US', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nDefaultRemark');
|
|
||||||
|
|
||||||
--
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (1660, 1660, 'config.sys.titleValue', 'OMC', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (1661, 1661, 'config.sys.copyrightValue', 'Copyright ©2024', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (3660, 3660, 'config.sys.titleValue', 'OMC', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (3661, 3661, 'config.sys.copyrightValue', 'Copyright ©2024', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
|
|
||||||
-- set internationalization switching to ON
|
|
||||||
-- REPLACE INTO `omc_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2122);
|
|
||||||
UPDATE `sys_menu` SET `status` = '1' WHERE `menu_id` = 2122;
|
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
|
||||||
|
Before Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
@@ -1,8 +0,0 @@
|
|||||||
Package: OMC
|
|
||||||
Version: 2.2502.2-YYYYMMDD
|
|
||||||
Section: AGrandTech
|
|
||||||
Prioritt: optional
|
|
||||||
Architecture: amd64
|
|
||||||
Maintainer: Simon Zhangsz
|
|
||||||
Depends:
|
|
||||||
Description: OMC
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
# !/bin/bash
|
|
||||||
|
|
||||||
OMCRootDir=/usr/local/omc
|
|
||||||
SystemdRootDir=/lib/systemd/system
|
|
||||||
OMCEtcDir=${OMCRootDir}/etc
|
|
||||||
FERootDir=${OMCRootDir}/htdocs/front
|
|
||||||
OmcBinDir=${OMCRootDir}/bin
|
|
||||||
OMCStaticDir=${OMCRootDir}/static
|
|
||||||
UsrLocalBinDir=/usr/local/bin
|
|
||||||
OmcDaemon=omcd
|
|
||||||
NginxEtcDir=/etc/nginx
|
|
||||||
NginxConfDir=${NginxEtcDir}/conf.d
|
|
||||||
CFileList="restconf.yaml sshsvc.yaml omc.conf"
|
|
||||||
LogoFileList="zh_brand.png zh_icon.png en_brand.png en_icon.png"
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "* To start/stop/restart/status omc service, please run:"
|
|
||||||
echo " sudo systemctl start/stop/restart/status restagent.service"
|
|
||||||
echo " sudo systemctl start/stop/restart/status sshsvc.service"
|
|
||||||
echo " or run: "
|
|
||||||
echo " sudo /usr/local/omc/bin/omcsvc.sh start/stop/restart/status"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
cd ${UsrLocalBinDir}
|
|
||||||
if [ ! -e ${OmcDaemon} ]; then ln -s ${OmcBinDir}/omcsvc.sh ${OmcDaemon}; fi
|
|
||||||
|
|
||||||
chmod +rx ${OMCRootDir}/bin/*
|
|
||||||
chmod +rx ${OMCRootDir}/*
|
|
||||||
chmod +rx ${UsrLocalBinDir}/*
|
|
||||||
chmod -R 755 ${OMCRootDir}/htdocs/front
|
|
||||||
|
|
||||||
for CFile in ${CFileList}; do
|
|
||||||
if [ ! -e "${OMCEtcDir}/${CFile}" ]; then
|
|
||||||
cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}
|
|
||||||
else
|
|
||||||
# mv -f ${OMCEtcDir}/${CFile} ${OMCEtcDir}/${CFile}.bak
|
|
||||||
# cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}
|
|
||||||
if [ -e "${OMCBinDir}/upgconf.sh" ]; then
|
|
||||||
${OMCBinDir}/upgconf.sh
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -e "${FERootDir}/config.js" ]; then
|
|
||||||
cp ${FERootDir}/default/config.js ${FERootDir};
|
|
||||||
fi
|
|
||||||
|
|
||||||
for LogoFile in ${LogoFileList}; do
|
|
||||||
if [ ! -e "${OMCStaticDir}/logo/${LogoFile}" ]; then
|
|
||||||
cp ${OMCStaticDir}/omc.d/logo/${LogoFile} ${OMCStaticDir}/logo;
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if ! id -u omc >/dev/null 2>&1 ; then
|
|
||||||
useradd -d /opt/omc -m -s /bin/bash -pomc123 omc;
|
|
||||||
mkdir -p /opt/omc/ftp
|
|
||||||
else
|
|
||||||
echo "user omc exist";
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -e "${NginxConfDir}/omc.conf" ]; then
|
|
||||||
mkdir -p ${NginxConfDir}
|
|
||||||
cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir};
|
|
||||||
fi
|
|
||||||
|
|
||||||
systemctl daemon-reload
|
|
||||||
|
|
||||||
# disable auto upgrade
|
|
||||||
systemctl disable --now unattended-upgrades
|
|
||||||
|
|
||||||
systemctl enable restagent.service
|
|
||||||
systemctl enable sshsvc.service
|
|
||||||
|
|
||||||
systemctl daemon-reload
|
|
||||||
|
|
||||||
# read environment parameter and to do
|
|
||||||
if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then
|
|
||||||
echo "M parameter: $M_PARAM"
|
|
||||||
if [ -n "$C_PARAM" ]; then
|
|
||||||
echo "C parameter: $C_PARAM"
|
|
||||||
${OMCRootDir}/bin/setomc.sh -m $M_PARAM -c $C_PARAM
|
|
||||||
else
|
|
||||||
${OMCRootDir}/bin/setomc.sh -m $M_PARAM
|
|
||||||
fi
|
|
||||||
# exit while failed to run setomc.sh
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "setomc.sh execution failed. Exiting."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -n "Starting OMC service ... "
|
|
||||||
systemctl start sshsvc.service
|
|
||||||
systemctl start restagent.service
|
|
||||||
echo "done"
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# !/bin/bash
|
|
||||||
|
|
||||||
#rm -rf /usr/local/omc
|
|
||||||
rm -rf /etc/nginx/conf.d/omc.conf
|
|
||||||
rm -f /usr/local/bin/omcd
|
|
||||||
|
|
||||||
systemctl daemon-reload
|
|
||||||
|
|
||||||
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
|
|
||||||
echo -n "Stopping OMC service ... "
|
|
||||||
systemctl stop restagent.service
|
|
||||||
systemctl stop sshsvc.service
|
|
||||||
echo "done"
|
|
||||||
fi
|
|
||||||
|
|
||||||
systemctl disable restagent.service
|
|
||||||
systemctl disable sshsvc.service
|
|
||||||
|
|
||||||
systemctl daemon-reload
|
|
||||||
@@ -1,17 +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 sshsvc.service
|
|
||||||
echo "done"
|
|
||||||
fi
|
|
||||||
|
|
||||||
FERootDir=/usr/local/omc/htdocs/front
|
|
||||||
|
|
||||||
# apt-get install zip
|
|
||||||
# clear front-end old hash js files
|
|
||||||
rm -rf ${FERootDir}/assets
|
|
||||||
rm -rf ${FERootDir}/js
|
|
||||||
rm -rf ${FERootDir}/index.*.js
|
|
||||||
@@ -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+WdEFcWaJVSlfe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wqOf
|
|
||||||
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,193 +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: omc_db
|
|
||||||
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
|
|
||||||
backup: /usr/local/omc/database
|
|
||||||
|
|
||||||
# Redis data cache
|
|
||||||
redis:
|
|
||||||
dataSource:
|
|
||||||
# OMC system db
|
|
||||||
default:
|
|
||||||
port: 6379 # Redis port
|
|
||||||
host: "127.0.0.1" # Redis host
|
|
||||||
password: "helloearth"
|
|
||||||
db: 10 # Redis db_num
|
|
||||||
# UDM sub/auth db
|
|
||||||
udmuser:
|
|
||||||
port: 6379 # Redis port
|
|
||||||
host: "127.0.0.1"
|
|
||||||
password: "helloearth"
|
|
||||||
db: 0 # Redis db_num
|
|
||||||
# used to specify the default data source for multiple data resourece
|
|
||||||
defaultDataSourceName: "default"
|
|
||||||
|
|
||||||
# sleep: time delay for after write buffer (millisecond)
|
|
||||||
# deadLine: timeout for io read and write (second)
|
|
||||||
mml:
|
|
||||||
sleep: 200
|
|
||||||
deadLine: 10
|
|
||||||
sizeRow: 600
|
|
||||||
sizeCol: 128
|
|
||||||
bufferSize: 65535
|
|
||||||
mmlHome: ./mmlhome
|
|
||||||
|
|
||||||
# Tracking configuration
|
|
||||||
trace:
|
|
||||||
enabled: true
|
|
||||||
host: "172.16.5.100" # Fill in the specific IP address
|
|
||||||
port: 33033
|
|
||||||
|
|
||||||
# NE config
|
|
||||||
ne:
|
|
||||||
user: omcuser
|
|
||||||
etcdir: /usr/local/etc
|
|
||||||
bindir: /usr/local/bin
|
|
||||||
omcdir: /usr/local/omc
|
|
||||||
scpdir: /tmp
|
|
||||||
licensedir: /usr/local/etc/{neType}/license
|
|
||||||
# backup etc list of IMS, does not contain spaces
|
|
||||||
etcListIMS: '{*.yaml,mmtel,vars.cfg}'
|
|
||||||
etcListDefault: '{*.yaml,*.conf,*.cfg}'
|
|
||||||
# true/false to overwrite config file when dpkg ne software
|
|
||||||
dpkgOverwrite: false
|
|
||||||
# dpkg timeout (second)
|
|
||||||
dpkgTimeout: 180
|
|
||||||
|
|
||||||
# chk2ne: true/false, if put OmcNeConfig parameters to NE
|
|
||||||
omc:
|
|
||||||
uriPrefix: "/omc/rest"
|
|
||||||
neType: OMC
|
|
||||||
neId: 001
|
|
||||||
rmUID: 4400HX101
|
|
||||||
neName: OMC
|
|
||||||
province: ""
|
|
||||||
vendor: ""
|
|
||||||
dn: ""
|
|
||||||
chk2ne: false
|
|
||||||
sn: "-"
|
|
||||||
checksign: false
|
|
||||||
rootDir: /usr/local/omc
|
|
||||||
binDir: /usr/local/omc/bin
|
|
||||||
backup: /usr/local/omc/backup
|
|
||||||
upload: /usr/local/omc/upload
|
|
||||||
frontUpload: /usr/local/omc/htdocs/front/upload
|
|
||||||
frontTraceDir: /usr/local/omc/htdocs/front/trace
|
|
||||||
software: /usr/local/omc/software
|
|
||||||
license: /usr/local/omc/license
|
|
||||||
gtpUri: gtp:192.168.2.119:32152
|
|
||||||
checkContentType: false
|
|
||||||
testMode: false
|
|
||||||
rbacMode: true
|
|
||||||
runDir: /usr/local/omc/run
|
|
||||||
cmdTimeout: 120
|
|
||||||
|
|
||||||
# Alarm module setting
|
|
||||||
# Forward interface:
|
|
||||||
# TLS Skip verify: true/false
|
|
||||||
# email/sms
|
|
||||||
# smProxy: sms(Short Message Service)/smsc(SMS Centre)
|
|
||||||
# dataCoding: 0:GSM7BIT, 1:ASCII, 2:BINARY8BIT1, 3:LATIN1,
|
|
||||||
# 4:BINARY8BIT2, 6:CYRILLIC, 7:HEBREW, 8:UCS2
|
|
||||||
alarm:
|
|
||||||
alarmEmailForward:
|
|
||||||
enable: true
|
|
||||||
emailList:
|
|
||||||
smtp: mail.smtp.com
|
|
||||||
port: 25
|
|
||||||
user: smtpext@smtp.com
|
|
||||||
password: "1000smtp@omc!"
|
|
||||||
tlsSkipVerify: true
|
|
||||||
alarmSMSForward:
|
|
||||||
enable: true
|
|
||||||
mobileList:
|
|
||||||
smscAddr: "192.168.13.114:2775"
|
|
||||||
systemID: "omc"
|
|
||||||
password: "omc123"
|
|
||||||
systemType: "UTRAN"
|
|
||||||
dataCoding: 0
|
|
||||||
serviceNumber: "OMC"
|
|
||||||
sms:
|
|
||||||
apiURL: http://smsc.xxx.com/
|
|
||||||
accessKeyID: xxxx
|
|
||||||
accessKeySecret: xxxx
|
|
||||||
signName: xxx SMSC
|
|
||||||
templateCode: 1000
|
|
||||||
smProxy: smsc
|
|
||||||
|
|
||||||
# User authorized information
|
|
||||||
# crypt: mysql/md5/bcrypt
|
|
||||||
# token: true/false to check accessToken
|
|
||||||
# expires for session, unit: second
|
|
||||||
# Support single/multiple session of user
|
|
||||||
#
|
|
||||||
auth:
|
|
||||||
crypt: bcrypt
|
|
||||||
token: true
|
|
||||||
expires: 1800
|
|
||||||
session: multiple
|
|
||||||
publicKey: /usr/local/omc/etc/certs/omc
|
|
||||||
privateKey: /usr/local/omc/etc/certs/omc
|
|
||||||
|
|
||||||
# Parameter for limit number
|
|
||||||
# rmuid_maxnum: the max number of rmUID, default: 50
|
|
||||||
# alarmid_maxnum: the max number of AlarmID, default: 50
|
|
||||||
# pmid_maxnum: the max number of pmID, default: 50
|
|
||||||
# subid_maxnum: the max number of subscription ID, default: 20
|
|
||||||
# uri_maxlen: the max length of uri, default: 8192
|
|
||||||
# rmuid_regexp: regexp pattern of rmUID
|
|
||||||
params:
|
|
||||||
rmuidmaxnum: 50
|
|
||||||
alarmidmaxnum: 50
|
|
||||||
pmidmaxnum: 50
|
|
||||||
subidmaxnum: 20
|
|
||||||
urimaxlen: 2100000
|
|
||||||
rmuidregexp: "[0-9]{4}[A-Z]{2}[A-Z]{2}[0-9A-Z]{1}[0-9A-Z]{3}[0-9A-Z]{1,16}"
|
|
||||||
|
|
||||||
testConfig:
|
|
||||||
enabled: false
|
|
||||||
file: /usr/local/omc/etc/testconfig.yaml
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
Package: OMC
|
|
||||||
Version: 2.2502.2-YYYYMMDD
|
|
||||||
Section: AGrandTech
|
|
||||||
Prioritt: optional
|
|
||||||
Architecture: amd64
|
|
||||||
Maintainer: Simon Zhangsz
|
|
||||||
Depends:
|
|
||||||
Description: OMC
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
# !/bin/bash
|
|
||||||
|
|
||||||
OMCRootDir=/usr/local/omc
|
|
||||||
SystemdRootDir=/lib/systemd/system
|
|
||||||
OMCEtcDir=${OMCRootDir}/etc
|
|
||||||
FERootDir=${OMCRootDir}/htdocs/front
|
|
||||||
OmcBinDir=${OMCRootDir}/bin
|
|
||||||
OMCStaticDir=${OMCRootDir}/static
|
|
||||||
UsrLocalBinDir=/usr/local/bin
|
|
||||||
OmcDaemon=omcd
|
|
||||||
NginxEtcDir=/etc/nginx
|
|
||||||
NginxConfDir=${NginxEtcDir}/conf.d
|
|
||||||
CFileList="restconf.yaml sshsvc.yaml omc.conf"
|
|
||||||
LogoFileList="zh_brand.png zh_icon.png en_brand.png en_icon.png"
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "* To start/stop/restart/status omc service, please run:"
|
|
||||||
echo " sudo systemctl start/stop/restart/status restagent.service"
|
|
||||||
echo " sudo systemctl start/stop/restart/status sshsvc.service"
|
|
||||||
echo " or run: "
|
|
||||||
echo " sudo /usr/local/omc/bin/omcsvc.sh start/stop/restart/status"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
cd ${UsrLocalBinDir}
|
|
||||||
if [ ! -e ${OmcDaemon} ]; then ln -s ${OmcBinDir}/omcsvc.sh ${OmcDaemon}; fi
|
|
||||||
|
|
||||||
chmod +rx ${OMCRootDir}/bin/*
|
|
||||||
chmod +rx ${OMCRootDir}/*
|
|
||||||
chmod +rx ${UsrLocalBinDir}/*
|
|
||||||
chmod -R 755 ${OMCRootDir}/htdocs/front
|
|
||||||
|
|
||||||
for CFile in ${CFileList}; do
|
|
||||||
if [ ! -e "${OMCEtcDir}/${CFile}" ]; then
|
|
||||||
cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}
|
|
||||||
else
|
|
||||||
# mv -f ${OMCEtcDir}/${CFile} ${OMCEtcDir}/${CFile}.bak
|
|
||||||
# cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}
|
|
||||||
if [ -e "${OMCBinDir}/upgconf.sh" ]; then
|
|
||||||
${OMCBinDir}/upgconf.sh
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -e "${FERootDir}/config.js" ]; then
|
|
||||||
cp ${FERootDir}/default/config.js ${FERootDir};
|
|
||||||
fi
|
|
||||||
|
|
||||||
for LogoFile in ${LogoFileList}; do
|
|
||||||
if [ ! -e "${OMCStaticDir}/logo/${LogoFile}" ]; then
|
|
||||||
cp ${OMCStaticDir}/omc.d/logo/${LogoFile} ${OMCStaticDir}/logo;
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if ! id -u omc >/dev/null 2>&1 ; then
|
|
||||||
useradd -d /opt/omc -m -s /bin/bash -pomc123 omc;
|
|
||||||
mkdir -p /opt/omc/ftp
|
|
||||||
else
|
|
||||||
echo "user omc exist";
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -e "${NginxConfDir}/omc.conf" ]; then
|
|
||||||
mkdir -p ${NginxConfDir}
|
|
||||||
cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir};
|
|
||||||
fi
|
|
||||||
|
|
||||||
systemctl daemon-reload
|
|
||||||
|
|
||||||
# disable auto upgrade
|
|
||||||
systemctl disable --now unattended-upgrades
|
|
||||||
|
|
||||||
systemctl enable restagent.service
|
|
||||||
systemctl enable sshsvc.service
|
|
||||||
|
|
||||||
systemctl daemon-reload
|
|
||||||
|
|
||||||
# read environment parameter and to do
|
|
||||||
if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then
|
|
||||||
echo "M parameter: $M_PARAM"
|
|
||||||
if [ -n "$C_PARAM" ]; then
|
|
||||||
echo "C parameter: $C_PARAM"
|
|
||||||
${OMCRootDir}/bin/setomc.sh -m $M_PARAM -c $C_PARAM
|
|
||||||
else
|
|
||||||
${OMCRootDir}/bin/setomc.sh -m $M_PARAM
|
|
||||||
fi
|
|
||||||
# exit while failed to run setomc.sh
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "setomc.sh execution failed. Exiting."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -n "Starting OMC service ... "
|
|
||||||
systemctl start sshsvc.service
|
|
||||||
systemctl start restagent.service
|
|
||||||
echo "done"
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# !/bin/bash
|
|
||||||
|
|
||||||
#rm -rf /usr/local/omc
|
|
||||||
rm -rf /etc/nginx/conf.d/omc.conf
|
|
||||||
rm -f /usr/local/bin/omcd
|
|
||||||
|
|
||||||
systemctl daemon-reload
|
|
||||||
|
|
||||||
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
|
|
||||||
echo -n "Stopping OMC service ... "
|
|
||||||
systemctl stop restagent.service
|
|
||||||
systemctl stop sshsvc.service
|
|
||||||
echo "done"
|
|
||||||
fi
|
|
||||||
|
|
||||||
systemctl disable restagent.service
|
|
||||||
systemctl disable sshsvc.service
|
|
||||||
|
|
||||||
systemctl daemon-reload
|
|
||||||
@@ -1,17 +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 sshsvc.service
|
|
||||||
echo "done"
|
|
||||||
fi
|
|
||||||
|
|
||||||
FERootDir=/usr/local/omc/htdocs/front
|
|
||||||
|
|
||||||
# apt-get install zip
|
|
||||||
# clear front-end old hash js files
|
|
||||||
rm -rf ${FERootDir}/assets
|
|
||||||
rm -rf ${FERootDir}/js
|
|
||||||
rm -rf ${FERootDir}/index.*.js
|
|
||||||
@@ -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/axCYbU4q8CvAsT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hr2jbsnoM71QlcGv9RjxMPNep+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 AAAAB3NzaC1yc2EAA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||
WAbZ7dcbv1lLyIlr4Yf33LgAChxJQTGNad771cwYFrtwTYk16O0Mdv302L0DgDTJUvhzJb
|
|
||||||
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: omc_db
|
|
||||||
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
|
|
||||||
backup: /usr/local/omc/database
|
|
||||||
|
|
||||||
# Redis data cache
|
|
||||||
redis:
|
|
||||||
dataSource:
|
|
||||||
# OMC system db
|
|
||||||
default:
|
|
||||||
port: 6379 # Redis port
|
|
||||||
host: "127.0.0.1" # Redis host
|
|
||||||
password: "helloearth"
|
|
||||||
db: 10 # Redis db_num
|
|
||||||
# UDM sub/auth db
|
|
||||||
udmuser:
|
|
||||||
port: 6379 # Redis port
|
|
||||||
host: "127.0.0.1"
|
|
||||||
password: "helloearth"
|
|
||||||
db: 0 # Redis db_num
|
|
||||||
# used to specify the default data source for multiple data resourece
|
|
||||||
defaultDataSourceName: "default"
|
|
||||||
|
|
||||||
# sleep: time delay for after write buffer (millisecond)
|
|
||||||
# deadLine: timeout for io read and write (second)
|
|
||||||
mml:
|
|
||||||
port: 4100
|
|
||||||
port2: 5002
|
|
||||||
sleep: 200
|
|
||||||
deadLine: 10
|
|
||||||
sizeRow: 600
|
|
||||||
sizeCol: 128
|
|
||||||
bufferSize: 65535
|
|
||||||
user: admin
|
|
||||||
password: admin
|
|
||||||
mmlHome: ./mmlhome
|
|
||||||
|
|
||||||
# NE config
|
|
||||||
ne:
|
|
||||||
user: omcuser
|
|
||||||
etcdir: /usr/local/etc
|
|
||||||
bindir: /usr/local/bin
|
|
||||||
omcdir: /usr/local/omc
|
|
||||||
scpdir: /tmp
|
|
||||||
licensedir: /usr/local/etc/{neType}/license
|
|
||||||
# backup etc list of IMS, does not contain spaces
|
|
||||||
etcListIMS: '{*.yaml,mmtel,vars.cfg}'
|
|
||||||
etcListDefault: '{*.yaml,*.conf,*.cfg}'
|
|
||||||
# true/false to overwrite config file when dpkg ne software
|
|
||||||
dpkgOverwrite: false
|
|
||||||
# dpkg timeout (second)
|
|
||||||
dpkgTimeout: 180
|
|
||||||
|
|
||||||
# chk2ne: true/false, if put OmcNeConfig parameters to NE
|
|
||||||
omc:
|
|
||||||
uriPrefix: "/omc/rest"
|
|
||||||
neType: OMC
|
|
||||||
neId: 001
|
|
||||||
rmUID: 4400HX101
|
|
||||||
neName: OMC
|
|
||||||
province: ""
|
|
||||||
vendor: ""
|
|
||||||
dn: ""
|
|
||||||
chk2ne: false
|
|
||||||
sn: "-"
|
|
||||||
checksign: false
|
|
||||||
rootDir: /usr/local/omc
|
|
||||||
binDir: /usr/local/omc/bin
|
|
||||||
backup: /usr/local/omc/backup
|
|
||||||
upload: /usr/local/omc/upload
|
|
||||||
frontUpload: /usr/local/omc/htdocs/front/upload
|
|
||||||
frontTraceDir: /usr/local/omc/htdocs/front/trace
|
|
||||||
software: /usr/local/omc/software
|
|
||||||
license: /usr/local/omc/license
|
|
||||||
gtpUri: gtp:192.168.2.119:32152
|
|
||||||
checkContentType: false
|
|
||||||
testMode: false
|
|
||||||
rbacMode: true
|
|
||||||
runDir: /usr/local/omc/run
|
|
||||||
cmdTimeout: 120
|
|
||||||
|
|
||||||
# Alarm module setting
|
|
||||||
# Forward interface:
|
|
||||||
# email/sms/smsc
|
|
||||||
alarm:
|
|
||||||
forwardAlarm: true
|
|
||||||
email:
|
|
||||||
smtp: smtp.xxx.com
|
|
||||||
port: 25
|
|
||||||
user: smtpuser@xxx.com
|
|
||||||
password: xxxxxx
|
|
||||||
# TLS skip verify: true/false
|
|
||||||
tlsSkipVerify: true
|
|
||||||
smProxy: smsc
|
|
||||||
sms:
|
|
||||||
apiURL: http://smsc.xxx.com
|
|
||||||
accessKeyID: xxx
|
|
||||||
accessKeySecret: xxx
|
|
||||||
signName: XXX SMSC
|
|
||||||
templateCode: 1000
|
|
||||||
smsc:
|
|
||||||
addr: "192.168.13.114:2775"
|
|
||||||
systemID: "alarmsmsfw"
|
|
||||||
password: "omc123"
|
|
||||||
systemType: ""
|
|
||||||
|
|
||||||
# User authorized information
|
|
||||||
# crypt: mysql/md5/bcrypt
|
|
||||||
# token: true/false to check accessToken
|
|
||||||
# expires for session, unit: second
|
|
||||||
# Support single/multiple session of user
|
|
||||||
#
|
|
||||||
auth:
|
|
||||||
crypt: bcrypt
|
|
||||||
token: true
|
|
||||||
expires: 1800
|
|
||||||
session: multiple
|
|
||||||
publicKey: /usr/local/omc/etc/certs/omc
|
|
||||||
privateKey: /usr/local/omc/etc/certs/omc
|
|
||||||
|
|
||||||
# Parameter for limit number
|
|
||||||
# rmuid_maxnum: the max number of rmUID, default: 50
|
|
||||||
# alarmid_maxnum: the max number of AlarmID, default: 50
|
|
||||||
# pmid_maxnum: the max number of pmID, default: 50
|
|
||||||
# subid_maxnum: the max number of subscription ID, default: 20
|
|
||||||
# uri_maxlen: the max length of uri, default: 8192
|
|
||||||
# rmuid_regexp: regexp pattern of rmUID
|
|
||||||
params:
|
|
||||||
rmuidmaxnum: 50
|
|
||||||
alarmidmaxnum: 50
|
|
||||||
pmidmaxnum: 50
|
|
||||||
subidmaxnum: 20
|
|
||||||
urimaxlen: 2100000
|
|
||||||
rmuidregexp: "[0-9]{4}[A-Z]{2}[A-Z]{2}[0-9A-Z]{1}[0-9A-Z]{3}[0-9A-Z]{1,16}"
|
|
||||||
|
|
||||||
testConfig:
|
|
||||||
enabled: false
|
|
||||||
file: /usr/local/omc/etc/testconfig.yaml
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
## OMC Database Diagrams
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### Diagram of OMC database
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### OMC Database Table Creation Script
|
|
||||||
|
|
||||||
Refer to omc_db.sql
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
galera-4
|
|
||||||
libcgi-fast-perl
|
|
||||||
libcgi-pm-perl
|
|
||||||
libclone-perl
|
|
||||||
libconfig-inifiles-perl
|
|
||||||
libdaxctl1
|
|
||||||
libdbd-mysql-perl
|
|
||||||
libdbi-perl
|
|
||||||
libencode-locale-perl
|
|
||||||
libfcgi-bin
|
|
||||||
libfcgi-perl
|
|
||||||
libfcgi0ldbl
|
|
||||||
libhtml-parser-perl
|
|
||||||
libhtml-tagset-perl
|
|
||||||
libhtml-template-perl
|
|
||||||
libhttp-date-perl
|
|
||||||
libhttp-message-perl
|
|
||||||
libio-html-perl
|
|
||||||
liblwp-mediatypes-perl
|
|
||||||
libmariadb3
|
|
||||||
libmysqlclient21
|
|
||||||
libndctl6
|
|
||||||
libpmem1
|
|
||||||
libsnappy1v5
|
|
||||||
libtimedate-perl
|
|
||||||
liburi-perl
|
|
||||||
liburing2
|
|
||||||
mariadb-client
|
|
||||||
mariadb-client-10.6
|
|
||||||
mariadb-client-core-10.6
|
|
||||||
mariadb-common
|
|
||||||
mariadb-server
|
|
||||||
mariadb-server-10.6
|
|
||||||
mariadb-server-core-10.6
|
|
||||||
mysql-common
|
|
||||||
socat
|
|
||||||
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 376 KiB |
|
Before Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 394 KiB |
|
Before Width: | Height: | Size: 399 KiB |
|
Before Width: | Height: | Size: 965 KiB |
|
Before Width: | Height: | Size: 379 KiB |
|
Before Width: | Height: | Size: 378 KiB |
|
Before Width: | Height: | Size: 378 KiB |
|
Before Width: | Height: | Size: 38 KiB |