Re: Warning: Unknown token: agentxRetries

2008-01-04 Thread goon863
Is there any way to control agentxretries just 1 times?Can i change somewhere in code to?Is there any fuction to control 5 times? Thanks a lot!- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Vi

Re: Warning: Unknown token: agentxRetries

2008-01-03 Thread goon863
Thanks,Dave. I am using 5.0.9 net-snmp on blackfin uclinux.I can see the codes under agent/mibgroup/agentx/ are not compiled. Dose it mean that the agentx is not used?And the resule is "snmpd: invalid option -- X " when run "snmpd -f -Le -X".> I add the agentxRetries 0 to snmpd.conf. > when ru

Warning: Unknown token: agentxRetries

2008-01-03 Thread goon863
Hi, I want to control the agent to agentxRetries 1 times.I add the agentxRetries 0 to snmpd.conf.when run "snmpd -f -L &",it shows "Warning: Unknown token: agentxRetries".Is there any way to agentxRetries 1 times?Where to change the code net-snmp?Is it netsnmp_ds_set_int(NETSNMP_DS_APPLICATIO

Re: Is there any api for net-snmp to reread it's conf?

2007-12-01 Thread goon863
> Is there any api for agent reread the snmpd.conf? update_config() This is triggered by sending the agent the HUP signal, or by setting the UCD-SNMP-MIB::versionUpdateConfig object. Dave Thanks very much ,Dave.Update_config() work very well. I want to change the notification trap time t

Is there any api for net-snmp to reread it's conf?

2007-11-29 Thread goon863
Hi, On my agent,one oid is to write a new trap address to the snmpd.conf.But after it write,the net-snmp is still use the old the address.Is there any api for agent reread the snmpd.conf?How can the snmp trap read the new address? Thanks. --

RE: popen() is executed many times in MODE_SET_ACTION:

2007-10-17 Thread goon863
I found the problem is "ping" command.My env is uclinux and the net-snmp is 5.0.9v.My code is as follow.While i run "snmpget -c public -v2c 192.168.0.148 1.3.6.1.4.1.9362.1.7.0",the snmpd will run several times handle_led7(),and the code fp=popen("ping -c 8www.google.com","r") is run serveral ti

RE: popen() is executed many times in MODE_SET_ACTION:

2007-10-16 Thread goon863
sorry that " agentXRetries 0 ". and the adjunct enseirb.c is my code after changed.it run several times popen();Any suggestion will be apreciated. enseirb.c Description: Binary data enseirb.h Description: Binary data - Thi

Re:popen() is executed many times in MODE_SET_ACTION:

2007-10-16 Thread goon863
Thanks,Krishna my snmpd.conf is as follow: com2sec notConfigUser default public group notConfigGroup v1 notConfigUser group notConfigGroup v2c notConfigUser view all included .1 access notConfigGroup "" any noauthexact all all n

Re:popen() is executed many times in MODE_SET_ACTION:

2007-10-16 Thread goon863
Sorry for my mistake.my env is uclinux and the net-snmp is 5.0.9 v.I use enseirb.c form net-snmp homepage.And add popen(). netsnmp_register_instance(netsnmp_create_handler_registration ("led2", do_led2, led2_oid, OID_LENGTH(led2_oid

popen() is executed many times in MODE_SET_ACTION

2007-10-16 Thread goon863
forget to my env: uclinux and net-snmp 5.0.9v.When rewrite to popen("ps","w"),the popen just run one time.But if popen("ping -c 3www.google.com","r"),the command popen will be run 6 times.- This SF.net email is sponsored by:

popen() is executed many times in MODE_SET_ACTION:

2007-10-16 Thread goon863
hi all, I use popen("ping -c 3 192.168.0.1","r") under the code "case MODE_SET_ACTION: ".While run snmpset,the code under"case MODE_SET_ACTION: " will be run 6 times.the same as ftp: fp=popen("ftp -nv","w"); my code is as follow: case MODE_SET_ACTION: /* * XXX: perform the

RE: I am a factory.how to manage the snmp production in wan?

2007-09-18 Thread goon863
>Provided that the DDNS names resolve, and the firewall permits SNMP traffic, >you can use net-snmp for this application. Mike Thank you Mike.yes,our production is modem,and the firewall is opening the SNMP port.So it can work.As you know,most of the network manage softwares are fit for lan,

I am a factory.how to manage the snmp production in wan?

2007-09-14 Thread goon863
hi all, Our productions have snmp funtion.I want to manage them with snmp,know their situations(on line or not).But they are in wan,we just have their ddns name.is there any software can do this? - This SF.net email is sp

Is there any available oid can restart my sysetm?

2007-06-14 Thread goon863
hi, my net-snmp is 5.0.9 which is contained in the uclinux kernel.I want to restart my system through snmp.Is there any available oid to do that?Dose versionRestartAgent can work?Or do i have to design it myselsf? Thank you very much.

versionRestartAgent can't be changed.

2007-06-12 Thread goon863
hi, i am trying to restart my uclinux agent by snmp,but the value of versionRestartAgent seens can't be changed to 1. [EMAIL PROTECTED] snmp]# snmpset -v2c -c public 192.168.1.126 UCD-SNMP-MIB::versionRestartAgent.0 i 1 UCD-SNMP-MIB::versionRestartAgent.0 = INTEGER: 1 [EMAIL PROTECTED] snm

Re:without snmpget ,how can the agent read the oid itselft?

2007-06-08 Thread goon863
Thanks very much ,Dave.If i want to use snmpset to control a server starting or stopping in the uclinux agent,must i add an oid in the mib myself?Is there any article about how to control a server through snmp? >My agent is uclinux,and it don't have snmpget command.The agent wouldn't > typi

Re:without snmpget ,how can the agent read the oid itselft?

2007-06-08 Thread goon863
Thanks very much .If i want to use snmpset to control a server starting or stopping in the uclinux agent,must i add an oid in the mib myself?Is there any article about how to control a server through snmp? On 08/06/07, goon863 <[EMAIL PROTECTED]> wrote: >My agent is uclinux,and it d

Re:without snmpget ,how can the agent read the oid itselft?

2007-06-08 Thread goon863
Thanks very much ,Dave.If i want to use snmpset to control a server starting or stopping in the uclinux agent,must i add an oid in the mib myself?Is there any article about how to control a server through snmp? On 08/06/07, goon863 <[EMAIL PROTECTED]> wrote: >My agent is uclin

without snmpget ,how can the agent read the oid itselft?

2007-06-07 Thread goon863
hi , My agent is uclinux,and it don't have snmpget command.If the manager snmpset an oid value (0 ,for example)to the agent,how can the agent read the value?Thank you very much ! - This SF.net email is sponsored by DB2

error:`snmpd' is using obsolete setsockopt SO_BSDCOMPAT

2007-05-30 Thread goon863
hi, I am configuring net-snmp in blackfin uclinux.The net-snmp seens have a problem.I select "net-snmp snmpd" in the "network application" and compile.While useing "/sbin/snmpd -c /etc/snmpd.conf &",it shows the error "`snmpd' is using obsolete setsockopt SO_BSDCOMPAT ".my snmpd.conf is ok i