Hi Giuseppe,
Thanks for the reply.
For getting the user details from a remote system, we may do SNMPWALK on this
OID.
But if on the same device where snmp agent is running (where we are doing the
SNMPv3 configuration), if we want to get the user details, do we need to do
snmpwalk on localhost for this OID or is there any other method also.
Currently I am doing the SNMPv3 configuration using snmpd.conf file and so
thinking to implement the "show user details" functions by reading the
snmpd.conf file. But is it the correct method which will work in all cases, or
is there any other better methods.
thanks and regards
S Sarath
On Thursday, November 21, 2013 3:08 PM, giuseppe de vito <giusepp...@gmail.com>
wrote:
Hello,
SNMPv3 users are stored in the usmUserTable (OID=.1.3.6.1.6.3.15.1.2.2).
This table has the following entries
usmUserTable
+----usmUserEntry(1)
+-----usmUserEngineID(1)
+-----usmUserName (2)
+-----usmUserSecurityName (3)
+----- ..... (see
http://www.net-snmp.org/wiki/index.php/TUT:SNMPv3_Options for details
You are looking for the usmUserSecurityName and, for a complete list of such
items, you can walk the usmUserTable over
the same field; for example you can execute
snmpwalk .1.3.6.1.6.3.15.1.2.2.1.3
to obtain all configured users in the usmUserTable.
I hope this will help.
2013/11/21 sarath azad <saraths...@yahoo.co.in>
Hello,
>
>
>Could you please tell, in a program, what is the best method to show all the
>SNMPv3 users configured?
>
>
>Is it a good, to write a function to read the snmpd.conf file to show all the
>configured SNMPv3 users?
>Or is there any other API to get the list of SNMPv3 users configured?
>
>
>Thanks and regards
>S Sarath
>------------------------------------------------------------------------------
>Shape the Mobile Experience: Free Subscription
>Software experts and developers: Be at the forefront of tech innovation.
>Intel(R) Software Adrenaline delivers strategic insight and game-changing
>conversations that shape the rapidly evolving mobile landscape. Sign up now.
>http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
>_______________________________________________
>Net-snmp-users mailing list
>net-snmp-us...@lists.sourceforge.net
>Please see the following page to unsubscribe or change other options:
>https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders