--> EvalBMS has joined #net-snmp
--> merbzt has joined #net-snmp
--> merbzt1 has joined #net-snmp
--> hardaker has joined #net-snmp
--> darnok has joined #net-snmp
--> Polak has joined #net-snmp
[2008/08/29 07:18:04] #net-snmp <Polak> Hello
[2008/08/29 07:18:26] #net-snmp <Polak> I met some dificulties to compil a new mib
[2008/08/29 07:18:30] #net-snmp <Polak> someone to help me ?
[2008/08/29 07:19:10] #net-snmp <rstory> we can try
[2008/08/29 07:19:41] #net-snmp <Polak> I use mib2c tool to compil my mib MPLS
[2008/08/29 07:19:49] #net-snmp <Polak> i use mib2c.mdf.conf
[2008/08/29 07:20:24] #net-snmp <Polak> when i run the command make
[2008/08/29 07:20:31] #net-snmp <Polak> i have this error
[2008/08/29 07:21:06] #net-snmp <Polak> MPLS-LSR-MIB/mplsInSegmentTable/mplsInSegmentTable_data_access.c: In function
[2008/08/29 07:21:06] #net-snmp <Polak> 'mplsInSegmentTable_container_load':
[2008/08/29 07:21:06] #net-snmp <Polak> MPLS-LSR-MIB/mplsInSegmentTable/mplsInSegmentTable_data_access.c:290: error:
[2008/08/29 07:21:06] #net-snmp <Polak> 'mplsInSegmentNPop' undeclared (first use in this function)
[2008/08/29 07:21:06] #net-snmp <Polak> MPLS-LSR-MIB/mplsInSegmentTable/mplsInSegmentTable_data_access.c:290: error:
[2008/08/29 07:21:07] #net-snmp <Polak> (Each undeclared identifier is reported only once
[2008/08/29 07:21:37] #net-snmp <Polak> i have read many post about this problem
[2008/08/29 07:21:49] #net-snmp <Polak> but i do not find a response
[2008/08/29 07:22:49] #net-snmp <rstory> can you put your mplsInSegmentTable_container_load function on pastebin?
[2008/08/29 07:23:08] #net-snmp <Polak> yes
[2008/08/29 07:24:08] #net-snmp <Polak> i paste here the code?
[2008/08/29 07:24:14] #net-snmp <Polak> sorry for my english :)
[2008/08/29 07:24:27] #net-snmp <rstory> no, not here.. go to pastebin.ca
[2008/08/29 07:24:44] #net-snmp <rstory> then paste the url they give you here
[2008/08/29 07:24:53] #net-snmp <Polak> ok
[2008/08/29 07:28:18] #net-snmp <Polak> http://pastebin.ca/1188515
[2008/08/29 07:29:06] #net-snmp <Polak> When i use mib2c i use default option
[2008/08/29 07:31:49] #net-snmp <Polak> i use the latest net-snmp 5.4.1.2
[2008/08/29 07:32:03] #net-snmp <rstory> ok.. it looks like you haven't added/changed any code that mib2c generated.. you need to get the data for each row being added to the table...
[2008/08/29 07:32:39] #net-snmp <Polak> how i do that?
[2008/08/29 07:32:49] #net-snmp <Polak> whera can i find data ?
[2008/08/29 07:33:00] #net-snmp <Polak> do you have a documentation about this ?
[2008/08/29 07:33:17] #net-snmp <Polak> and yes i have not changed any values
[2008/08/29 07:34:05] #net-snmp <rstory> well, that's a good question. If you can't find the data, then mib2c can't help you. You'll have to check you operating system/device driver/hardware documentation...
[2008/08/29 07:34:35] #net-snmp <Polak> i would like use this mib
[2008/08/29 07:34:36] #net-snmp <Polak> http://www.oidview.com/mibs/0/MPLS-LSR-MIB.html
[2008/08/29 07:35:34] #net-snmp <Polak> data correspond OID ?
[2008/08/29 07:37:46] #net-snmp <rstory> a mib just defines the structure for presenting the data.. it is up to the developer to find that data. mib2c helps define some net-snmp structures to store the data and present it as the mib defines it.
[2008/08/29 07:39:34] #net-snmp <Polak> i do no understand what i must set in this file i have not found an example
[2008/08/29 07:40:44] #net-snmp <rstory> first things first.. you have to find out how to get the raw data for the objects defined in the MIB... until you do that, you are wasting your time with mib2c.
[2008/08/29 07:45:34] #net-snmp <Polak> well
[2008/08/29 07:45:56] #net-snmp <Polak> have you already test for cisco mibs ?
[2008/08/29 07:46:30] #net-snmp <rstory> sorry, i don't understand the question...
[2008/08/29 07:47:04] #net-snmp <rstory> are you trying to query other devices, or add code to an agent running on a device?
[2008/08/29 07:47:27] #net-snmp <rstory> you don't need to compile mibs to simply query another device...
--> CoolCold has joined #net-snmp
[2008/08/29 07:48:07] #net-snmp <CoolCold> Aug 29 17:34:28 pillar kernel: snmpd[3177]: segfault at 0000000000000001 rip 00002b4f50c285b4 rsp 00007fff59ff1800 error 4
[2008/08/29 07:48:10] #net-snmp <CoolCold> what should i do?
[2008/08/29 07:48:55] #net-snmp <Polak> i query a router cisco
[2008/08/29 07:49:04] #net-snmp <rstory> CoolCold: can you reproduce the crash? what release of net-snmp? what os?
[2008/08/29 07:49:07] #net-snmp <Polak> but when i want a value about mpls i have this result
[2008/08/29 07:49:10] #net-snmp <Polak> MPLS-TE-STD-MIB::mplsTunnelTotalUpTime = No Such Object available on this agent at this OID
[2008/08/29 07:49:57] #net-snmp <rstory> Polak: ok, then either (a) that device doesn't support that object, or (b) you don't have access to that object on the device
[2008/08/29 07:50:33] #net-snmp <Polak> well i believed i must load on agent mibs
[2008/08/29 07:50:37] #net-snmp <Polak> to get value
[2008/08/29 07:50:55] #net-snmp <rstory> try "snmpwalk -v2c -c public device mplsLsrObjects" (where device is the device name/ip)
[2008/08/29 07:50:57] #net-snmp <Polak> that's why i think i sholud use mib2c
[2008/08/29 07:51:32] #net-snmp <rstory> no, just putting the MIB text file in the mib directory will let you see object names instead of object ids (numbers)..
[2008/08/29 07:51:32] #net-snmp <CoolCold> Version: 5.2.3-7etch2
[2008/08/29 07:51:35] #net-snmp <Polak> i have the same result
[2008/08/29 07:51:38] #net-snmp <CoolCold> debian etch
[2008/08/29 07:51:41] #net-snmp <Polak> MPLS-LSR-MIB::mplsLsrObjects = No Such Object available on this agent at this OID
[2008/08/29 07:51:47] #net-snmp <CoolCold> reproduce...i'll try
[2008/08/29 07:52:00] #net-snmp <CoolCold> but have no idea how ;)
[2008/08/29 07:52:26] #net-snmp <rstory> Polak: can you get other objects from the device? try "snmpwalk -v2c -c public device .1"
[2008/08/29 07:52:32] #net-snmp <Polak> yes
[2008/08/29 07:52:38] #net-snmp <rstory> CoolCold: is there a stack trace in syslog too, or just that line?
[2008/08/29 07:53:20] #net-snmp <CoolCold> rstory: this line only
[2008/08/29 07:53:21] #net-snmp <rstory> ok, then it's like I said: either (a) that device doesn't support that MIB, or (b) you don't have access to that MIB on the device..
[2008/08/29 07:53:33] #net-snmp <rstory> CoolCold: any core file?
[2008/08/29 07:54:05] #net-snmp <Polak> if i use this command
[2008/08/29 07:54:24] #net-snmp <Polak> snmwalk -v2c -c public device system
[2008/08/29 07:54:28] #net-snmp <Polak> DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (2450822258) 283 days, 15:50:22.58
[2008/08/29 07:54:28] #net-snmp <Polak> SNMPv2-MIB::sysContact.0 = STRING:
[2008/08/29 07:54:28] #net-snmp <Polak> SNMPv2-MIB::sysName.0 = STRING: CR1.CLICHY3.ecritel.net
[2008/08/29 07:54:28] #net-snmp <Polak> SNMPv2-MIB::sysLocation.0 = STRING:
[2008/08/29 07:54:28] #net-snmp <Polak> SNMPv2-MIB::sysServices.0 = INTEGER: 78
[2008/08/29 07:54:29] #net-snmp <Polak> SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
[2008/08/29 07:54:49] #net-snmp <CoolCold> rstory: looks like no
[2008/08/29 07:55:02] #net-snmp <CoolCold> at least find / -type f -name "*3177*" didn't find anything
[2008/08/29 07:55:25] #net-snmp <CoolCold> and ulimit -c isn't set to user snmp..
[2008/08/29 07:55:36] #net-snmp <rstory> ok.. well, if there's nothing else in the log, I don't really have anything to work with..
[2008/08/29 07:55:45] #net-snmp <Polak> in my case mib2c is not necessary ?
[2008/08/29 07:56:36] #net-snmp <rstory> Polak: right.. you don't need to compile mibs to query other devices...
[2008/08/29 07:56:49] #net-snmp <Polak> ok great
[2008/08/29 07:57:12] #net-snmp <Polak> read only access on device is enough?
[2008/08/29 07:57:19] #net-snmp <Polak> in order to get value
[2008/08/29 07:58:00] #net-snmp <rstory> yes
[2008/08/29 07:58:53] #net-snmp <Polak> i am sure that my device support this MIB i use cisco website
[2008/08/29 07:58:55] #net-snmp <CoolCold> rstory: what should i do to dump core next time except ulimit ?
[2008/08/29 08:00:20] #net-snmp <Polak> and my server is authorized on device
[2008/08/29 08:00:22] #net-snmp <rstory> ummm... that should do it.. just hope debian has debug info compiled in.. once you know how to reproduce it, running under gdb is best.. getting a core file is the next best..
[2008/08/29 08:01:06] #net-snmp <CoolCold> looks like / is PWD, and user snmpd definataly can't write to /
[2008/08/29 08:09:00] #net-snmp <Polak> thank for help rstory
[2008/08/29 08:09:22] #net-snmp <Polak> :)
[2008/08/29 08:09:25] #net-snmp <Polak> see u
[2008/08/29 08:09:40] #net-snmp <rstory> you're welcome.. bye
--> af_ has joined #net-snmp
--> Haris_ has joined #net-snmp
[2008/08/29 09:40:54] #net-snmp <fenestro> hehe, what an odd message - snmptrapd: ./core.24583: Permission denied
[2008/08/29 09:41:02] #net-snmp <fenestro> I must have -M . -m all
[2008/08/29 09:41:16] #net-snmp <fenestro> maybe there's a mib in that core file :-)
--> hardaker has joined #net-snmp
--> Haris_ has joined #net-snmp
--> dermoth has joined #net-snmp
--> clever has joined #net-snmp
--> mike_irc has joined #net-snmp
--> CoolCold has joined #net-snmp
--> SurcouF has joined #net-snmp
--> rtwomey has joined #net-snmp
--> linkslice has joined #net-snmp
--> hardaker has joined #net-snmp
--> snmpbot has joined #net-snmp
--> snmpbot has joined #net-snmp