something confused about "mib2c mib2c -c mib2c.mfd.conf XXXTable"

2010-11-12 Thread ema
first i'll introduce my working environment net-snmp:net-snmp-5.4.2.1 src rpm linux: fedora 11, i386 i have define a table in my mibfile, assume testTable then i use mib2c -c mib2c.mfd.conf testTable to generate some code and i load data in the function int testTable_container_load(netsnmp_cont

Re:Re: Re: the order of COLUMNS_XXX in XXXTable_oid.h which is generated by mib2c is not correct

2009-07-04 Thread ema
y, 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. ] > > >2009/7/1 ema : &g

the order of COLUMNS_XXX in XXXTable_oid.h which is generated by mib2c is not correct

2009-06-30 Thread ema
hi,everyone will anybody fixed the bug i have example like this: i use mib2c according the ifTable example,but i got incorrect order like this #define COLUMN_AUDIOSTREAMQUALINDEX 1 #define COLUMN_CHANNELADDRESS 2 #define COLUMN_MINMOSA 3 #define COLUMN_AVGMOSA 4 #

it's strange the 64bit query for ifHCOutOctets and ifHCOutOctets cannot get real numbers

2008-06-18 Thread ema
Hi,all I use snmpget to get ifHCOutOctets and ifHCOutOctets from a router interface However, in a short time, i get the same numbers, while using ifOutOctets and ifOutOctets,the numbers change quickly , Can anyone tell me why? Thank you for your help! ---

Re:Re: Re: strange that trapsess causes Segmentation fault when running

2008-05-06 Thread ema
hield" <[EMAIL PROTECTED]> 写道: 2008/5/5 ema <[EMAIL PROTECTED]>: > trapsink 192.168.1.100 public > trap2sink 192.168.1.100 public > informsink 192.168.1.100 public > trapsess 192.168.1.100 Do you really want to send *four* copies of every trap to the

Re:Re: strange that trapsess causes Segmentation fault when running

2008-05-05 Thread ema
when i am using the full trapsess, it won't generate the Segmentation fault trapsess -e 0x0102030405 -v 3 -u ema -l authPriv -a MD5 -A password -x DES -X password 192.168.1.100 but using trapsess 192.168.1.100 it still the same problem i compiled the agent from the src my os is k

strange that trapsess causes Segmentation fault when running snmpd(net-snmp-5.4.1) on fc8

2008-05-02 Thread ema
in /usr/share/snmp/snmpd.conf, there's a line trapsess 192.168.1.100 when i running snmpd -d -f -Le it will report Segmentation fault, after it sends the coldStart PDU trap to trapreceiver ip but when i comment this line, it work correctly, I don't know why? by the way, every time when i

Re:Re: sensors/sensors.h can't be found when compiling lmSensors on

2008-04-29 Thread ema
在2008-04-29,"Dave Shield" <[EMAIL PROTECTED]> 写道: 2008/4/29 ema <[EMAIL PROTECTED]>: > i download net-snmp-5.4.1 > when i carry out this command > ./configure --prefix=/usr --with-mib-modules="ucd-snmp/lmSensors" > > it will give these err

Net-SNMP / RedHat RHEL 5 x86_64 64 bits

2008-04-28 Thread ema
using rpm -ql net-snmp you'll see where the mibs had been installed usually in the /usr/share/snmp/mibs if you install rpms or in /usr/local/share/snmp/mibs if you install tar.gz or you could download the new net-snmp src rpm from http://www.net-snmp.org/download.html and compiling it ---

sensors/sensors.h can't be found when compiling lmSensors on x86_64, Fedora Core 8

2008-04-28 Thread ema
i download net-snmp-5.4.1 when i carry out this command /configure --prefix=/usr --with-mib-modules="ucd-snmp/lmSensors" it will give these errors: checking for sensors support... checking sensors/sensors.h usability... no checking sensors/sensors.h presence... no checking for sensors/sensors.h...

Re:Re: How can i get the secific trap notification if i want to monitor

2008-04-28 Thread ema
that will work and i try it later, which is feasible it's the same topic, i just miswrite the word 'specific' thanks again! 在2008-04-28,"Dave Shield" <[EMAIL PROTECTED]> 写道: 2008/4/26 ema <[EMAIL PROTECTED]>: > How can i get the specific trap notification i

Re: How can i get the secific trap notification if i want to monitor the ifUcastPkts of eth2

2008-04-25 Thread ema
How can i get the specific trap notification if i want to monitor the ifUcastPkts of eth2 thank you for your suggestions! i reset the user ema at /var/net-snmp/snmpd.conf: createUser ema MD5 password and add -I to the 'monitor' directive when i setup snmpd using snmpd

How can i get the secific trap notification if i want to monitor the ifUcastPkts of eth2

2008-04-25 Thread ema
hello,everyone! backgroud: net-snmp-5.4.1 on fc6 eth2 is the network interface i want to monitor, the oid of eh2's ifUcastPkts is .1.3.6.1.2.1.2.2.1.11.4 here's the case: /root/.snmp/snmpd.conf:(i use the traditional access control) rwuser ema trapcommunity public trap2sink 192