author | Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM> |
Fri, 11 Dec 2015 03:49:26 -0800 | |
changeset 5867 | 445e2cf1c845 |
parent 4143 | components/net-snmp/patches/054.20479968.net-snmp-config.in.patch@bba1a37c4d02 |
permissions | -rw-r--r-- |
4143
bba1a37c4d02
20479968 net-snmp-config --create-snmpv3-user in GZ fails when snmpd is running in NGZ
Sowrabha H G<sowrabha.hg@oracle.com>
parents:
diff
changeset
|
1 |
This patch fixes a Solaris specific issue related to user creation |
bba1a37c4d02
20479968 net-snmp-config --create-snmpv3-user in GZ fails when snmpd is running in NGZ
Sowrabha H G<sowrabha.hg@oracle.com>
parents:
diff
changeset
|
2 |
in snmpv3. The patch has been submitted to the community but has |
bba1a37c4d02
20479968 net-snmp-config --create-snmpv3-user in GZ fails when snmpd is running in NGZ
Sowrabha H G<sowrabha.hg@oracle.com>
parents:
diff
changeset
|
3 |
not been accepted yet. |
bba1a37c4d02
20479968 net-snmp-config --create-snmpv3-user in GZ fails when snmpd is running in NGZ
Sowrabha H G<sowrabha.hg@oracle.com>
parents:
diff
changeset
|
4 |
|
bba1a37c4d02
20479968 net-snmp-config --create-snmpv3-user in GZ fails when snmpd is running in NGZ
Sowrabha H G<sowrabha.hg@oracle.com>
parents:
diff
changeset
|
5 |
The details can be found in the following location |
bba1a37c4d02
20479968 net-snmp-config --create-snmpv3-user in GZ fails when snmpd is running in NGZ
Sowrabha H G<sowrabha.hg@oracle.com>
parents:
diff
changeset
|
6 |
https://sourceforge.net/p/net-snmp/bugs/2607 |
bba1a37c4d02
20479968 net-snmp-config --create-snmpv3-user in GZ fails when snmpd is running in NGZ
Sowrabha H G<sowrabha.hg@oracle.com>
parents:
diff
changeset
|
7 |
|
5867
445e2cf1c845
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
4143
diff
changeset
|
8 |
--- a/net-snmp-create-v3-user.in Wed Feb 19 16:36:42 2014 |
445e2cf1c845
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
4143
diff
changeset
|
9 |
+++ b/net-snmp-create-v3-user.in Wed Dec 23 22:47:04 2015 |
445e2cf1c845
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
4143
diff
changeset
|
10 |
@@ -28,7 +28,7 @@ |
445e2cf1c845
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
4143
diff
changeset
|
11 |
NSC_SRCDIR="NET-SNMP-SOURCE-DIR" |
4143
bba1a37c4d02
20479968 net-snmp-config --create-snmpv3-user in GZ fails when snmpd is running in NGZ
Sowrabha H G<sowrabha.hg@oracle.com>
parents:
diff
changeset
|
12 |
fi |
bba1a37c4d02
20479968 net-snmp-config --create-snmpv3-user in GZ fails when snmpd is running in NGZ
Sowrabha H G<sowrabha.hg@oracle.com>
parents:
diff
changeset
|
13 |
|
5867
445e2cf1c845
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
4143
diff
changeset
|
14 |
-if @PSCMD@ | egrep ' snmpd *$' > /dev/null 2>&1 ; then |
445e2cf1c845
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
4143
diff
changeset
|
15 |
+if " /usr/bin/ps -z `zonename` | egrep ' snmpd *$' " > /dev/null 2>&1 ; then |
445e2cf1c845
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
4143
diff
changeset
|
16 |
echo "Apparently at least one snmpd demon is already running." |
445e2cf1c845
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
4143
diff
changeset
|
17 |
echo "You must stop them in order to use this command." |
445e2cf1c845
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
4143
diff
changeset
|
18 |
exit 1 |