SNMPTRAPD problem without -f option

2012-09-05 Thread Sun Paul
Hi I have a problem on running snmptrapd (5.4.1) in Solaris 11. My setup is actually using snmptrapd and calling traphandle.pl to perform a conversion from SNMPv3 to SNMPv2c. The perl script is also able to accept SNMPv2c trap. I start the snmptrapd by "/usr/sbin/snmptrapd -On -Lsd -c /etc/snm

Question on Net-SNMP (SNMPD) + Embedded Perl

2011-04-04 Thread Sun Paul
Hi is ther anyone can help on embedded perl under SNMPD? When I tried to use "$request->setValue(ASN_COUNTER64, 2147483647);" , there is no problem, but if I put in the value larger than 2147483647, it failed. - RBK ---

RE: Question on Net-SNMP (SNMPD)

2011-03-31 Thread Sun Paul
deamon. http://www.net-snmp.org/wiki/index.php/TutorialsThe agent coding tutorial section will teach you how to do it. 2011/3/30 Sun Paul Hi can anyone help in here? I have no idea on how to do that. please - RBK Best Wishes, 姜 宇 <2nth0...@gmail.com> Anthony Jiang <2nth0...@

RE: Question on Net-SNMP (SNMPD)

2011-03-29 Thread Sun Paul
. You can implement your own Table which will extract required information from DB. 2011/3/24 Sun Paul Hi All I hope I post on the correct channel.If not, please allow me to say sorry here. I am planning to develop a daemon to receive SNMPGET, and once it received, it will try to go to

RE: Question on Net-SNMP (SNMPD)

2011-03-24 Thread Sun Paul
Thanks for your advice is there any sample that can guide me thru?? - RBK From: arif hussain [mailto:arifo...@gmail.com] Sent: Thursday, 24 March, 2011 20:12 To: Sun Paul Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Question on Net-SNMP (SNMPD) I think You can use

Question on Net-SNMP (SNMPD)

2011-03-24 Thread Sun Paul
Hi All I hope I post on the correct channel.If not, please allow me to say sorry here. I am planning to develop a daemon to receive SNMPGET, and once it received, it will try to go to query a PGSQL/Oracle DB to extract the information, and returning back the value back to original SNMP polling

[newbie] ASN1 types mapping to c

2009-11-07 Thread LiWei Sun
i, I am trying to write a mib module of my own. I don't know how to pass an ip address value to "snmp_set_var_typed_value" function. I got a string value like "192.168.1.1", is it right to simply cast it to u_char* type, the ASN1 type defined in mib is "IpAddress"? How to specify the byte order ? -

SNMP Extensible sections (exec) not working

2008-10-29 Thread Sun Lei
72.16.1.12 .1.3.6.1.4.1.2021.555 UCD-SNMP-MIB::ucdavis.555 = No Such Object available on this agent at this OID I have long time to use snmp to monitor system. I remember in the previous version , use the same config it's OK Is it a bug ? Look forward your relay. Thanks & Re

help SNMP Extensible sections (exec) not working!

2008-10-28 Thread Sun Lei
72.16.1.12 .1.3.6.1.4.1.2021.555 UCD-SNMP-MIB::ucdavis.555 = No Such Object available on this agent at this OID I have long time to use snmp to monitor system. I remember in the previous version , use the same config it's OK Is it a bug ? Look forward your relay. Thanks & Re

a question with "SECURITY RELEASE: Multple Net-SNMP Versions Released"

2008-06-16 Thread SUN LI-WEN-VQB783
is a patch for 5.4.1, could we just add if (maclen != USM_MD5_AND_SHA_AUTH_LEN) { QUITFUN(SNMPERR_GENERR, sc_check_keyed_hash_quit); } to the v5.2.1/snmplib/scapi.c to accomplish the security bug. Thank you very much for you concern. B

Re: snmpd must be root?

2008-03-23 Thread Sun Le
the snmpd,and if you run snmpd as a normal user,there might be some files that snmpd can not access.You should make them change also. Isaac Eliassi 写道: > chmod to which file? > > -Original Message- > From: Sun Le [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 23, 20

Re: snmpd must be root?

2008-03-23 Thread Sun Le
/direct/01/ -- 孙乐(Sun Le,Sandy) Dima Technologies Co.,Ltd begin:vcard fn;quoted-printable:=E5=AD=99=E4=B9=90(Sun Le) n;quoted-printable;quoted-printable:=E5=AD=99;=E4=B9=90 org:Dima Technologies;Software Department adr:No.285 Zhongshan North Rd;;Room 1302;Nanjing;;210003;China email;internet:[EMAIL

How to design the agent for northbound interface

2008-03-01 Thread Sun Le
Hello everyone, Greetings, newbie here for support! I will be in a project that developing the SNMP northbound interface.Here are my questions: How to develop the agent and mib to support?I need to make the platform to collect the information from the devices first,andthen should I change

walking the table

2005-03-02 Thread sun
? What happened after I call that set_request_error()function? Is it the designated feature that the walking stops ??   Thank you if any!   chris, sun

Tables with 2 indexes

2005-03-02 Thread sun
Hi :    I have a table with 2 indexes. The table Enry defined an auxiliary variable for second index to indentify the instance. I  used mib2c.iterate_access.conf  to generate the code frame work.  In my xxx_get_next_data_point() function, I did something like :   snmp_set_var_value(pindex,

Question on SET again!

2005-02-25 Thread sun
Hi :    Suppose I am using a third party SNMP manager, which is capable of displaying table view, if I modified mutilple column in a single row and commit it, I wonder if the net-snmp upper layer is smart enough to call my table handler only 1 time with MODE_SET_COMMIT?  Or it will be called

Questions on SET operation

2005-02-21 Thread sun
le handler?   Thank you very much for the help! chris sun

enable debuging output

2005-02-17 Thread sun
Hi:    I am using net-snmp 5.1.1 and trying to add a mib module. I  changed the "SNMP_ALWAYS_DEBUG" to 1 in include/net-snmp/net-snmp-config.h. It wrote all the debug information into log file. so I undefined "LOGFILE" macro in net-snmp-config.h file, Now it doesn't write to log file anymore