12 lines
455 B
Plaintext
12 lines
455 B
Plaintext
--- net-snmp-create-v3-user.in.orig 2023-08-15 20:32:01 UTC
|
|
+++ net-snmp-create-v3-user.in
|
|
@@ -3,7 +3,7 @@
|
|
# this shell script is designed to add new SNMPv3 users
|
|
# to Net-SNMP config file.
|
|
|
|
-if @PSCMD@ | @EGREP@ ' snmpd *$' > /dev/null 2>&1 ; then
|
|
+if @PSCMD@ -J 0 | egrep ' snmpd *$' > /dev/null 2>&1 ; then
|
|
echo "Apparently at least one snmpd daemon is already running."
|
|
echo "You must stop them in order to use this command."
|
|
exit 1
|