Re: How to set value in snmptable?

2011-04-27 Thread Dave Shield
On 27 April 2011 16:05, Zimmer Hu wrote: >> snmpset -v 2c -c private localhost netSnmpHostAddress.\"coconut\" = 7F000101 > Error in packet. > Reason: wrongValue (The set value is illegal or unsupported in some way) What does the code that handles this MIB object look like? In particular, the cod

Re: -register limits to 127 chars the option parameters

2011-04-27 Thread Wes Hardaker
> On Wed, 27 Apr 2011 09:28:04 -0700 (PDT), Sylvain Dery > said: SD> I submitted patch ID 3293842 to adress this issue.  I also raised bug SD> ID: 3293856. Thanks for submitting a patch! Generally, in the future, if you have a patch that's enough to track the problem and you don't need

Re: -register limits to 127 chars the option parameters

2011-04-27 Thread Sylvain Dery
I submitted patch ID 3293842 to adress this issue.  I also raised bug ID: 3293856.   Regards,   Sylvain To: "net-snmp-coders@lists.sourceforge.net" Sent: Wednesday, April 13, 2011 3:23:56 PM Subject: -register limits to 127 chars the option parameters Hi,   I discovered there is a limit of 12

Re: How to set value in snmptable?

2011-04-27 Thread Zimmer Hu
Sorry, my mistake. I set community string wrongly. I checked my snmpd.conf and reset it to private, and get another issue (wrong value): > snmpset -v 2c -c private localhost .iso.org.dod.internet.private.enterprises.netSnmp.netSnmpExamples.netSnmpExampleTables.netSnmpHostsTable.netSnmpHostsEntry.n

Re: How to set value in snmptable?

2011-04-27 Thread Dave Shield
On 27 April 2011 15:39, Zimmer Hu wrote: > Here is the command feedback: > >> snmpset -v 2c -c public localhost netSnmpHostAddress.\"coconut\" s 7F000101 > Error in packet. > Reason: noAccess This is an error from the remote end. It's telling you that the agent doesn't allow SET requests with

Re: using snmptranslate to see object descriptions

2011-04-27 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 26 A

Re: How to set value in snmptable?

2011-04-27 Thread Zimmer Hu
Dave, Here is the command feedback: > snmpset -v 2c -c public localhost .iso.org.dod.internet.private.enterprises.netSnmp.netSnmpExamples.netSnmpExampleTables.netSnmpHostsTable.netSnmpHostsEntry.netSnmpHostAddress.\"coconut\" s 7F000101 Error in packet. Reason: noAccess Failed object: .1.3.6.1.4.

Re: How to set value in snmptable?

2011-04-27 Thread Dave Shield
On 27 April 2011 15:08, Zimmer Hu wrote: >> snmpset -v 2c -c public localhost  netSnmpHostAddress."coconut" s 7FABC101 Try escaping the quotes around "coconut" i.e. snmpset -v 2c -c public localhost netSnmpHostAddress.\"coconut\" s 7FABC101 Dave -

Re: How to set value in snmptable?

2011-04-27 Thread Zimmer Hu
One more comment: I used .coconut s 7FABC101 instead of ."coconut" s &FABC101 and get the same result. I tried the following command, and get noAccess error as following: > snmpset -v 2c -c public localhost .iso.org.dod.internet.private.enterprises.netSnmp.netSnmpExamples.netSnmpExampleTables.n

How to set value in snmptable?

2011-04-27 Thread Zimmer Hu
Hi All, I have made example code netSnmpHostsTable running as an independent agent. And I can make mbrowse to set value for netSnmpHostAddress with index value ("coconut") correctly, no problem with creation, modification and deletion. But when I run snmpset in command line, I get "Unknown Object

Re: Error opening specified endpoint "" in Debian 6.0

2011-04-27 Thread Ravi Depa
Hi Dave, Thanks for your response. I found libc.conf file in /etc/ld.so.conf/ directory. The libc.conf file already contains " /usr/local/lib". I just ran ldconfig in root without creating local.conf file. After restarting the PC, snmpd is no more giving the error. Thanks, Ravi On Wed, Apr 27, 2

Re: Error opening specified endpoint "" in Debian 6.0

2011-04-27 Thread Ravi Depa
Hi Dave, Thank you very much. Your response solved my problem. One more quick question. Everytime I restart the PC and if I run snmpd, it gives the following error. /usr/local/sbin/snmpd: error while loading shared libraries: libnetsnmpagent.so.20: cannot open shared object file: No such file or