--> hardaker has joined #net-snmp
--> TomY_ has joined #net-snmp
--> hardaker has joined #net-snmp
--> hardaker has joined #net-snmp
--> ecolitan_ has joined #net-snmp
--> ne2k__ has joined #net-snmp
[2010/08/20 08:49:23] #net-snmp <ne2k__> I'm learning how to use net-snmp library and following the tutorial on http://net-snmp.sourceforge.net/wiki/index.php/TUT:Simple_Async_Application I'm trying to work out exactly how the callback gets called when the packet comes back in -- is a separate thread started by snmp_sess_init or something?
[2010/08/20 09:16:46] #net-snmp <rstory-work> ne2k__: no, no threads...
[2010/08/20 09:18:03] #net-snmp <rstory-work> the session has a file descriptor that the main loop has in it's fd_list when calling select... the session also has a pointer to a callback function to call when data is received on that fd... or something like that...
--> Sammitch has joined #net-snmp
[2010/08/20 12:16:04] #net-snmp <Sammitch> so, I've got 5.4.1 and I'm trying to add some pass_persist entries. however, they're not loading and I get one of these for each entry I add:
[2010/08/20 12:16:04] #net-snmp <Sammitch> netsnmp_assert !"registration != duplicate" failed agent_registry.c:536 netsnmp_subtree_load()
--> hardaker has joined #net-snmp
[2010/08/20 12:16:30] #net-snmp <Sammitch> any idea how to get this working? :D
--> fenestro has joined #net-snmp
--> fenestro has joined #net-snmp
--> jsafrane has joined #net-snmp
[2010/08/20 12:45:37] #net-snmp <Sammitch> my config: http://pastebin.ca/1921596
[2010/08/20 13:53:31] #net-snmp <rstory-work> Sammitch: can you try running with -Dregister_mib
[2010/08/20 13:53:54] #net-snmp <Sammitch> haha I was about to make a snide remark
[2010/08/20 13:54:00] #net-snmp <Sammitch> yes I will try that now
[2010/08/20 13:57:04] #net-snmp <Sammitch> these should be the relevant lines: http://pastebin.ca/1921632
[2010/08/20 13:57:15] #net-snmp <Sammitch> looks like it's trying to register them twice?
[2010/08/20 13:58:14] #net-snmp <rstory-work> yeah, so your config file is probably being read twice..
[2010/08/20 13:58:53] #net-snmp <rstory-work> run snmpd -f -Lo -Dread_config -H 2>/dev/null | grep Reading
[2010/08/20 13:59:07] #net-snmp <rstory-work> and how are you starting snmpd?
[2010/08/20 13:59:30] #net-snmp <Sammitch> while I've been trying to figure this out:
[2010/08/20 13:59:31] #net-snmp <Sammitch> snmpd -c /etc/snmp/snmpd.conf --logTimeStamp=true -f -Lf /tmp/snmpd.log -Ducd-snmp/pass_persist,ucd-snmp/pass,snmpd,output,helper:debug,register_mib &
[2010/08/20 13:59:51] #net-snmp <rstory-work> ok drop the -c /etc/snmp/snmpd.conf... it is read by default
[2010/08/20 14:04:16] #net-snmp <Sammitch> well... the error's gone, but 'snmpwalk -c public -v 2c localhost .1.3.6.1.4.1.10055.1' sez it's past the end of the MIB tree :/
[2010/08/20 14:05:22] #net-snmp <Sammitch> I'm pretty new to this, but the one thing that doesn't sit right with me in the config file is:
[2010/08/20 14:05:23] #net-snmp <Sammitch> "
[2010/08/20 14:05:53] #net-snmp <Sammitch> "view all included .1 80" <- this 80 on the end. shouldn't this be a 0x80 or something?
[2010/08/20 14:38:20] #net-snmp <rstory-work> no, the code knows it's a bit field
[2010/08/20 14:39:34] #net-snmp <rstory-work> the reason you can't see it is that public maps to parnanoid, which mapds to the MyROSystemGroup, which is limited to the system view, which is just .iso.org.dod.internet.mgmt.mib-2.system, and does not include the oid .1.3.6.1.4.1.10055
[2010/08/20 14:40:50] #net-snmp <rstory-work> so try adding "com2sec readonly default secret", then query with -c secret
[2010/08/20 14:56:41] #net-snmp <Sammitch> wow that returns ~considerably~ more information :D
[2010/08/20 14:59:18] #net-snmp <Sammitch> including the new agent stuff I'm looking for. thanks rstory-work!
[2010/08/20 15:01:11] #net-snmp <Sammitch> as a bonus, this config file is starting to make sense to me
--> tris has joined #net-snmp
--> hardaker has joined #net-snmp
--> hardaker has joined #net-snmp
--> hardaker has joined #net-snmp
--> hardaker has joined #net-snmp
--> snmpbot has joined #net-snmp