question about porting net-snmp-5.2.4 on mips 4kc cpu

2008-03-25 Thread ye_cl
Hello all, I have a question about porting net-snmp-5.2.4 for linux on adm5120(mips 4kc cpu). On my PC side,the cpu is intel PIII450, the OS is RedHat linux 9.0 and its kernel version is 2.4.20-8. My snmp source files sv260a.c and sv260a.h are under directory "/net-snmp-5.2.4/agent/mibgroup"

ucd-snmp:How to configure Makefile to use thread functions

2007-09-27 Thread ye_cl
Hi,all,In my source code, I use snmp_alarm_register() to register my callback function, interval is 5 seconds. Callbak checks my decive status,if the status is abnormal,trap will be sent. But I find snmp_alarm_register() will effect my device's performance. So I want to use thread to implement

ucd-snmp:why not send trap by send_v2trap()

2007-09-11 Thread ye_cl
Hi,I have a question. In my snmpd agent, the trap2sink ip address will be changed sometimes,but in my embedded uClinux,the filesystem is read-only(romfs), so I can't change the trap2sink directive in file "snmpd.conf" which is in filesystem. Now,I delete all lines of trap2sink in snmpd.conf, and

Re:RE: table can't be get and set, var_***Table functin is not invok ed anyway

2007-08-30 Thread ye_cl
hi,Adam Bell, My columnar node39param1's oid is 1.3.6.1.4.1.19176.1.1.20.9.1.1.2.In command "snmptable -v2c -c public 200.162.162.190 .1.3.6.1.4.1.19176.1.1.20.9.1.1.2.1", the last ".1" is the index of row. When I use GUI tool "MG-SOFT MIB Browser"to select Instance for getting, the tool promp

snmp: how to respond the request oid from different layer in mib tree

2007-08-27 Thread ye_cl
hi, I have a question to ask you. I run command of "env MIBS=”+SCOM-SV260A-MIB” mib2c scomcenter" to produce my module's skeleton source files for node "scomcenter" which is type of MODULE-IDENTITY and has oid of "1.3.6.1.4.1.19176". Now I will send my get request to node ofiso(1).org(3).dod(6)

Re:Re:Re: why ucd-snmp agent can only be get, can't be set always

2007-08-23 Thread ye_cl
se. In my scomcenter.c, I don't know how to implement it, the get request oid and the response oid are not the same, and not the same level in MIB tree. In the mib2c-produced skeleton source files, I can only respond the oid that is from the client's request,and oid's node type mus

Re:Re: why ucd-snmp agent can only be get, can't be set always

2007-08-22 Thread ye_cl
// Things are working well, so it's now safe to make the change // permanently. Make sure that anything done here can't fail! dest_port = (unsigned long)*long_ret; break; } return SNMP_ERR_NOERROR; }../*..And other write functions..*/ ..

why ucd-snmp agent can only be get, can't be set always

2007-08-21 Thread ye_cl
Hello all, I have a question about using ucd-snmp-4.1.2 on uClinux. I created My MIB module's skeleton source files my_mib.c and my_mib.h according to /uClinux-dist/user/ucdsnmp/agent/mibgroup/examples/ucdDemoPublic.c and its head file. I then copy my source files in the uClinux-dist/user/ucdsnmp