Hi

Thanks for the response. Please see my response in inline [Liang].

Regards


2011/12/13 Niels Baggesen <[email protected]>

> On Tue, Dec 13, 2011 at 05:10:39PM +0800, 梅亮 wrote:
> > proxy -Cn ctx_limei1 -v 2c -c public [ip_addr of remote device1] .1
> [snip]
> > snmpget -v 3 -n ctx_limei1 -u limei1 -l authNoPriv -a MD5 -A snmp_limei
> > 127.0.0.1 sysName.0
> >
> > My expected return result would be the sysName of remote device one. But
> in
> > reality that is not the case. Would you please help shed some light on
> this
> > as to what is wrong with my  configuration? Thanks a lot
>
> You cannet pass a context over SNMP v2c, so your proxy will ignore
> the -n ctx_limei1 option. If you need the context you must use v3,
> but then you could use a username without privacy.
>

 I was under the impression that authNoPriv is a security level for SNMPv3.
When I didn't use the -n ctx_limei1, the cmd returns the sysName of
localhost, please see:
[root@rain configure.d]# snmpget -v 3  -u limei1 -l authNoPriv -a MD5 -A
snmp_limei 127.0.0.1 sysName.0
SNMPv2-MIB::sysName.0 = STRING: rain
[root@rain configure.d]#
So this means that the snmpv3 GET cmd that I used is correct and I am not
passing a context using v2c, rather I am passing a context using v3. But
how come when I added -n ctx_limei1,  the cmd doesn't work?  Please see if
there is anything wrong about my snmpd.conf configuration. If yes, please
help correct it. Thanks a lot

Regards
Liang



>
> /Niels


> --
> Niels Baggesen - @home - Århus - Denmark - [email protected]
> The purpose of computing is insight, not numbers   ---   R W Hamming
>
------------------------------------------------------------------------------
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to