[2013/05/15 09:02:45] #net-snmp <keldwud> hello, noob here :)
[2013/05/15 09:03:17] #net-snmp <keldwud> I've installed a bunch of mibs, but I don't know what service I need to restart so that when I use snmpwalk, I get the new MIBS instead of the numerical representation. when I snmpwalk, I get numerical returns instead of the MIB equivalent. I installed download-mibs to download mibs. and now when I snmp walk, I still get the numerical representation for the OIDs
[2013/05/15 09:03:36] #net-snmp <keldwud> do I need to re-index or restart a service or something after downloading the MIBs so that I can use snmpwalk -v1 -c to see the non-numerical representations of the OIDs?
[2013/05/15 09:03:57] #net-snmp <keldwud> and forgive me if there is a better place to ask
[2013/05/15 09:04:07] #net-snmp <keldwud> until then, I'll continue reading the documentation
[2013/05/15 09:07:10] #net-snmp <keldwud> I'm also wondering if that is a sign that I have such an outdated network appliance that I still don't have the proper MIBs to recognize the OIDs?
[2013/05/15 09:33:02] #net-snmp <keldwud> hmm, I just found snmpcmd. maybe I'm back on the right track now
[2013/05/15 09:49:23] #net-snmp <fenestro> snmpwalk -m all, or setenv MIBS all, or set the mibs configuration in /etc/snmp/snmp.conf
[2013/05/15 09:49:34] #net-snmp <keldwud> okay, so I tried snmpwalk -m ALL to load all the MIB modules
[2013/05/15 09:49:37] #net-snmp <keldwud> oh you beat me to it :)
[2013/05/15 09:49:54] #net-snmp <keldwud> but yeah, I tried snmpwalk -m ALL but that didn't seem to have the intended effect
[2013/05/15 09:50:08] #net-snmp <fenestro> debian likes to make this really hard
[2013/05/15 09:51:07] #net-snmp <keldwud> hmm, so what's the difference between using -m ALL and adding them manually in the conf?
[2013/05/15 09:51:13] #net-snmp <keldwud> is the effect the same?
[2013/05/15 09:51:19] #net-snmp <fenestro> the thing that you need to do is:
[2013/05/15 09:51:31] #net-snmp <fenestro> - make sure taht the MIBs exist in the MIB search path
[2013/05/15 09:51:44] #net-snmp <fenestro> - make sure that the MIBs you want are loaded
[2013/05/15 09:52:03] #net-snmp <fenestro> debian changed the defaults so that no MIBs exist and no MIBs are loaded
[2013/05/15 09:52:15] #net-snmp <fenestro> did you *run* the MIB downloader? Are the MIBs there?
[2013/05/15 09:52:44] #net-snmp <keldwud> yeah, I ran download-mib with root priveleges
[2013/05/15 09:52:53] #net-snmp <keldwud> *download-mibs
[2013/05/15 09:53:12] #net-snmp <keldwud> oh debian :(
[2013/05/15 09:53:26] #net-snmp <fenestro> so, there are a bunch of files now in /usr/share/snmp/mibs?
[2013/05/15 09:53:37] #net-snmp <keldwud> that's where I was just checking
[2013/05/15 09:54:10] #net-snmp <keldwud> /usr/share/mibs, actually
[2013/05/15 09:54:32] #net-snmp <keldwud> three folders, iana, ietf, netsnmp
[2013/05/15 09:54:36] #net-snmp <keldwud> *two folders, I mean
[2013/05/15 09:54:45] #net-snmp <fenestro> weird
[2013/05/15 09:54:50] #net-snmp <keldwud> I'm using ubuntu
[2013/05/15 09:54:57] #net-snmp <keldwud> but yeah, I see the mibs there
[2013/05/15 09:55:07] #net-snmp <fenestro> and where is net-snmp configured to look?
[2013/05/15 09:55:39] #net-snmp <keldwud> noob here, so I appreciate your patience with me. What's the name for the net-snmp configuration file?
[2013/05/15 09:55:42] #net-snmp <fenestro> try -M /usr/share/mibs/ietf:/usr/share/mibs/iana:/usr/share/mibs/netsnmp
[2013/05/15 09:55:56] #net-snmp <fenestro> well, usually the mibdir is configured when building
[2013/05/15 09:56:02] #net-snmp <fenestro> so you could look in the .deb
[2013/05/15 09:56:29] #net-snmp <keldwud> I think -m ALL was getting the right directory, because I was getting errors from that directory
[2013/05/15 09:56:34] #net-snmp <keldwud> it didn't like some of the MIBs
[2013/05/15 09:56:36] #net-snmp <fenestro> there may be a way to figure out from the command line but I don't know because I've never had to do it because my system is not actively trying to hurt its users like debian / ubutintutu
[2013/05/15 09:57:16] #net-snmp <keldwud> http://pastie.org/7912254
[2013/05/15 09:57:52] #net-snmp <keldwud> yeah, I've ran into a couple issues with ubuntu recently. I've managed to workaround a couple of bugs, but I get stuck in other places
[2013/05/15 09:58:13] #net-snmp <giabboo> hi guys
[2013/05/15 10:00:15] #net-snmp <keldwud> so it does appear that -m ALL was loading them, only a handful of the MIBs downloaded had what appears to be syntax errors or something
[2013/05/15 10:00:28] #net-snmp <keldwud> so those probably didn't load, but I am assuming that the rest of them did load
[2013/05/15 10:05:03] #net-snmp <giabboo> hi guys i'm trying to load a module on net-snmp under CentOS 6
[2013/05/15 10:06:05] #net-snmp <giabboo> This module is specific to monitor mdadm stat
[2013/05/15 10:06:21] #net-snmp <fenestro> sorry, I have to run to a meeting
[2013/05/15 10:06:24] #net-snmp <giabboo> what to do to let snmpd to find / load the module ?
[2013/05/15 10:06:41] #net-snmp <giabboo> i'm using version 5.5
[2013/05/15 10:08:09] #net-snmp <keldwud> giabboo, I'm a noob, but I just learned about the -m switch by reading the manpage for snmpcmd
[2013/05/15 10:08:19] #net-snmp <keldwud> that showed me how to load modules.
[2013/05/15 10:08:24] #net-snmp <keldwud> I hope that helps
[2013/05/15 10:15:42] #net-snmp <giabboo> i'm reading :p but i didnt find yet
[2013/05/15 10:16:15] #net-snmp <giabboo> i used some sort of old way "dlmod swRaidMIB /usr/lib/snmp/swRaidPlugin.so"
[2013/05/15 10:16:30] #net-snmp <giabboo> in the /etc/snmpd/snmpd.conf but it didnt find the module
[2013/05/15 10:38:08] #net-snmp <giabboo> ok, i was doing something wrong, fixed it :)
[2013/05/15 10:40:50] #net-snmp <keldwud> nice, how'd you do it?
[2013/05/15 10:40:55] #net-snmp <keldwud> because I'm still stuck on mine
[2013/05/15 10:58:50] #net-snmp <giabboo> the module i'm working with is srRaidMIB
[2013/05/15 10:58:56] #net-snmp <giabboo> *swRaidMIB
[2013/05/15 10:59:21] #net-snmp <giabboo> it query /proc/mdstat and publish the data on the snmp
[2013/05/15 10:59:48] #net-snmp <giabboo> first i had to compile the module, then i placed it under /usr/lib/snmp
[2013/05/15 11:00:13] #net-snmp <giabboo> then i edited /etc/snmp/snmpd.conf adding this line "dlmod swRaidMIB /usr/lib/snmp/swRaidPlugin.so"
[2013/05/15 11:00:44] #net-snmp <giabboo> after this i had to copy the mib directives in /usr/share/snmp/mibs
[2013/05/15 11:00:52] #net-snmp <giabboo> restart snmpd service
[2013/05/15 11:00:54] #net-snmp <giabboo> and voila
[2013/05/15 11:01:10] #net-snmp <giabboo> now i dont understand how to query the OID instead of the MIBs
[2013/05/15 11:01:59] #net-snmp <giabboo> the -m switch works with snmpwalk
[2013/05/15 11:02:31] #net-snmp <giabboo> but first you need to load the specific module
[2013/05/15 11:05:27] #net-snmp <giabboo> found this out =)
[2013/05/15 11:12:11] #net-snmp <giabboo> keldwud_, did you solved ?
[2013/05/15 11:14:40] #net-snmp <keldwud_> giabboo: no :( not yet
[2013/05/15 11:15:39] #net-snmp <keldwud_> I'm stuck at thinking that I have successfully loaded modules bot not able to determine if I haven't loaded the right module for my network appliance (a managed switch) or if I need to do more than just load modules using -m switch
[2013/05/15 11:15:47] #net-snmp <keldwud_> s/bot/but
[2013/05/15 11:16:29] #net-snmp <keldwud_> but I think I can help you with your question
[2013/05/15 11:16:43] #net-snmp <keldwud_> I have been querying OIDs by using snmpwalk -c
[2013/05/15 11:17:41] #net-snmp <keldwud_> that gets me the OIDs. in my case, by numerical value, which I don't want, but theoretically, it should get you OIDs in the format of "SNMPv2MIB::sysContact.0 = STRING: Me
[2013/05/15 11:17:41] #net-snmp <keldwud_> <me@example.org>
[2013/05/15 11:17:41] #net-snmp <keldwud_> SNMPv2MIB::sysName.0 = STRING: hostname"
[2013/05/15 11:17:56] #net-snmp <keldwud_> instead of .1.3.6.1.2.1.1.1.0 = STRING: Linux hostname 2.6.3811generic #50Ubuntu
[2013/05/15 11:18:36] #net-snmp <keldwud_> I've some more documentation to read to figure out my issue.
[2013/05/15 11:22:26] #net-snmp <giabboo> i used -On to get the full OID :) solved
[2013/05/15 11:22:54] #net-snmp <giabboo> i am going out, if u are here tomorrow and still having issue i can help u too
[2013/05/15 11:22:59] #net-snmp <giabboo> now im off:) Have a good day!!
[2013/05/15 11:29:55] #net-snmp <keldwud> oh that's weird. snmpwalk gave me numerical OIDs, then I did snmpwalk -On, gave me numerical, then I did snmpwalk -Os, gave me non-numerical, but they were are all empty strings, *then* I did snmpwalk with no switches (other than v1 and c) and now it is working....
[2013/05/15 11:30:00] #net-snmp <keldwud> that's confusing
[2013/05/15 12:18:32] #net-snmp <rstory-work> any chance one of the intermediate steps was run as root and the rest were run as a regular user?
[2013/05/15 12:19:08] #net-snmp <keldwud> rstory-work: good question. I'll check my command history
[2013/05/15 12:19:38] #net-snmp <keldwud> nope, no sudos.
[2013/05/15 12:19:53] #net-snmp <keldwud> except I did a sudo dnswalk in between, but I don't see how that would have changed anything.