about snmpd configuration
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <OFA536669D.5554E262-ON48257456.0021B716-48257456.00219FA7@kaifa.cn> |
Hi, Thanks for your help last time! Now I am confused about the V3 user configuration. I create a v3 user in /var/net-snmp/snmpd.conf: createUser v3UserName MD5 "v3 user auth" DES "v3 user encry" And then I add following contents in /usr/local/share/snmp/snmpd.conf: com2Sec AdminSecName default v3UserName group AdminGroup usm AdminSecName view ReadView included .1.3.6.1.4.1.1.1.1.0 #this is a variable1 in my MIB file view ReadView included .1.3.6.1.4.1.1.1.2.0 #this is a variable2 in my MIB file view ReadView included .1.3.6.1.4.1.1.1.3.0 #this is a variable3 in my MIB file view ReadView included .1.3.6.1.4.1.1.1.4.0 #this is a variable4 in my MIB file view WriteView included .1.3.6.1.4.1.1.1.3.0 #this is a variable3 in my MIB file view WriteView included .1.3.6.1.4.1.1.1.4.0 #this is a variable4 in my MIB file access AdminGroup "" usm auth exact ReadView WriteView none Then I try to get the value of the variable1, snmpget returns "authoricationError" snmpget -v3 -l authPriv -u v3UserName -A "v3 user auth" -X "v3 user encry" localhost .1.3.6.1.4.1.1.1.1.0 However, If I add one line in /usr/local/share/snmp/snmpd.conf like this, rwuser v3UserName -V ReadView snmpget returns the values which I want. But at this time, I couldn't add "WriteView" to write variable3 and 4. what should I do? Thanks a lot for your help! Best Regards, Song Hao(郝松) -------------------------------------------------- Meter System Division ShenZhen KaiFa Technology Co., Ltd. Office Tel. :(86 755) 8327 5000 (Main) Ext. 36302 Fax :(86 755) 8327 5061 -------------------------------------------------- This message has been scanned. (210.245.235.14) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users