#
 # net-snmp  persistent data file.
 # 
 syslocation  south 1 building,4th floor
 
 syscontact  hi,i am nami
 
 sysservices 72
 
 rocommunity public   ---> removing this line may solve your problem.
 
 rwcommunity public

________________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 2005年8月1日 16:50
To: [email protected]
Subject: re:about snmpset

Thanks for malini's  reply。I tried by your tips: net-snmp-config 
--create-snmpv3-user snmpuser -A [ Enter a pass phase when asked]
c:\usr: net-snmp-config不是内部或外部命令,也不是可运行的程序或批处理文件。That means system can't find 
the net-snmp-config command.(i just want to find out whether sourceforge.net 
could display chinese or not,hehe ^_^)
So i wrote those lines in my snmpd.conf:  
 rwuser snmpuser  auth
 createUser  snmpuser  MD5 wishcanpass  DES
And then stop snmpd, start snmpd.
command: snmpset  -v 3 -u snmpuser -l authNoPriv -a MD5 -A  wishcanpass  
localhost  system.sysContact.0 s "south 1,4th floor"
!Error:notWritable......
cry~
my snmpd.conf is : 
 #
 # net-snmp  persistent data file.
 # 
 syslocation  south 1 building,4th floor
 
 syscontact  hi,i am nami
 
 sysservices 72
 
 rocommunity public
 
 rwcommunity public
 
 #send v2 traps
 
 trap2sink 211.69.195.193  secret
 trap2sink 211.69.195.187  secret
 #send authentication traps
 
  authtrapenable 1
   
 # SNMP v3 configuration
   
   rwuser snmpuser  auth
  
  createUser  snmpuser MD5 wishcanpass  DES
 
  createUser tester1 MD5 testpasswd DES
  createUser tester2 MD5 testpass DES
 
  group   test1   usm    ;  tester1
 
  group   test2   usm     tester2
 
  view    view1  included   system
 
  view    view1  included   interfaces
 
  view    view2   included   interfaces
 
  access  test1   ""      any     auth     exact  view1   view1    none
 
  access  test2   ""      any     auth    exact   view2   view2   none
 
  # To limit the size of the RMON logfile
 
  logentry 5000
 
 # End of snmpd.conf

&nb sp;what is wrong with it? I put it in /etc/snmp/snmpd.conf
By the way ,i have no snmp.locate.conf,is that important?
Thanks very much.
                                                             nami



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
欢迎使用ISM Gmail中文邮!想了解更多,请访问 www.ism.net.cn ! 
------------------------------------------------------- SF.Net email is 
sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to 
follow Roadmaps, straightforward articles, informative Webcasts and more! Get 
everything you need to get up to speed, fast. 
http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click 
_______________________________________________ Net-snmp-coders mailing list 
[email protected] 
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders 

Reply via email to