Hi Giuseppe,

Thanks for the inputs.

thanks and regards
S Sarath



On Friday, November 22, 2013 4:37 PM, giuseppe de vito <giusepp...@gmail.com> 
wrote:
 
Hi,
you can do SNMPWALK on localhost.
For example, if you want to use snmpwalk application from a linux shell you can 
use the command

snmpwalk -v3 -u <your admin user> -l authPriv -A <your auth pass> -a <your auth 
protocol (MD5 | SHA)> -X <your priv pass> -x <your priv alg (i.e. DES)> 
localhost 1.3.6.1.6.3.15.1.2.2.1.3

Option (-l authPriv) must be used if you have configured your admin user to use 
authentication + encryption.

If you have to do so from your software you can use the SNMPv3 API of your 
programming language (for example for PHP
we have the snmpv3_walk function).

I think that reading the MIB is more portable than reading the snmpd.conf file 
that can change filesystem location if you change
your distribution or operating system.
Reading the MIB let you have the flexibility to change the host where your 
users are stored: if tomorrow your application will run
on a host that is different from the host where snmpd is running then you have 
to change only an IP address.

I hope this will help in your application design.





2013/11/21 sarath azad <saraths...@yahoo.co.in>

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

Reply via email to