need help:MIB II ip group cannot be set?

2007-07-25 Thread zhangyao
hi,everyone ip_handler is "HANLER_CAN_RONLY",however the "ipfowarding" and "ipdefaultTTL" is readwrite. when i do "set",it actually return "not writable". reginfo = netsnmp_create_handler_registration("ip", ip_handler, ip_oid, OID_LENGTH(ip_oid), HANDLER_CAN_RONLY);

Re: Running Net-SNMP on embedded MIPS platform

2007-07-25 Thread Kapil Sharma
And this time I tried after keeping in Unix and Callbacks in transports (in configure), and I didn't get the previous error (in bold). # snmpd -V -f -L -Ddlmod -c snmpd.conf udp:161 registered debug token dlmod, 1 getaddrinfo: public Name or service not known snmpd: create_trap_session: snmpd.con

Re: Running Net-SNMP on embedded MIPS platform

2007-07-25 Thread Kapil Sharma
You meant, at the end of the snmpd command line? This is what happened: # snmpd -V -f -L -Ddlmod -c snmpd.conf udp:161 registered debug token dlmod, 1 getaddrinfo: public Name or service not known snmpd: create_trap_session: snmpd.conf: line 71: Error: cannot create trapsink: public snmpd.conf: li

Re: Running Net-SNMP on embedded MIPS platform

2007-07-25 Thread Thomas Anders
Kapil Sharma wrote: > 1. ./configure --host=x86-linux --target=mips-linux > --with-cc=mips-linux-uclibc-gcc-3.3.6 --with-ar=mips-linux-ar > --with-endianness=big --disable-debugging --enable-mini-agent > --without-kmem-usage --disable-mib-loading --disable-applications > --disable-manuals --dis

Running Net-SNMP on embedded MIPS platform

2007-07-25 Thread Kapil Sharma
Hi, I am trying to run net-snmp 5.4 on an embedded mips linux platform. My development is on an x-86 linux host, and I compile using a cross compiler called mips-linux-uclibc-gcc-3.3.6 This is what I did: For NET-SNMP: 1. ./configure --host=x86-linux --target=mips-linux --with-cc=mips-linux-

Subagent cant connect to master agent with "errorNo 146 (Connection refused)"

2007-07-25 Thread Need Help
I am using NetSNMP-v5.4 on a Linux environment. I have traced a lot of the subagent code to try to figure out why my subagent fails to connect to the master agent when it has been built as a shared object (ie: ".so" file) but is allowed to connect to the master agent when the subagent has been

NEVERMIND: (Re: What does "agentxsocket /tmp/agentx" represent?)

2007-07-25 Thread Need Help
Need Help <[EMAIL PROTECTED]> wrote: In the NetSNMP FAQ section there is an entry discussing "How can I run AgentX with a different socket address". It basically states the master agent and subagent must agree on the same port number. As an example, it indicates the following line can be a

How to set the error response?

2007-07-25 Thread 垃圾 簡
I write a dymanical object in linux .when the agent occur a error (return SNMP_ERR_GENERR)while execing Get operation,the NMS will see "Sent get request to 10.10.10.10 : 161 Request Failed: Get Response PDU received from 10.10.10.10 Error Indication in response: A general fail

Re: need help: set operation error

2007-07-25 Thread Glenn
zhangyao wrote: > > i'm using net-SNMP agent. > > [EMAIL PROTECTED] root]# snmpset -v 2c -c public 192.168.88.16 > system.sysContact.0 s "yao" > Error in packet. > Reason: notWritable (That object does not support modification) > Failed object: SNMPv2-MIB::sysContact.0 > > why it shows "notW

Re: Re: need help: set operation error

2007-07-25 Thread zhangyao
i'm using net-SNMP agent. [EMAIL PROTECTED] root]# snmpset -v 2c -c public 192.168.88.16 system.sysContact.0 s "yao" Error in packet. Reason: notWritable (That object does not support modification) Failed object: SNMPv2-MIB::sysContact.0 why it shows "notWritable"? sysContact is readonly?

Re: need help: set operation error

2007-07-25 Thread Thomas Anders
zhangyao wrote: [EMAIL PROTECTED] root]# snmpset -v 1 -c public 192.168.88.16 system.sysContact.0 s "yao" > Error in packet. > Reason: (noSuchName) There is no such variable name in this MIB. > Failed object: SNMPv2-MIB::sysContact.0 If you replace "-v 1" with "-v 2c", what response do you get the