Rich Bennett | 9847631 | 2018-08-25 10:43:15 -0400 | [diff] [blame] | 1 | .. This work is licensed under a Creative Commons Attribution 4.0 International License. |
| 2 | .. http://creativecommons.org/licenses/by/4.0 |
| 3 | |
| 4 | Architecture |
| 5 | ============ |
| 6 | |
| 7 | **SNMPTRAP** (or "trapd", as in trap daemon) is a network facing ONAP platform |
| 8 | component. |
| 9 | |
| 10 | The simple network management protocol (or "SNMP", for short) is a |
| 11 | standardized communication protocol used between managed devices (physical, |
| 12 | virtual - or anything in between!) and a management system. It is used to |
| 13 | relay data that can be valuable in the operation, fault identification and |
| 14 | planning processes of all networks. |
| 15 | |
| 16 | It is the "front line" of management in all environments. |
| 17 | |
| 18 | SNMP utilizes a message called a "trap" to inform SNMP managers of abnormal |
| 19 | or changed conditions on a resource that is running a SNMP agent. These |
| 20 | agents can run on physical or virtual resources (no difference in reporting) |
| 21 | and can notify on anything from hardware states, resource utilization, |
| 22 | software processes or anything else specific to the agent's environment. |
| 23 | |
| 24 | |
| 25 | Capabilities |
| 26 | ------------ |
| 27 | |
| 28 | **SNMPTRAP** receives simple network management protocol ("SNMP") traps |
| 29 | and publishes them to a message router (DMAAP/MR) instance based on |
| 30 | attributes obtained from configuration binding service ("CBS"). |
| 31 | |
| 32 | .. blockdiag:: |
| 33 | |
| 34 | blockdiag layers { |
| 35 | orientation = portrait |
| 36 | snmp_agent_1 -> SNMPTRAP; |
| 37 | snmp_agent_2 -> SNMPTRAP; |
| 38 | snmp_agent_n -> SNMPTRAP; |
Ladue, David (dl3158) | b4cb363 | 2018-09-05 12:15:38 -0400 | [diff] [blame] | 39 | config_binding_service -> SNMPTRAP; |
| 40 | SNMPTRAP -> dmaap_mr; |
Rich Bennett | 9847631 | 2018-08-25 10:43:15 -0400 | [diff] [blame] | 41 | |
| 42 | group l1 { |
| 43 | color = orange; |
| 44 | snmp_agent_1; snmp_agent_2; snmp_agent_n; |
| 45 | } |
| 46 | group l2 { |
| 47 | color = blue; |
| 48 | SNMPTRAP; |
| 49 | } |
| 50 | group l3 { |
| 51 | color = orange; |
Ladue, David (dl3158) | b4cb363 | 2018-09-05 12:15:38 -0400 | [diff] [blame] | 52 | dmaap_mr; |
Rich Bennett | 9847631 | 2018-08-25 10:43:15 -0400 | [diff] [blame] | 53 | } |
| 54 | group l4 { |
| 55 | color = gray; |
Ladue, David (dl3158) | b4cb363 | 2018-09-05 12:15:38 -0400 | [diff] [blame] | 56 | config_binding_service; |
Rich Bennett | 9847631 | 2018-08-25 10:43:15 -0400 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | } |
| 60 | |
| 61 | |
| 62 | Interactions |
| 63 | ------------ |
| 64 | |
| 65 | |
| 66 | Traps are published to DMAAP/MR in a json format. Once traps are published |
| 67 | to a DMAAP/MR instance, they are available to consumers that are |
| 68 | subscribed to the topic they were published to. |
| 69 | |
| 70 | |
| 71 | Usage Scenarios |
| 72 | --------------- |
| 73 | |
Ladue, David (dl3158) | b4cb363 | 2018-09-05 12:15:38 -0400 | [diff] [blame] | 74 | **SNMPTRAP** runs in a docker container based on python 3.6. Running |
Rich Bennett | 9847631 | 2018-08-25 10:43:15 -0400 | [diff] [blame] | 75 | an instance of **SNMPTRAP** will result in arriving traps being published |
| 76 | to the topic specified by config binding services. If CBS is not present, |
| 77 | SNMPTRAP will look for or a JSON configuration file specified via the |
Ladue, David (dl3158) | b4cb363 | 2018-09-05 12:15:38 -0400 | [diff] [blame] | 78 | environment variable CBS_SIM_JSON at startup. Note that relative paths |
Rich Bennett | 9847631 | 2018-08-25 10:43:15 -0400 | [diff] [blame] | 79 | will be located from the bin (<SNMPTRAP base directory>/bin directory. E.g. |
| 80 | |
| 81 | .. code-block:: bash |
| 82 | |
| 83 | CBS_SIM_JSON=../etc/snmptrapd.json |
| 84 | |