deveice.config 1.1 KB

1234567891011121314151617181920212223242526272829
  1. {
  2. "description":{
  3. "interval":"间隔发送报警时间,单位s/秒",
  4. "ip":"设备端ip地址",
  5. "times":"发送的snmp Alarm是否包含时间,1为需要/0为不需要",
  6. "send_bind_ip":"发送trap程序需要绑定的地址",
  7. "dst_ip":"trap目的地址",
  8. "receive_bind_ip":"接收绑定地址",
  9. "port_index":"里面的数字表示着moxa硬件上网络插头上的数字标号,例如port_index:4,5表示忽略4,5这两个端口标号出现的Link Down Trap或者Link up Trap信息.",
  10. "module-identity":"对应着mib文件里的MODULE-IDENTITY,例如enterprises.8691.7.7,enterprises.8691.7.70,7和70就是module-identity的值",
  11. "system":"暂时区分h3c系统和moxa系统,在receive_bind_ip里设置端口需要留意h3c的端口号为1622,moxa为162。h3c系统只需要关注receive_bind_ip和system即可。"
  12. },
  13. "white_list":[
  14. {
  15. "ip":"192.168.12.253",
  16. "port_index":"{3,0}"
  17. }
  18. ],
  19. "dst_ip":[
  20. "192.168.31.10:162",
  21. "192.168.31.9:163"
  22. ],
  23. "system":"moxa",
  24. "times":1,
  25. "interval":2,
  26. "receive_bind_ip":"udp:192.168.31.181:162",
  27. "send_bind_ip":"192.168.31.181",
  28. "module-identity":"7,98,70,100,106,117,95"
  29. }