snmp proxy fails

2005-08-01 Thread Rav
Hi Gurus, Basically my project requirement is that there will be 2 net-snmp agents would be running in the same linux box (say 192.168.1.100). One will be listening on port number say 5050 and the other with the default port number (i.e 161). Now the agent with port number 161 should act as the pro

Re: about snmpset

2005-08-01 Thread Dave Shield
On Mon, 2005-08-01 at 22:27 +0800, [EMAIL PROTECTED] wrote: > i have a question, why snmpd.conf could not contain this line: > sysContact i am nami ? The problem lies in what should happen if you send a SET request to change this contact information, and then restart the agent: snmpset

RE:RE:about snmpset

2005-08-01 Thread [EMAIL PROTECTED]
Thanks Dave  and manili very much !  Kiss!   Now i can set   localhosts'  OIDs . And i have a question ,why snmpd.conf could not contain this line: sysContact  i am nami ? If i want to set another host's OID,what should he do?  Need  my snmp.conf  modify? and how?I hope you can give me an example.H

Problem to access elements in a Table

2005-08-01 Thread Cicerone Vincenzo
Hello I've a static table with read-write elements I need to read and write every single element atomically (i.e. Set Element.2 (row=Element, column=2)) I've used the 'mib2c.iterate.conf' configuration file to generate the 'C' mib module, since the Table is outside The Agentt's code. When I query

RE: about snmpset

2005-08-01 Thread Dave Shield
On Mon, 2005-08-01 at 16:39 +0800, Lin, Zihui wrote: > # > # net-snmp persistent data file. > # > syslocation south 1 building,4th floor > > syscontact hi,i am nami<= Removing *this* line is necessary to allow a SET update of sysContact.0 (regardless of which SNMP version is used)

Re: re:about snmpset

2005-08-01 Thread malini
Hai,   If u wanna use v2   as dave suggests ...do 2 simple things    - first, add a line "rwcommunity private"   -  use snmpset -v 2c -c private localhost system.sysContact.0 s "south 1,4th floor"   -, check that the snmpd.conf file does *not*    contain a line "syscontact .".   If it do

RE: about snmpset

2005-08-01 Thread Lin, Zihui
# # 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:[EM

re:about snmpset

2005-08-01 Thread [EMAIL PROTECTED]
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

Re: Netsnmp Subagent ... conf File?

2005-08-01 Thread Dave Shield
On Thu, 2005-07-28 at 18:25 +0200, Torben Surmer wrote: > I am writing a netsnmp 5.x subagent and I am wondering, if there is a comon > way, where I should store my persistant configuration data, like the netsnmp > agent himself stores his configuration data in the snmpd.conf file. And if > so,

Re: about snmpset

2005-08-01 Thread Dave Shield
On Mon, 2005-08-01 at 11:24 +0800, [EMAIL PROTECTED] wrote: > When i used the snmpset command to set the value of syscontact.0 > i always got an error :not writtable. > i wanna know how should i configure the snmpd.conf to run snmpset? You need to do two things: - first, add a line "rwcommuni

snmpconf fails under Solaris

2005-08-01 Thread Torben Surmer
Hi, when you run snmpconf from netsnmp 5.2.1 under SunOS 5.8 it fails with: Not enough arguments for mkdir at /usr/local/bin/snmpconf line 230, near ""$opts{'I'}")" Not enough arguments for mkdir at /usr/local/bin/snmpconf line 245, near ""$home")" If you change the line to if (! (-d