blob: 950badacb5b9fe421931f835b45fd220dd061c6e [file] [log] [blame]
Rich Bennett98476312018-08-25 10:43:15 -04001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3
4Administration
5==============
6
7Processes
8---------
9
10**SNMPTRAP** runs as a single (python) process inside the container. You can find it using the following commands:
11
12Inside the container
13^^^^^^^^^^^^^^^^^^^^
14.. code-block:: bash
15
16 `ps -ef | grep snmptrap.py | grep -v grep`
17
18
19Outside the container
20^^^^^^^^^^^^^^^^^^^^^
21
22.. code-block:: bash
23
24 docker exec -it <container name> `ps -ef | grep snmptrap.py | grep -v grep`
25
26
27Actions
28-------
29
30The **SNMPTRAP** container can be monitored for status by running the command:
31
32.. code-block:: bash
33
34 `bin/snmptrapd.sh status`
35
36Output from this command will be two-fold. First will be the textual response:
37
38 `Stopping snmptrap... Stopped.`
39
40Also available is the return code of the command:
41
42 0 - if command executed successfully
43 1 - if the command failed, and/or the process is not running
44
45