Re: Error OID not increasing...

2012-04-17 Thread Dominique bastien
You need to check in dot3StatsTable_interface.c There is no element for id = 12 you need to clean the code to go from 11 to 13. /* dot3StatsCarrierSenseErrors(11)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h */ case COLUMN_DOT3STATSCARRIERSENSEERRORS: var->val_len = sizeof(u_l

Re: noCreation Error when trying to set VLAN on a switch

2011-12-20 Thread Dominique bastien
I think, before create a new row you need to get a valid index with: dot1qNextFreeLocalVlanIndex --- On Tue, 12/20/11, Dave Shield wrote: > From: Dave Shield > Subject: Re: noCreation Error when trying to set VLAN on a switch > To: basil.jos...@wipro.com > Cc: net-snmp-coders@lists.sourceforg

Try to optimize my cache handling

2011-04-19 Thread Dominique bastien
Hi, I Try to optimize my cache handling by following the step found in a man page: {{{ Cached File: If your table is based on a file that may periodically change, you can test the modification date to see if the file has changed since the last cache load. To get the cache helper to call the loa

RE: Defining MIB

2010-03-08 Thread Dominique bastien
A god book for this is "Understanding SNMP MIBs" ISBN 0-13-437708-7 I personally found a lot of explanations and the nested table example. --- On Mon, 3/8/10, Prakash wrote: > From: Prakash > Subject: RE: Defining MIB > To: "'Robert Story'" > Cc: net-snmp-coders@lists.sourceforge.net > Rec

linkUpTrap and linkDownTrap vs ifAdminStatus

2010-01-26 Thread Dominique bastien
to down and I saw a trap generate by netSNMP. Dominique Bastien __ Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail toda

Re: mib2c issue with more than 32 column for row creation

2008-05-22 Thread Dominique bastien
Solved by changing #define in the _oids.h file from 0x1 to 0x1LL, change de type of column_set_flags in the _rowreq_ctx_s structure and save_flags ( from int to unsigned long long). --- Dominique bastien <[EMAIL PROTECTED]> wrote: > > Hi, > > my table contain more than 32

mib2c issue with more than 32 column for row creation

2008-05-20 Thread Dominique bastien
Hi, my table contain more than 32 column and in the generated commit function I receive this following warning at compile time: warning: left shift count >= width of type Do I need to change something in the file creation or I need to change something manualy in the code. Thanks, Dominique

Re: mib2c mfd generated code gives compile errors ( is this a problem with my mib file)

2008-04-10 Thread Dominique bastien
Use smilint before compiling your MIB. mib2c is not a tool to verifing synthax error in MIB. http://www.ibr.cs.tu-bs.de/projects/libsmi/tools/?lang=de --- Dave Shield <[EMAIL PROTECTED]> wrote: > On 09/04/2008, Johns Victor > <[EMAIL PROTECTED]> wrote: > > I am trying to extend the net-snmp age

Re: How to override the result of an GET request?

2008-03-14 Thread Dominique bastien
snmp-coders mailing list > Net-snmp-coders@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > Dominique Bastien Accedian Networks, Inc. 4878 Levy suite #202 Saint-Laurent H4R 2P1 Tel: 514-331-6181 ext:602 Fax:

Re: IPv6 address in hex format

2008-03-12 Thread Dominique bastien
Hex it's the standard way to display IPv6 address. --- Maneesh Agarwal <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using ASN_OCTET_STR for ipv6 address. But MIB > browser displays the IPv6 address in hex format. > > For IPv4 address, ASN_IPADDRESS is used, the output > is displayed is A.B.C.D form

read-create vs read-write

2007-08-10 Thread Dominique bastien
Hi, I curently updating a MIB to add the functionality of row creation. I add to the table definition the RowStatus with the ACCESS set to read-create. But I want to know if I have to change the other read-write entries pf the table to read-create. Thanks, Dominique Be smarter than spam.

Re: override

2007-07-31 Thread Dominique bastien
It seem that the override directive doesn't work with the warm boot. I try some test last nigth and found error on each line after a -HUP. Jan 1 01:40:27 Overture snmpd[101]: /tmp/snmpd.conf: line 44: Error: oid registration failed within the agent Jan 1 01:40:27 Overture snmpd[101]: /tmp/snmpd.

IP don't fragment bit set in get-response

2007-03-08 Thread Dominique bastien
Hi, I face a little problem here with the DF bit in IP. If I send a request base on a Perl script to my netSNMP agent my get-response is break in three IP packets with the DF flag set and somewhere in a private network the PDUs are drops. Can I disable this default setting by configuration or I n

Re: Snmpget/set works but snmpwalk gives empty output

2006-10-11 Thread Dominique bastien
I saw a similar problem in MAU-MIB due to hole in the allocation of the id for the table element. Maybe is the same problem. - Original Message From: Dave Shield <[EMAIL PROTECTED]> To: "Tu, Don" <[EMAIL PROTECTED]> Cc: net-snmp-coders@lists.sourceforge.net Sent: Wednesday, October 11, 2

Re: deleted interface still appears in ifTable

2006-09-19 Thread Dominique bastien
Yes, the ifAdminStatus and the ifOperStatus are down. Dominique --- Wes Hardaker <[EMAIL PROTECTED]> wrote: > >>>>> "Db" == Dominique bastien > <[EMAIL PROTECTED]> writes: > > Db> With Linux I create multiple VLAN interfaces on > a > D

deleted interface still appears in ifTable

2006-09-14 Thread Dominique bastien
With Linux I create multiple VLAN interfaces on a specific port. At this moment I saw the new interface in the ifTable name eth7.100, eth7.200 and so on. But when I delete these interface they still visible in the MIB. Dominique __ Do You Yahoo!? T

SIGHUP vs override

2006-09-14 Thread Dominique bastien
I perform some tests yesterday with the SIGHUP feature and I notice that the lines in snmpd.conf containing the "override" keyword are not process at the warm-boot. What is missing to make this thing work properly? Do we have to register a callback or add something in update_config() function?

HC-RMON error with mib2c

2006-07-18 Thread Dominique bastien
Hi, I try to generate code for the HC-RMON MIB (RFC3273) with the command "env MIBS="+HC-RMON-MIB" mib2c mib2c.mfd.conf etherHistoryHighCapacityTable" but the perl script stop in the middle of the generation with the following error: writing to defaults/table-etherHistoryHighCapacityTable.m2d S

Re: Re: sparse table

2006-07-06 Thread Dominique bastien
: return MFD_SKIP; and now the walk is fine. But why the mib2c doesn't generate these entries? Dominique --- Dominique bastien <[EMAIL PROTECTED]> wrote: > > I used the version 5.3.0.1 > > The log are: > > Jan 14 03:57:09 P002-0004 snmpd[109]: registered >

Fwd: Re: sparse table

2006-07-06 Thread Dominique bastien
I used the version 5.3.0.1 The log are: Jan 14 03:57:09 P002-0004 snmpd[109]: registered debug token internal:dot3Stats$ Jan 14 03:57:09 P002-0004 snmpd[109]: registered debug token verbose:dot3StatsT$ Jan 14 03:57:09 P002-0004 snmpd[109]: registered debug token 9:dot3StatsTable, $ Jan 14 03:59:

sparse table

2006-07-05 Thread Dominique bastien
Hi, I currently try tp implement the EtherLike MIB but I had some difficulty due to unassigned values in the table. I reponse yes to the following question from mib2c. <> I also add code at the end of the data_access (dot3StatsTable_container_load) fonction to set the column_exists_flags. row

Re: BITS limitation to 32bits vs new MAU-MIB

2006-06-21 Thread Dominique bastien
Yes, I used MFD code. The command is: env MIBS="+MAU-MIB" mib2c mib2c.mfd.conf ifMauTable The error message is: ** ACK! I cannot handle BITS longer than 4 bytes! In file "details-enums.m2i" I'm working on a 32-bits machine. I going to stay with my workaround for this first pass. Dominique --

BITS limitation to 32bits vs new MAU-MIB

2006-06-21 Thread Dominique bastien
Hi, I currently work on an implementation of the EtherLike-MIB and the MAU-MIB inside netSNMP. When I generate the code for the ifMauTable the mib2c stop with the error about the limitation of BITS to 32 bits. the object ifMauTypeListBits is now 41 bits long to support 10G interfaces. I remove

question about mib2c

2006-06-16 Thread Dominique bastien
I need some clues about wahat happen, First on one PC I install 5.3.0.1 and compile the package, I ran mib2c on one table of my private MIB and obtain: the following files: xxx.c/.h xxx_data_access.c/.h xxx_data_get.c/.h xxx_data_set.c/.h xxx_enums.h xxx_interface.c/.h and two readme files: xxx-

dot3 MIB

2006-02-24 Thread Dominique bastien
Hi, I want to implement the dot3 MIB (RFC3635) and MAU-MIB (RFC3636) inside netSNMP, but I current face the problem of using mib2c. I found some tutorial page but they always talking about one node at the time. I try this: env MIBS="+EtherLike-MIB" mib2c -c mib2c.scalar.conf dot3StatsIndex But

Re: HC-RMON

2006-02-22 Thread Dominique bastien
coder to don't forget to be in v2c or v3. Thanks, Dominique --- Dave Shield <[EMAIL PROTECTED]> wrote: > On Tue, 2006-02-21 at 18:22 -0500, Dominique bastien > wrote: > > I try to implement the HC counters in the RMON > code. > > But I'm not able to receive my

HC-RMON

2006-02-21 Thread Dominique bastien
I try to implement the HC counters in the RMON code. But I'm not able to receive my 64 bits counter with my MIB browser. I need help, it seem that my return code is not correct. Here is the file that I try to debug but I'm not very fluent with the netSNMP code. If somebody can point me my mistake