Discussion:
snmp v3 adding user
Pranesh Kulkarni
2016-12-20 09:12:16 UTC
Permalink
Hi All,

When creating new user for snmpv3 using net-snmp-create-v3-user command,

# net-snmp-create-v3-user -A asdfghjkl -X qwertyuio -x DES -a MD5 abcd
adding the following line to /var/lib/net-snmp/snmpd.conf:
createUser abcd MD5 "asdfghjkl" DES qwertyuio
adding the following line to /etc/snmp/snmpd.conf:
rwuser abcd

what is difference in the files /var/net-snmp/snmpd/conf( in some tutorials
they have mentioned this file) and /var/lib/net-snmp/snmpd.conf
--
Thanks,
Pranesh
Pushpa Thimmaiah
2016-12-28 06:26:21 UTC
Permalink
Hi,

Both /var/net-snmp/snmpd/conf and /var/lib/net-snmp/snmpd.conf are snmp
persistent config files , only snmp persistent
directory are different.
I have seen latest version of net-snmp set '/var/lib/net-snmp/' as default
snmp persistent directory and few (may be old)
net-snmp sets '/var/net-snmp/' as default persistent directory.

Check default persistent directory in config options 'net-snmp-config
--configure'

Thanks,
Pushpa.T
Post by Pranesh Kulkarni
Hi All,
When creating new user for snmpv3 using net-snmp-create-v3-user command,
# net-snmp-create-v3-user -A asdfghjkl -X qwertyuio -x DES -a MD5 abcd
createUser abcd MD5 "asdfghjkl" DES qwertyuio
rwuser abcd
what is difference in the files /var/net-snmp/snmpd/conf( in some
tutorials they have mentioned this file) and /var/lib/net-snmp/snmpd.conf
--
Thanks,
Pranesh
------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Net-snmp-users mailing list
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Pranesh Kulkarni
2016-12-28 06:38:43 UTC
Permalink
Hi Pushpa ,

Thanks for clearing doubt.

Another query .

I am using my own custom snmpd.conf , file /etc/snmp/snmpd_myagent.conf . I
am starting agent with -C -c /etc/snmp/snmpd_myagent.conf

I am adding v3 user to custom config file and in
/var/lib/net-snmp/snmpd.conf

user is not geting added


On Wed, Dec 28, 2016 at 11:56 AM, Pushpa Thimmaiah <
Post by Pushpa Thimmaiah
Hi,
Both /var/net-snmp/snmpd/conf and /var/lib/net-snmp/snmpd.conf are snmp
persistent config files , only snmp persistent
directory are different.
I have seen latest version of net-snmp set '/var/lib/net-snmp/' as default
snmp persistent directory and few (may be old)
net-snmp sets '/var/net-snmp/' as default persistent directory.
Check default persistent directory in config options 'net-snmp-config
--configure'
Thanks,
Pushpa.T
Post by Pranesh Kulkarni
Hi All,
When creating new user for snmpv3 using net-snmp-create-v3-user command,
# net-snmp-create-v3-user -A asdfghjkl -X qwertyuio -x DES -a MD5 abcd
createUser abcd MD5 "asdfghjkl" DES qwertyuio
rwuser abcd
what is difference in the files /var/net-snmp/snmpd/conf( in some
tutorials they have mentioned this file) and /var/lib/net-snmp/snmpd.conf
--
Thanks,
Pranesh
------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Net-snmp-users mailing list
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
--
Thanks,
Pranesh
Pushpa Thimmaiah
2016-12-28 07:22:06 UTC
Permalink
Hi Pranesh,

User either net-snmp-create-v3-user or 'createUser' entry to create snmpv3
user , but not both I guess.

Are you following below steps
1. stop snmpd
2. add createUser entry in /var/lib/net-snmp/snmpd.conf and rwuser/rouser
entry in custom snmpd.conf
3. start snmpd
start snmpd in debug mode to check more details.

Thanks ,
Pushpa.T
Post by Pranesh Kulkarni
Hi Pushpa ,
Thanks for clearing doubt.
Another query .
I am using my own custom snmpd.conf , file /etc/snmp/snmpd_myagent.conf .
I am starting agent with -C -c /etc/snmp/snmpd_myagent.conf
I am adding v3 user to custom config file and in
/var/lib/net-snmp/snmpd.conf
user is not geting added
On Wed, Dec 28, 2016 at 11:56 AM, Pushpa Thimmaiah <
Post by Pushpa Thimmaiah
Hi,
Both /var/net-snmp/snmpd/conf and /var/lib/net-snmp/snmpd.conf are snmp
persistent config files , only snmp persistent
directory are different.
I have seen latest version of net-snmp set '/var/lib/net-snmp/' as
default snmp persistent directory and few (may be old)
net-snmp sets '/var/net-snmp/' as default persistent directory.
Check default persistent directory in config options 'net-snmp-config
--configure'
Thanks,
Pushpa.T
Post by Pranesh Kulkarni
Hi All,
When creating new user for snmpv3 using net-snmp-create-v3-user command,
# net-snmp-create-v3-user -A asdfghjkl -X qwertyuio -x DES -a MD5 abcd
createUser abcd MD5 "asdfghjkl" DES qwertyuio
rwuser abcd
what is difference in the files /var/net-snmp/snmpd/conf( in some
tutorials they have mentioned this file) and /var/lib/net-snmp/snmpd.conf
--
Thanks,
Pranesh
------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Net-snmp-users mailing list
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
--
Thanks,
Pranesh
Loading...