etc default
This commit is contained in:
18
config/etc/certs/ca_cert.pem
Normal file
18
config/etc/certs/ca_cert.pem
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIC4jCCAcqgAwIBAgICB+cwDQYJKoZIhvcNAQELBQAwEjEQMA4GA1UEAxMHUm9v
|
||||||
|
dCBDQTAeFw0yMzA4MTIxODA5MzZaFw0zMzA4MTIxODA5MzZaMBIxEDAOBgNVBAMT
|
||||||
|
B1Jvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCUTcFiT1GT
|
||||||
|
Zq9ROKTuWm6IfFthO6ysthEKevwkgJGDRCwF+K6rx3j7izTDfLkXum5OPbcd/yiE
|
||||||
|
B40Yrq9X2ckX260xG9PjDmGUaq8q5sza85Gg2hrW6wiLF9y8yYK3/v7716d0y6st
|
||||||
|
jt71pH554R98m0zHkbkmrFEagWR5cEoVM6MPZp2wdDnOFBBRiB1BrbHMpAFiKJ6s
|
||||||
|
oqm1yhUwCeeR/Hs09JF8KfOFhV4qAEVvE1cviHucCEvLBaG6xBzbKvYV2iOPu6u2
|
||||||
|
o818wphqmSZYoj3/O4/EyVgvj1VdSqmkTSudiiIhLAa8/2JKrW1v7wFQjRkwNwdf
|
||||||
|
h6UR5liIUwk7AgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTAD
|
||||||
|
AQH/MB0GA1UdDgQWBBRtEF/Jyw6Zz3v0K5uA6aMOr9LXRTANBgkqhkiG9w0BAQsF
|
||||||
|
AAOCAQEAErmFo6JjEoFZv8R2gwNUq7ln+YEh2hX4myLlNDfTpYeGnn2Ge70Kmb0o
|
||||||
|
dkSyanDd9tGImcbEOttWAYve3vetvN3g+GONbf5pV7ClIbVV5MsjN/aGwj/TQWhu
|
||||||
|
ttmfu9IV2b5HyFEM61eoHVrNoWiNpbNHTu5D/XF8sg5JkseTnJF06foykzAx28i6
|
||||||
|
JcttunYn5SoWTIS9Ydu07X7uBcTeFBcKfH0xg4QlsNppiM5lIxBbp0WjQ8jyWw+b
|
||||||
|
Lyef4N6hmiaOf6P6qwaVZkEBhK6MVf1zadURuUSWAkhwGFjA7IbjbJ7OfYLXkYp3
|
||||||
|
mIrXQzjxz6AfyOcY/FsgcaDLf5xbYw==
|
||||||
|
-----END CERTIFICATE-----
|
||||||
27
config/etc/certs/private_key.pem
Normal file
27
config/etc/certs/private_key.pem
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
-----BEGIN RSA PRIVATE KEY-----
|
||||||
|
MIIEpAIBAAKCAQEAlE3BYk9Rk2avUTik7lpuiHxbYTusrLYRCnr8JICRg0QsBfiu
|
||||||
|
q8d4+4s0w3y5F7puTj23Hf8ohAeNGK6vV9nJF9utMRvT4w5hlGqvKubM2vORoNoa
|
||||||
|
1usIixfcvMmCt/7++9endMurLY7e9aR+eeEffJtMx5G5JqxRGoFkeXBKFTOjD2ad
|
||||||
|
sHQ5zhQQUYgdQa2xzKQBYiierKKptcoVMAnnkfx7NPSRfCnzhYVeKgBFbxNXL4h7
|
||||||
|
nAhLywWhusQc2yr2Fdojj7urtqPNfMKYapkmWKI9/zuPxMlYL49VXUqppE0rnYoi
|
||||||
|
ISwGvP9iSq1tb+8BUI0ZMDcHX4elEeZYiFMJOwIDAQABAoIBAFVJVhIsXVRwdBg4
|
||||||
|
hBkS5ogVRBPp1obIeYpWadSwH36m4M5aUlE1eKzoRGK7wlIUA8V5FmroxysOkKUG
|
||||||
|
KI5UD6Jp0fLw9uyX46QPqkb4zgyIkFI5u7+nEJW1Flt3Y3Ze7dJ1FbdEPWAIzs3j
|
||||||
|
WFzNC2eEhCYs9pZ3+HhOuzJfUitYU6ts83tazSms+7E027e/v2ubtYOzluEoj4YK
|
||||||
|
MM+ocqJOlXUOhyTATDaLs4fM567bwwFeriODQqmMIhXLf3HiBPfPYhoAlwPUV51L
|
||||||
|
bAjIPwG2/jy0yXPenYOUqSMP1i+XkyTL4eVqOLLQUI+BsEaToS8M7Lf4KRQE0vQm
|
||||||
|
uAkEA9ECgYEAxCsKXtkYXrma8UziSJgQBj88TfACyuYZBPkpBFJhffPVOreYzqmn
|
||||||
|
gsE38oHlLhCrezsxvScivS/Cwt7kgBTE9r6xmH8y2f0P3PNmtazQCqovG1gsNZ1t
|
||||||
|
9PZQmxbVUfx/7KRJ1Q5zX3x5C0P2c6XYv/1h/SQQ8PYXDhRxWZFVSikCgYEAwYlt
|
||||||
|
AoP8j6yHDMk10vJd0fKT1lztcHcQLvH3HQn2kHci2GCxySvcac49hpXTDeNdUzcQ
|
||||||
|
I9UWo1MggNojME3WHUTiZD5DYUzuNUBTkc0kMHWy79/YNAzvF9312MSyJ0NlytBQ
|
||||||
|
ISh0z0sPSxDjW+XCi/8LGu1rrremBqvh0rNIrMMCgYEAt+C8VNHcZRZHpX3y8icP
|
||||||
|
hjuKFGgwxe3Pb/j5uKJb3ktMCUEFjFo8uXTSM5AMuhRIGTgQVIS1rG5zemSh/Wj6
|
||||||
|
g2uWXyKEEQ+D6hGBqjP1wrlpdJE+x3btFdw5DFbn2HT9mF0bFAn6nXu4npWzEw5X
|
||||||
|
UQd67WT8OFIEpF8HLPTs5JkCgYBQlL6dmITU8Vm9mh1d+mnT23NwgnqeJATJ9xcT
|
||||||
|
sS1HE0Of4grEHw4Dw8pcOg+JLcyStE91C+kEEb1ryOdz2kS3JRI5+K6nWZeo9mKV
|
||||||
|
R1u1DZx2QbZMXcJDJriRC7y9mlNMsZVbaPPRx4fTknGHts9c6NEf4hC+y1pGVtSM
|
||||||
|
nPc6bwKBgQCrtb6srow9o0acH7mMmieDuqvT8DQ6rHWoizgneZTuvIo6SPO6nRnR
|
||||||
|
jfgfQkqr9IiLh9awSblQEN9fnddog7a1yS4cUZueiP5dmtFvp4B9Scnt+BoHpOLk
|
||||||
|
rrU2i7grAye4Cd003+pqhSERGCKSzb3fTSYiMypKsxeH2bs8nrRu2A==
|
||||||
|
-----END RSA PRIVATE KEY-----
|
||||||
8
config/etc/certs/public_key.pem
Normal file
8
config/etc/certs/public_key.pem
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
-----BEGIN RSA PUBLIC KEY-----
|
||||||
|
MIIBCgKCAQEAlE3BYk9Rk2avUTik7lpuiHxbYTusrLYRCnr8JICRg0QsBfiuq8d4
|
||||||
|
+4s0w3y5F7puTj23Hf8ohAeNGK6vV9nJF9utMRvT4w5hlGqvKubM2vORoNoa1usI
|
||||||
|
ixfcvMmCt/7++9endMurLY7e9aR+eeEffJtMx5G5JqxRGoFkeXBKFTOjD2adsHQ5
|
||||||
|
zhQQUYgdQa2xzKQBYiierKKptcoVMAnnkfx7NPSRfCnzhYVeKgBFbxNXL4h7nAhL
|
||||||
|
ywWhusQc2yr2Fdojj7urtqPNfMKYapkmWKI9/zuPxMlYL49VXUqppE0rnYoiISwG
|
||||||
|
vP9iSq1tb+8BUI0ZMDcHX4elEeZYiFMJOwIDAQAB
|
||||||
|
-----END RSA PUBLIC KEY-----
|
||||||
14
config/etc/default/4a_agent.yaml
Normal file
14
config/etc/default/4a_agent.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
http:
|
||||||
|
ipv4: 0.0.0.0
|
||||||
|
ipv6: ::0
|
||||||
|
port: 4040
|
||||||
|
db:
|
||||||
|
dbuser: "root"
|
||||||
|
dbpwd: "1000omc@kp!"
|
||||||
|
dbip: "127.0.0.1"
|
||||||
|
dbport: "33066"
|
||||||
|
dbname: "omc_db"
|
||||||
|
logger:
|
||||||
|
file: /usr/local/omc/log/4a/4a_agent.log
|
||||||
|
level: debug
|
||||||
|
duration: 90
|
||||||
44
config/etc/default/crontask.yaml
Normal file
44
config/etc/default/crontask.yaml
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
# file: log file name
|
||||||
|
# level: /trace/debug/info/warn/error/fatal, default: debug
|
||||||
|
# duration: saved days, default is 30 days
|
||||||
|
logger:
|
||||||
|
file: /usr/local/omc/log/crontask.log
|
||||||
|
level: trace
|
||||||
|
duration: 24
|
||||||
|
count: 90
|
||||||
|
|
||||||
|
omc:
|
||||||
|
name: RJ_OMC_S001
|
||||||
|
hosturi: http://127.0.0.1:3030
|
||||||
|
hostno: S001
|
||||||
|
province: BJ
|
||||||
|
netabbr: HX
|
||||||
|
vendor: RJ
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
file: /usr/local/omc/etc/tasks.yaml
|
||||||
|
|
||||||
|
database:
|
||||||
|
type: mysql
|
||||||
|
user: root
|
||||||
|
password: 1000omc@kp!
|
||||||
|
host: 127.0.0.1
|
||||||
|
port: 33066
|
||||||
|
name: omc_db
|
||||||
|
backup: /usr/local/omc/database
|
||||||
|
|
||||||
|
# northbound interface, cm/pm
|
||||||
|
# duration(day): saved days
|
||||||
|
# zipPeriods(day): periods of zip pm data file
|
||||||
|
northbound:
|
||||||
|
cm:
|
||||||
|
cfgfiledir: /usr/local/omc/etc/cm
|
||||||
|
xmlfiledir: /opt/omc/ftp/cm
|
||||||
|
version: V1.0.1
|
||||||
|
duration: 30
|
||||||
|
pm:
|
||||||
|
cfgfiledir: /usr/local/omc/etc/pm
|
||||||
|
xmlfiledir: /opt/omc/ftp/pm
|
||||||
|
version: V1.0.1
|
||||||
|
duration: 30
|
||||||
|
zipPeriods: 1
|
||||||
91
config/etc/default/nbi_agent.json
Normal file
91
config/etc/default/nbi_agent.json
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
{
|
||||||
|
|
||||||
|
"omc_name":"APP-BJ-OMC-002-B-01",
|
||||||
|
"oss_info":
|
||||||
|
{
|
||||||
|
"login_url": "https://172.29.247.106:8080/api/rest/securityManagement/v1/oauth/token",
|
||||||
|
"handshake_url": "https://172.29.247.106:8080/api/rest/securityManagement/v1/oauth/handshake",
|
||||||
|
"kpi_report_url": [
|
||||||
|
"https://172.29.247.106:8080/api/rest/performanceManagement/v1/kpiReport1"
|
||||||
|
],
|
||||||
|
|
||||||
|
"grant_type":"password",
|
||||||
|
"user_name":"test",
|
||||||
|
"user_key":"test",
|
||||||
|
"max_data_len":3200,
|
||||||
|
"time_out":10
|
||||||
|
},
|
||||||
|
|
||||||
|
"ca":{
|
||||||
|
"root_cert":"/usr/local/omc/etc/certs/ca_cert.pem",
|
||||||
|
"cert":"/usr/local/omc/etc/certs/public_key.pem",
|
||||||
|
"private_key":"/usr/local/omc/etc/certs/private_key.pem",
|
||||||
|
"check":true
|
||||||
|
},
|
||||||
|
"syslog":{
|
||||||
|
"facility": 16,
|
||||||
|
"severity": 6,
|
||||||
|
"vendor": "RJ",
|
||||||
|
"ne_name": "AGENT_001",
|
||||||
|
"rm_uid": "1100RJHX1AGENT001",
|
||||||
|
"ne_type": "omc",
|
||||||
|
"log_file": [
|
||||||
|
{
|
||||||
|
"table_name": "nbi_operation_log",
|
||||||
|
"log_path": "/opt/omc/ftp/log/nbi/nbi_operation.log",
|
||||||
|
"period": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table_name": "nbi_secure_log",
|
||||||
|
"log_path": "/opt/omc/ftp/log/nbi/nbi_secure.log",
|
||||||
|
"period": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mysql":"root:1000omc@kp!@tcp(172.25.97.150:33066)/omc_db?charset=utf8mb4&parseTime=True&loc=Local",
|
||||||
|
"log_dir":"/usr/local/omc/log/nbi",
|
||||||
|
"log_file":"nbi_agent.log",
|
||||||
|
"mock_report_api":true,
|
||||||
|
"web_addr":"0.0.0.0:5050",
|
||||||
|
"cm":{
|
||||||
|
"udm":[
|
||||||
|
"ManagedElement",
|
||||||
|
"UdmFunction",
|
||||||
|
"UdrFunction",
|
||||||
|
"AusfFunction",
|
||||||
|
"IPResource"
|
||||||
|
],
|
||||||
|
"upf":[
|
||||||
|
"ManagedElement",
|
||||||
|
"InventoryUnitRack",
|
||||||
|
"InventoryUnitShelf",
|
||||||
|
"InventoryUnitPack",
|
||||||
|
"InventoryUnitHost",
|
||||||
|
"InventoryUnitAccessory",
|
||||||
|
"UpfFunction",
|
||||||
|
"EpRpDynN9Upf",
|
||||||
|
"EpRpDynN3Upf",
|
||||||
|
"AmfFunction",
|
||||||
|
"SmfFunction",
|
||||||
|
"UdrFunction",
|
||||||
|
"AusfFunction",
|
||||||
|
"IPResource"
|
||||||
|
],
|
||||||
|
"smf":[
|
||||||
|
"ManagedElement",
|
||||||
|
"SmfFunction",
|
||||||
|
"AddrPool",
|
||||||
|
"EpRpDynN7Smf",
|
||||||
|
"EpRpDynN10Smf",
|
||||||
|
"IPResource"
|
||||||
|
],
|
||||||
|
"amf":[
|
||||||
|
"ManagedElement",
|
||||||
|
"AmfFunction",
|
||||||
|
"EpRpDynN8Amf",
|
||||||
|
"EpRpDynN11Amf",
|
||||||
|
"EpRpDynN12Amf",
|
||||||
|
"IPResource"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
40
config/etc/default/nbi_alarm.json
Normal file
40
config/etc/default/nbi_alarm.json
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"channel": [
|
||||||
|
{
|
||||||
|
"tcp_port": 31232,
|
||||||
|
"bind_flag": "SMF#1101RJHX1SMF01",
|
||||||
|
"province": "BJ",
|
||||||
|
"device_code": "0001"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tcp_port": 31233,
|
||||||
|
"bind_flag": "UDM#1101RJHX1UDM01",
|
||||||
|
"province": "BJ",
|
||||||
|
"device_code": "0002"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tcp_port": 31234,
|
||||||
|
"bind_flag": "AUSF#1101RJHX1AUF01",
|
||||||
|
"province": "BJ",
|
||||||
|
"device_code": "0003"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tcp_port": 31235,
|
||||||
|
"bind_flag": "AMF#1101RJHX1AMF01",
|
||||||
|
"province": "BJ",
|
||||||
|
"device_code": "0004"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tcp_port": 31236,
|
||||||
|
"bind_flag": "UPF#1101RJHX1UPF01",
|
||||||
|
"province": "BJ",
|
||||||
|
"device_code": "0005"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mysql": "root:1000omc@kp!@tcp(127.0.0.1:33066)/omc_db?charset=utf8mb4&parseTime=True&loc=Local",
|
||||||
|
"ftp_root": "/opt/omc/ftp/",
|
||||||
|
"mame":"nbi alarm agent",
|
||||||
|
"heartbeat_max": 180,
|
||||||
|
"log_dir": "/usr/local/omc/log/nbi",
|
||||||
|
"log_file":"nbi_alarm.log"
|
||||||
|
}
|
||||||
111
config/etc/default/restconf.yaml
Normal file
111
config/etc/default/restconf.yaml
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
# file: log file name
|
||||||
|
# level: /trace/debug/info/warn/error/fatal, default: debug
|
||||||
|
# duration: rotation time with xx hours, example: 1/12/24 hours
|
||||||
|
# count: rotation count of log, default is 30 rotation
|
||||||
|
logger:
|
||||||
|
file: /usr/local/omc/log/restagent.log
|
||||||
|
level: debug
|
||||||
|
duration: 24
|
||||||
|
count: 90
|
||||||
|
|
||||||
|
# rest agent listen ipv4/v6 and port, support multiple routines
|
||||||
|
# ip: 0.0.0.0 or ::0, support IPv4/v6
|
||||||
|
rest:
|
||||||
|
- ipv4: 0.0.0.0
|
||||||
|
ipv6:
|
||||||
|
port: 3030
|
||||||
|
- ipv4:
|
||||||
|
ipv6: ::0
|
||||||
|
port: 6060
|
||||||
|
|
||||||
|
database:
|
||||||
|
type: mysql
|
||||||
|
user: root
|
||||||
|
password: 1000omc@kp!
|
||||||
|
host: 127.0.0.1
|
||||||
|
port: 33066
|
||||||
|
name: omc_db
|
||||||
|
backup: /usr/loal/omc/database
|
||||||
|
|
||||||
|
mml:
|
||||||
|
port: 4100
|
||||||
|
sleep: 200
|
||||||
|
user: admin
|
||||||
|
password: admin
|
||||||
|
|
||||||
|
ne:
|
||||||
|
user: root
|
||||||
|
etcdir: /usr/local/etc
|
||||||
|
bindir: /usr/local/bin
|
||||||
|
omcdir: /usr/local/omc
|
||||||
|
licensedir: /usr/local/etc/{neType}/license
|
||||||
|
|
||||||
|
# chk2ne: true/false, if put OmcNeConfig parameters to NE
|
||||||
|
omc:
|
||||||
|
uriPrefix: /api/rest/oam
|
||||||
|
neType: OMC
|
||||||
|
neId: 001
|
||||||
|
rmUID: 1100RJHX1OMC001
|
||||||
|
neName: OMC
|
||||||
|
province: BJ
|
||||||
|
vendor: RJ
|
||||||
|
dn: 4600
|
||||||
|
chk2ne: false
|
||||||
|
sn: 13750650
|
||||||
|
checksign: false
|
||||||
|
backup: /usr/local/omc/backup
|
||||||
|
upload: /usr/local/omc/upload
|
||||||
|
frontUpload: /usr/local/omc/htdocs/front/upload
|
||||||
|
software: /usr/local/omc/software
|
||||||
|
license: /usr/local/omc/license
|
||||||
|
gtpUri: gtp:192.168.2.119:2152
|
||||||
|
checkContentType: false
|
||||||
|
testMode: true
|
||||||
|
rbacMode: true
|
||||||
|
|
||||||
|
# Alarm module setting
|
||||||
|
# Forward interface:
|
||||||
|
# email/sms
|
||||||
|
alarm:
|
||||||
|
forwardAlarm: true
|
||||||
|
email:
|
||||||
|
smtp: smtp@ruijie.com.cn
|
||||||
|
port: 25
|
||||||
|
user: smtpuser
|
||||||
|
password: smtpuser@omc
|
||||||
|
sms:
|
||||||
|
apiURL: http://smsc.ruijie.com.cn/
|
||||||
|
accessKeyID: xxxx
|
||||||
|
accessKeySecret: xxxx
|
||||||
|
signName: Ruijie SMSC
|
||||||
|
templateCode: 1000
|
||||||
|
|
||||||
|
#User authorized information
|
||||||
|
# crypt: mysql/md5/bcrypt
|
||||||
|
# token: true/false to check accessToken
|
||||||
|
# expires for session, unit: second
|
||||||
|
# Support single/multiple session of user
|
||||||
|
auth:
|
||||||
|
crypt: bcrypt
|
||||||
|
token: true
|
||||||
|
expires: 1800
|
||||||
|
session: multiple
|
||||||
|
|
||||||
|
# Parameter for limit number
|
||||||
|
# rmuid_maxnum: the max number of rmUID, default: 50
|
||||||
|
# alarmid_maxnum: the max number of AlarmID, default: 50
|
||||||
|
# pmid_maxnum: the max number of pmID, default: 50
|
||||||
|
# subid_maxnum: the max number of subscription ID, default: 20
|
||||||
|
# uri_maxlen: the max length of uri, default: 8192
|
||||||
|
# rmuid_regexp: regexp pattern of rmUID
|
||||||
|
params:
|
||||||
|
rmuidmaxnum: 50
|
||||||
|
alarmidmaxnum: 50
|
||||||
|
pmidmaxnum: 50
|
||||||
|
subidmaxnum: 20
|
||||||
|
urimaxlen: 2100000
|
||||||
|
rmuidregexp: "[0-9]{4}[A-Z]{2}[A-Z]{2}[0-9A-Z]{1}[0-9A-Z]{3}[0-9A-Z]{1,16}"
|
||||||
|
|
||||||
|
testConfig:
|
||||||
|
enabled: true
|
||||||
|
file: /usr/local/omc/etc/testconfig.yaml
|
||||||
50
config/etc/default/sshsvc.yaml
Normal file
50
config/etc/default/sshsvc.yaml
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
# file: log file name
|
||||||
|
# level: /trace/debug/info/warn/error/fatal, default: debug
|
||||||
|
# duration: rotation time with xx hours, example: 1/12/24 hours
|
||||||
|
# count: rotation count of log, default is 30 rotation
|
||||||
|
logger:
|
||||||
|
file: /usr/local/omc/log/sshsvc.log
|
||||||
|
level: debug
|
||||||
|
duration: 24
|
||||||
|
count: 30
|
||||||
|
|
||||||
|
# file: MML log file name
|
||||||
|
# duration: rotation time with xx hours, example: 1/12/24 hours
|
||||||
|
# count: rotation count of log, default is 30 rotation
|
||||||
|
# level: cmd/ret log cmd/log cmd & result
|
||||||
|
logmml:
|
||||||
|
file: /usr/local/omc/mmllog/omcmml.log
|
||||||
|
duration: 24
|
||||||
|
count: 30
|
||||||
|
level: cmd
|
||||||
|
|
||||||
|
# ssh service listen ipv4/v6 and port, support multiple routines
|
||||||
|
# ip: 0.0.0.0 or ::0, support IPv4/v6
|
||||||
|
# session: single/multiple session for one user
|
||||||
|
sshd:
|
||||||
|
listenAddr: 0.0.0.0
|
||||||
|
listenPort: 2222
|
||||||
|
privateKey: /usr/local/omc/.ssh/id_rsa
|
||||||
|
maxConnNum: 20
|
||||||
|
timeout: 1800
|
||||||
|
session: multiple
|
||||||
|
|
||||||
|
database:
|
||||||
|
type: mysql
|
||||||
|
user: root
|
||||||
|
password: 1000omc@kp!
|
||||||
|
host: 127.0.0.1
|
||||||
|
port: 33066
|
||||||
|
name: omc_db
|
||||||
|
|
||||||
|
omc:
|
||||||
|
httpUri: http://127.0.0.1:3030
|
||||||
|
userCrypt: bcrypt
|
||||||
|
|
||||||
|
ne:
|
||||||
|
port: 4100
|
||||||
|
sleep: 200
|
||||||
|
user: admin
|
||||||
|
password: admin
|
||||||
|
|
||||||
|
|
||||||
129
config/etc/default/tasks-1s.yaml
Normal file
129
config/etc/default/tasks-1s.yaml
Normal file
@@ -0,0 +1,129 @@
|
|||||||
|
# example:
|
||||||
|
# tasks:
|
||||||
|
# - name: test # task comment
|
||||||
|
# uri: # restful uri
|
||||||
|
# params: # params of url
|
||||||
|
# interval: 30 # do sometion in the interval
|
||||||
|
# unit: Seconds #Seconds/Minutes/Hours/Days/Weeks, Monday/Tuesday/.../Sunday,
|
||||||
|
# at: 00:10:00 # do at time such as xx:xx:xx
|
||||||
|
# do: HelloWorldTask # (Do what: callback function)
|
||||||
|
#
|
||||||
|
# Attention: must restart crontask after modified this file
|
||||||
|
#
|
||||||
|
tasks:
|
||||||
|
- name: test # task comment
|
||||||
|
status: Active #active/inactive
|
||||||
|
uri: # restful uri
|
||||||
|
params: # params of http url
|
||||||
|
body: # body of http request
|
||||||
|
interval: 60 # do sometion in the interval
|
||||||
|
unit: Seconds #Seconds/Minutes/Hours/Days/Weeks, Monday/Tuesday/.../Sunday,
|
||||||
|
at: 00:10:00 # do at time such as xx:xx:xx when unit such as Day/Days/Mondays...
|
||||||
|
do: TaskHelloWorld # (Do what: callback function)
|
||||||
|
- name: clear expired history alarm
|
||||||
|
uri: /api/rest/databaseManagement/v1/omc_db/alarm
|
||||||
|
params: WHERE=now()+>+ADDDATE(event_time,+interval+(SELECT+`value`+FROM+config+WHERE+config_tag='historyDuration')+day)+and+alarm_status='0'
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:10:00
|
||||||
|
do: TaskDeleteExpiredRecord
|
||||||
|
- name: clear deleted custom pm kpi
|
||||||
|
uri: /api/rest/databaseManagement/v1/omc_db/pm_custom_title
|
||||||
|
params: WHERE=now()+>+ADDDATE(update_time,+interval+(SELECT+`value`+FROM+config+WHERE+config_tag='keepPMCKpi')+day)+and+status='Deleted'
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:15:00
|
||||||
|
do: TaskDeleteExpiredRecord
|
||||||
|
- name: update expired user session
|
||||||
|
uri: /api/rest/databaseManagement/v1/omc_db/session
|
||||||
|
params: WHERE=NOW()+>+ADDDATE(shake_time,+interval+expires+second)+and+status='online'
|
||||||
|
body: '{"session":{"status":"offline"}}'
|
||||||
|
interval: 30
|
||||||
|
unit: Seconds
|
||||||
|
at:
|
||||||
|
do: TaskUpdateTable
|
||||||
|
- name: clear expired log
|
||||||
|
uri:
|
||||||
|
params:
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:50:00
|
||||||
|
do: TaskDeleteExpiredRecord
|
||||||
|
- name: Backup measure data
|
||||||
|
uri: /api/rest/databaseManagement/v1/omc_db/measure_data
|
||||||
|
params: SQL=select+*+into+outfile+'%s'+fields+terminated+by+','+escaped+by+''+optionally+enclosed+by+''+lines+terminated+by+'\n'+from+(select+'id','date','task_id','ne_name','rm_uid','ne_type','granul_option','kpi_code','kpi_id','kpi_ext','start_time','end_time','value','timestamp'+union+select+id,date,task_id,ne_name,rm_uid,ne_type,granul_option,kpi_code,kpi_id,kpi_ext,start_time,end_time,value,timestamp+from+measure_data)+b
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:20:00
|
||||||
|
do: TaskDBBackupCSVGetBySQL
|
||||||
|
- name: handshake to NF
|
||||||
|
status: Active
|
||||||
|
uri: /api/rest/systemManagement/v1/elementType/%s/objectType/systemState
|
||||||
|
params:
|
||||||
|
interval: 1
|
||||||
|
unit: Seconds
|
||||||
|
at:
|
||||||
|
do: TaskHandShakeToNF
|
||||||
|
- name: Export CM from NF
|
||||||
|
uri: /api/rest/systemManagement/v1/elementType/%s/objectType/cm
|
||||||
|
params: ne_id=%s
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:15
|
||||||
|
do: TaskExportCmFromNF
|
||||||
|
- name: Generate NRM xml file
|
||||||
|
uri:
|
||||||
|
params:
|
||||||
|
interval: 1
|
||||||
|
unit: Day
|
||||||
|
at: 00:00,06:00,12:00,18:00
|
||||||
|
do: GenCmXmlFile
|
||||||
|
- name: Task of Generate measure threshold alarm
|
||||||
|
status: Active
|
||||||
|
uri: /api/rest/faultManagement/v1/elementType/%s/objectType/alarms
|
||||||
|
params: RJHXEMSPM10200
|
||||||
|
interval: 10
|
||||||
|
unit: Seconds
|
||||||
|
at:
|
||||||
|
do: TaskGenMeasureThresholdAlarm
|
||||||
|
- name: Task of Generate license alarm
|
||||||
|
uri: /api/rest/faultManagement/v1/elementType/%s/objectType/alarms
|
||||||
|
params: RJHXEMSCM10100
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:30
|
||||||
|
do: TaskGenLicenseAlarm
|
||||||
|
- name: Task of Generate NE system state alarm
|
||||||
|
status: Active
|
||||||
|
uri: /api/rest/faultManagement/v1/elementType/%s/objectType/alarms
|
||||||
|
params: RJHXEMSSM10000
|
||||||
|
interval: 1
|
||||||
|
unit: Seconds
|
||||||
|
at:
|
||||||
|
do: TaskGenNeStateAlarm
|
||||||
|
- name: Task of Generate Measure Report Timeout
|
||||||
|
status: Active
|
||||||
|
uri: /api/rest/faultManagement/v1/elementType/%s/objectType/alarms
|
||||||
|
params: RJHXEMSPM10201
|
||||||
|
interval: 10
|
||||||
|
unit: Seconds
|
||||||
|
at:
|
||||||
|
do: TaskGenMeasureReportTimeoutAlarm
|
||||||
|
# - name: Import CM to NF
|
||||||
|
# uri: /api/rest/systemManagement/v1/elementType/udm/objectType/cm
|
||||||
|
# params: ne_id=SZ_01
|
||||||
|
# interval: 15
|
||||||
|
# unit: Seconds
|
||||||
|
# at:
|
||||||
|
# do: TaskImportCmToNF
|
||||||
|
crontab:
|
||||||
|
# - name: 每隔1分钟执行
|
||||||
|
# tab: 0 */1 * * * ? // crontab: rule like linux crontab
|
||||||
|
# do: CronHelloWorldTask // function name to call
|
||||||
|
# params:
|
||||||
|
- name: Generate PM xml file
|
||||||
|
status: Active
|
||||||
|
tab: 5,20,35,50 * * * *
|
||||||
|
do: GenPmXmlFile
|
||||||
|
uri: this is uri
|
||||||
|
params: Generating PM xml file
|
||||||
171
config/etc/default/tasks.yaml
Normal file
171
config/etc/default/tasks.yaml
Normal file
@@ -0,0 +1,171 @@
|
|||||||
|
# example:
|
||||||
|
# tasks:
|
||||||
|
# - name: test # task comment
|
||||||
|
# uri: # restful uri
|
||||||
|
# params: # params of url
|
||||||
|
# interval: 30 # do sometion in the interval
|
||||||
|
# unit: Seconds #Seconds/Minutes/Hours/Days/Weeks, Monday/Tuesday/.../Sunday,
|
||||||
|
# at: 00:10:00 # do at time such as xx:xx:xx
|
||||||
|
# do: HelloWorldTask # (Do what: callback function)
|
||||||
|
#
|
||||||
|
# Attention: must restart crontask after modified this file
|
||||||
|
#
|
||||||
|
tasks:
|
||||||
|
- name: test # task comment
|
||||||
|
status: Active #active/inactive
|
||||||
|
uri: # restful uri
|
||||||
|
params: # params of http url
|
||||||
|
body: # body of http request
|
||||||
|
interval: 60 # do sometion in the interval
|
||||||
|
unit: Seconds #Seconds/Minutes/Hours/Days/Weeks, Monday/Tuesday/.../Sunday,
|
||||||
|
at: 00:10:00 # do at time such as xx:xx:xx when unit such as Day/Days/Mondays...
|
||||||
|
do: TaskHelloWorld # (Do what: callback function)
|
||||||
|
- name: clear expired history alarm
|
||||||
|
uri: /api/rest/databaseManagement/v1/omc_db/alarm
|
||||||
|
params: WHERE=now()+>+ADDDATE(event_time,+interval+(SELECT+`value`+FROM+config+WHERE+config_tag='historyDuration')+day)+and+alarm_status='0'
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:10:00
|
||||||
|
do: TaskDeleteExpiredRecord
|
||||||
|
- name: clear deleted custom pm kpi
|
||||||
|
uri: /api/rest/databaseManagement/v1/omc_db/pm_custom_title
|
||||||
|
params: WHERE=now()+>+ADDDATE(update_time,+interval+(SELECT+`value`+FROM+config+WHERE+config_tag='keepPMCKpi')+day)+and+status='Deleted'
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:15:00
|
||||||
|
do: TaskDeleteExpiredRecord
|
||||||
|
- name: update expired user session
|
||||||
|
uri: /api/rest/databaseManagement/v1/omc_db/session
|
||||||
|
params: WHERE=NOW()+>+ADDDATE(shake_time,+interval+expires+second)+and+status='online'
|
||||||
|
body: '{"session":{"status":"offline"}}'
|
||||||
|
interval: 30
|
||||||
|
unit: Seconds
|
||||||
|
at:
|
||||||
|
do: TaskUpdateTable
|
||||||
|
- name: clear expired log
|
||||||
|
uri:
|
||||||
|
params:
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:50:00
|
||||||
|
do: TaskDeleteExpiredRecord
|
||||||
|
- name: Backup measure data
|
||||||
|
uri: /api/rest/databaseManagement/v1/omc_db/measure_data
|
||||||
|
params: SQL=select+*+into+outfile+'%s'+fields+terminated+by+','+escaped+by+''+optionally+enclosed+by+''+lines+terminated+by+'\n'+from+(select+'id','date','task_id','ne_name','rm_uid','ne_type','granul_option','kpi_code','kpi_id','kpi_ext','start_time','end_time','value','timestamp'+union+select+id,date,task_id,ne_name,rm_uid,ne_type,granul_option,kpi_code,kpi_id,kpi_ext,start_time,end_time,value,timestamp+from+measure_data)+b
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:20:00
|
||||||
|
do: TaskDBBackupCSVGetBySQL
|
||||||
|
- name: Backup operation log
|
||||||
|
uri: /api/rest/databaseManagement/v1/omc_db/operation_log
|
||||||
|
params: SQL=select+*+into+outfile+'%s'+fields+terminated+by+','+escaped+by+''+optionally+enclosed+by+''+lines+terminated+by+'\n'+from+(select+'op_id','account_name','op_ip','subsys_tag','op_type','op_content','op_result','begin_time','end_time','vnf_flag','log_time'+union+select+op_id,account_name,op_ip,subsys_tag,op_type,op_content,op_result,begin_time,end_time,vnf_flag,log_time+from+operation_log)+b
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:26:00
|
||||||
|
do: TaskDBBackupCSVGetBySQL
|
||||||
|
- name: Backup security log
|
||||||
|
uri: /api/rest/databaseManagement/v1/omc_db/security_log
|
||||||
|
params: SQL=select+*+into+outfile+'%s'+fields+terminated+by+','+escaped+by+''+optionally+enclosed+by+''+lines+terminated+by+'\n'+from+(select+'id','account_name','account_type','op_ip','op_type','op_content','op_result','op_time'+union+select+id,account_name,account_type,op_ip,op_type,op_content,op_result,op_time+from+security_log)+b
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:28:00
|
||||||
|
do: TaskDBBackupCSVGetBySQL
|
||||||
|
- name: Backup alarm log
|
||||||
|
uri: /api/rest/databaseManagement/v1/omc_db/alarm_log
|
||||||
|
params: SQL=select+*+into+outfile+'%s'+fields+terminated+by+','+escaped+by+''+optionally+enclosed+by+''+lines+terminated+by+'\n'+from+(select+'id','ne_type','ne_id','alarm_seq','alarm_id','alarm_code','alarm_status','event_time','log_time'+union+select+id,ne_type,ne_id,alarm_seq,alarm_id,alarm_code,alarm_status,event_time,log_time+from+alarm_log)+b
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:30:00
|
||||||
|
do: TaskDBBackupCSVGetBySQL
|
||||||
|
- name: handshake to NF
|
||||||
|
status: Active
|
||||||
|
uri: /api/rest/systemManagement/v1/elementType/%s/objectType/systemState
|
||||||
|
params:
|
||||||
|
interval: 10
|
||||||
|
unit: Seconds
|
||||||
|
at:
|
||||||
|
do: TaskHandShakeToNF
|
||||||
|
- name: Export CM from NF
|
||||||
|
uri: /api/rest/systemManagement/v1/elementType/%s/objectType/cm
|
||||||
|
params: ne_id=%s
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:15
|
||||||
|
do: TaskExportCmFromNF
|
||||||
|
- name: Generate NRM xml file
|
||||||
|
uri:
|
||||||
|
params:
|
||||||
|
interval: 1
|
||||||
|
unit: Day
|
||||||
|
at: 00:00,06:00,12:00,18:00
|
||||||
|
do: GenCmXmlFile
|
||||||
|
- name: Task of Generate measure threshold alarm
|
||||||
|
status: Active
|
||||||
|
uri: /api/rest/faultManagement/v1/elementType/%s/objectType/alarms
|
||||||
|
params: RJHXEMSPM10200
|
||||||
|
interval: 10
|
||||||
|
unit: Seconds
|
||||||
|
at:
|
||||||
|
do: TaskGenMeasureThresholdAlarm
|
||||||
|
- name: Task of Generate license alarm
|
||||||
|
status: Inactive
|
||||||
|
uri: /api/rest/faultManagement/v1/elementType/%s/objectType/alarms
|
||||||
|
params: RJHXEMSCM10100
|
||||||
|
interval: 1
|
||||||
|
unit: Days
|
||||||
|
at: 00:30
|
||||||
|
do: TaskGenLicenseAlarm
|
||||||
|
- name: Task of Generate NE system state alarm
|
||||||
|
status: Active
|
||||||
|
uri: /api/rest/faultManagement/v1/elementType/%s/objectType/alarms
|
||||||
|
params: RJHXEMSSM10000
|
||||||
|
interval: 5
|
||||||
|
unit: Seconds
|
||||||
|
at:
|
||||||
|
do: TaskGenNeStateAlarm
|
||||||
|
- name: Task of Generate Measure Report Timeout
|
||||||
|
status: Active
|
||||||
|
uri: /api/rest/faultManagement/v1/elementType/%s/objectType/alarms
|
||||||
|
params: RJHXEMSPM10201
|
||||||
|
interval: 10
|
||||||
|
unit: Seconds
|
||||||
|
at:
|
||||||
|
do: TaskGenMeasureReportTimeoutAlarm
|
||||||
|
- name: Monitor proces list and write system log
|
||||||
|
uri: /api/rest/databaseManagement/v1/omc_db/system_log
|
||||||
|
params:
|
||||||
|
body:
|
||||||
|
interval: 10
|
||||||
|
unit: Seconds
|
||||||
|
at:
|
||||||
|
do: TaskWriteSystemLog
|
||||||
|
- name: Copy log to /opt/omc/ftp/log
|
||||||
|
uri:
|
||||||
|
params: cp -rf /usr/local/omc/database/*.csv /opt/omc/ftp/log
|
||||||
|
interval: 10
|
||||||
|
unit: Minutes
|
||||||
|
at:
|
||||||
|
do: TaskRunShellCommand
|
||||||
|
# - name: Import CM to NF
|
||||||
|
# uri: /api/rest/systemManagement/v1/elementType/udm/objectType/cm
|
||||||
|
# params: ne_id=SZ_01
|
||||||
|
# interval: 15
|
||||||
|
# unit: Seconds
|
||||||
|
# at:
|
||||||
|
# do: TaskImportCmToNF
|
||||||
|
crontab:
|
||||||
|
# - name: 每隔1分钟执行
|
||||||
|
# tab: 0 */1 * * * ? // crontab: rule like linux crontab
|
||||||
|
# do: CronHelloWorldTask // function name to call
|
||||||
|
# params:
|
||||||
|
- name: Generate PM xml file
|
||||||
|
status: Active
|
||||||
|
tab: 5,20,35,50 * * * *
|
||||||
|
do: GenPmXmlFile
|
||||||
|
uri: this is uri
|
||||||
|
params: Generating PM xml file
|
||||||
|
# - name: Import CM to NF
|
||||||
|
# tab: 0 * * * * *
|
||||||
|
# do: TaskImportCmToNF
|
||||||
|
# uri: /api/rest/systemManagement/v1/elementType/udm/objectType/cm
|
||||||
|
# params: ne_id=SZ_01
|
||||||
19
config/etc/default/testconfig.yaml
Normal file
19
config/etc/default/testconfig.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
UDM:
|
||||||
|
capUsed: 16
|
||||||
|
featureEnabled: [N8,N10,N13,N12]
|
||||||
|
AUSF:
|
||||||
|
capUsed: 16
|
||||||
|
featureEnabled: [N12]
|
||||||
|
AMF:
|
||||||
|
capUsed: 16
|
||||||
|
featureEnabled: [N1,N2,N8,N11,N12,N14,N15]
|
||||||
|
SMF:
|
||||||
|
capUsed: 16
|
||||||
|
featureEnabled: [N4,N7,N10,N11]
|
||||||
|
UPF:
|
||||||
|
capUsed: 16
|
||||||
|
featureEnabled: [N3,N4,N6,N9]
|
||||||
|
OMC:
|
||||||
|
capUsed: 0
|
||||||
|
featureEnabled: []
|
||||||
|
|
||||||
Reference in New Issue
Block a user