diff options
author | Ladue, David (dl3158) <dl3158@att.com> | 2018-09-10 18:33:42 -0400 |
---|---|---|
committer | Tony Hansen <tony@att.com> | 2018-09-14 20:09:25 +0000 |
commit | 45cd7bca7e005fbeac7fbadc4270df3b0fc4cfdf (patch) | |
tree | a66ff61e81f7001cfab84a3a31ea53e046b39b2f /snmptrap/snmptrapd.sh | |
parent | 701ab640f1d99f955ba0b14ae5bde49a3b7887f4 (diff) |
additional V3 auth and priv options
Change-Id: I23e44d497d3f77436d19aed52e8b75d07101956d
Issue-ID: DCAEGEN2-630
Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
Diffstat (limited to 'snmptrap/snmptrapd.sh')
-rwxr-xr-x | snmptrap/snmptrapd.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/snmptrap/snmptrapd.sh b/snmptrap/snmptrapd.sh index 9338fff..ab70c91 100755 --- a/snmptrap/snmptrapd.sh +++ b/snmptrap/snmptrapd.sh @@ -72,9 +72,11 @@ start_service() # standard startup? Use this: cmd="python ./snmptrapd.py" # want tracing? Use this: - # "python -m trace --trackcalls snmptrapd.py" + # cmd="python ./snmptrapd.py -v" # unbuffered io for logs? Use this: - # "python -u snmptrapd.py" + # cmd="python -u ./snmptrapd.py" + # fmdl: needs further research + # cmd="python -m trace --trackcalls ./snmptrapd.py" cd ${start_dir} @@ -155,13 +157,13 @@ status_service() if [ -r ${pid_file} ] then pid=$(cat ${pid_file}) - pgrep -a python | grep ${current_module} | grep "^${pid}" > /dev/null + pgrep -f ${current_module}.py | grep "^${pid}" > /dev/null return_code=$? if [ ${return_code} -eq 0 ] then log_msg "Status: ${current_module} running\n" - ps -p ${pid} -f | grep -v PID + ps -f -p ${pid} -f | grep -v PID return_code=0 else log_msg "Status: ERROR! ${current_module} not running.\n" |