add: 提交
This commit is contained in:
BIN
nbi/nbi_alarm/bin/nbi_alarm
Normal file
BIN
nbi/nbi_alarm/bin/nbi_alarm
Normal file
Binary file not shown.
22
nbi/nbi_alarm/etc/nbi_alarm.json
Normal file
22
nbi/nbi_alarm/etc/nbi_alarm.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"channel": [
|
||||
{
|
||||
"tcp_port": 31232,
|
||||
"bind_flag": "SMF#SZ_01",
|
||||
"province": "BJ",
|
||||
"device_code": "0001"
|
||||
},
|
||||
{
|
||||
"tcp_port": 31233,
|
||||
"bind_flag": "UDM#SZ_03",
|
||||
"province": "BJ",
|
||||
"device_code": "0002"
|
||||
}
|
||||
],
|
||||
"mysql": "root:1000omc@kp!@tcp(127.0.0.1:33066)/omc_db?charset=utf8mb4&parseTime=True&loc=Local",
|
||||
"ftp_root": "/opt/omc/ftp/fm",
|
||||
"mame":"nbi alarm agent",
|
||||
"heartbeat_max": 180,
|
||||
"log_dir": "/usr/local/omc/log/nbi_log",
|
||||
"log_file":"nbi_alarm.log"
|
||||
}
|
||||
43
nbi/nbi_alarm/readme.txt
Normal file
43
nbi/nbi_alarm/readme.txt
Normal file
@@ -0,0 +1,43 @@
|
||||
|
||||
项目交付文件:
|
||||
fpt://192.168.0.229/home/guodeng/bin
|
||||
|
||||
服务启动:
|
||||
./nb_alarm_agent -c /home/guodeng/omc/conf/nb_alarm_agent.json
|
||||
|
||||
配置文件详情:
|
||||
{
|
||||
/* 通道配置项*/
|
||||
"channel": [
|
||||
{
|
||||
"tcp_port": 31232, //通道TCP监听端口
|
||||
"bind_flag": "SMF#SZ_01", //通道Bind网元(格式为 ne_type#ne_id)
|
||||
"province": "BJ", //网元所在省份
|
||||
"device_code": "0001" //网元主机编码
|
||||
},
|
||||
{
|
||||
"tcp_port": 31233, //通道TCP监听端口
|
||||
"bind_flag": "UDM#SZ_03", //通道Bind网元(格式为 ne_type#ne_id)
|
||||
"province": "BJ", //网元所在省份
|
||||
"device_code": "0002" //网元主机编码
|
||||
}
|
||||
],
|
||||
|
||||
// 数据库配置
|
||||
"mysql": "root:1000omc@kp!@tcp(192.168.0.229:33066)/omc_db?charset=utf8mb4&parseTime=True&loc=Local",
|
||||
|
||||
// FTP服务器根目录
|
||||
"ftp_root": "data/ftp",
|
||||
|
||||
//服务名称
|
||||
"mame":"north agent",
|
||||
|
||||
// 心跳保活时间, 如果服务器检查client 在超过心跳时间没有数据(心跳数据或者业务数据)发送,则断开连接
|
||||
"heartbeat_max": 180,
|
||||
|
||||
// 日志存放目录
|
||||
"log_dir": "./omc_log",
|
||||
|
||||
// 日志文件名称
|
||||
"log_file":"omc.log"
|
||||
}
|
||||
Reference in New Issue
Block a user