--> wes has joined #net-snmp
--> TrogL has joined #net-snmp
--> jfl has joined #net-snmp
--> jfl has joined #net-snmp
[2003/05/29 06:55:43] #net-snmp <jfl> I would like to check a Powerware UPS status with snmpget, how can I do that?
[2003/05/29 06:58:09] #net-snmp <wes> well, you might start snmpwalk instead.
[2003/05/29 06:58:25] #net-snmp <wes> I assume this is a network connected UPS? (ie, one that has an snmp agent)?
[2003/05/29 06:59:41] #net-snmp <jfl> yes it is...
[2003/05/29 07:00:48] #net-snmp <jfl> when I run snmpwalk, I get a lot of informations but it doesn't seem to have anything about UPS status
[2003/05/29 07:01:31] #net-snmp <jfl> I get a lot like : SNMPv2-SMI::mib-2.33.1.8.1.0 How can I know what it is?
[2003/05/29 07:05:58] #net-snmp <TrogL> do you have powerware's MIB?
[2003/05/29 07:08:34] #net-snmp <wes> that's likely to be the UPS-MIB
[2003/05/29 07:08:39] #net-snmp <wes> (which would show you the status)
[2003/05/29 07:08:58] #net-snmp <wes> and, in fact, it is.
[2003/05/29 07:09:14] #net-snmp <wes> so get the UPS-MIB and install it in /usr/local/share/snmp/mibs/
[2003/05/29 07:09:34] #net-snmp <wes> add "mibs +UPS-MIB" to your ~/.snmp/snmp.conf file (which you'll likely have to create) and then walk again...
[2003/05/29 07:11:23] #net-snmp <Tiran> wes: hi wes
[2003/05/29 07:13:30] #net-snmp <jfl> is there a place to get UPS-MIB?
[2003/05/29 07:13:39] #net-snmp <Tiran>
[2003/05/29 07:13:43] #net-snmp <Tiran> try this
[2003/05/29 07:14:00] #net-snmp <Tiran> wes: btw this link would be usefull on the net-snmp homepage
[2003/05/29 07:14:05] #net-snmp <jfl> thanks
[2003/05/29 07:14:52] #net-snmp <Tiran> you can search even by oid
[2003/05/29 07:15:42] #net-snmp <Tiran> wes: ayt?
[2003/05/29 07:17:58] #net-snmp <wes> Tiran: added.
[2003/05/29 07:19:04] #net-snmp <Tiran> wes: I'm still fighting with this damn hp laserjet printer
[2003/05/29 07:19:14] #net-snmp <wes> heh.
[2003/05/29 07:19:15] #net-snmp <wes> wheeee
[2003/05/29 07:19:37] #net-snmp <Tiran> I can configure it via web interface or JetDirect Software
[2003/05/29 07:20:33] #net-snmp <Tiran> on the web interface I must provide the hex values of the encoded passphrases (MD5 and DES), with Jetdirect I need to type in a valid snmpv3 user/passphrase to change snmpv3
[2003/05/29 07:21:44] #net-snmp <Tiran> do you know a way how I can encode the keys? e.g. via openssl?
[2003/05/29 07:22:56] #net-snmp <jfl> I have put ups_snm_mib.txt in /usr/share/snmp/mibs and added mibs +UPS-MIB and mibs +SNMP-UPS-MIB to my .snmp/snmp.conf file but it doesn't change anything
[2003/05/29 07:24:32] #net-snmp <Tiran> snmpwalk -mALL
[2003/05/29 07:24:46] #net-snmp <Tiran> is the file mode 644?
[2003/05/29 07:25:49] #net-snmp <jfl> 755, like all other files
[2003/05/29 07:26:08] #net-snmp <Tiran> igh
[2003/05/29 07:26:31] #net-snmp <jfl> even with -mALL, same thing
[2003/05/29 07:26:58] #net-snmp <Tiran> *mmh*
[2003/05/29 07:27:04] #net-snmp <Tiran> did you get the right mib file?
[2003/05/29 07:27:17] #net-snmp <wes> run with -Dparse and it'll show you what it's loading.
[2003/05/29 07:27:23] #net-snmp <jfl> well, there only one UPS file :-)
[2003/05/29 07:28:01] #net-snmp <wes> Tiran: re: snmpv3, the problem is that it needs one of 3 things.
[2003/05/29 07:28:20] #net-snmp <wes> I'm not sure which: It needs the password, the master key, or the localized key. And it depends which it needs.
[2003/05/29 07:28:28] #net-snmp <jfl> it's not loaded...
[2003/05/29 07:28:29] #net-snmp <wes> does it come with documentation, and what does it say you should put in?
[2003/05/29 07:28:43] #net-snmp <wes> jfl: is it looking in that directory?
[2003/05/29 07:28:48] #net-snmp <jfl> does it need to be all in upper case?
[2003/05/29 07:28:54] #net-snmp <wes> yes.
[2003/05/29 07:28:57] #net-snmp <jfl> yes /usr/share/snmp/mibs/
[2003/05/29 07:28:58] #net-snmp <jfl> ah, ok
[2003/05/29 07:29:10] #net-snmp <Tiran> Authentication Key: ( Algorithm: MD5)
[2003/05/29 07:29:13] #net-snmp <wes> -mUPS-MIB
[2003/05/29 07:29:17] #net-snmp <Tiran> Privacy Key: ( Algorithm: DES)
[2003/05/29 07:29:21] #net-snmp <wes> Tiran: ok, but localized or not?
[2003/05/29 07:29:22] #net-snmp <Tiran> User Name:
[2003/05/29 07:29:25] #net-snmp <Tiran> Context Name: Jetdirect
[2003/05/29 07:29:27] #net-snmp <wes> (which it probably doesn't say)
[2003/05/29 07:29:33] #net-snmp <Tiran> wes: you right :|
[2003/05/29 07:31:55] #net-snmp <Tiran> well, so I have to try both
[2003/05/29 07:32:19] #net-snmp <jfl> parse-mibs: Module 50 SNMP-UPS-MIB is in /usr/share/snmp/mibs/UPS-SNM-MIB.txt
[2003/05/29 07:32:20] #net-snmp <jfl> parse-file: Parsing file: /usr/share/snmp/mibs/UPS-SNM-MIB.txt...
[2003/05/29 07:32:20] #net-snmp <jfl> parse-mibs: Parsing MIB: 50 SNMP-UPS-MIB
[2003/05/29 07:32:34] #net-snmp <jfl> parse-mibs: #### adding Module 50 'experimental' 26
[2003/05/29 07:32:34] #net-snmp <jfl> parse-mibs: Processing IMPORTS for module 50 SNMP-UPS-MIB
[2003/05/29 07:32:34] #net-snmp <jfl> parse-mibs: Processing import: experimental
[2003/05/29 07:32:34] #net-snmp <jfl> parse-file: End of file (/usr/share/snmp/mibs/UPS-SNM-MIB.txt)
[2003/05/29 07:33:32] #net-snmp <jfl> (brb)
[2003/05/29 07:34:32] #net-snmp <wes> Tiran: um, you might be able to calculate like: perl -e 'print substr($ARGV[0] x (1024*1024/length($ARGV[0])), 0, 1024*1024);' mypassword | md5sum
[2003/05/29 07:35:05] #net-snmp <Tiran> looks like a dirty hack :)
[2003/05/29 07:35:14] #net-snmp <Tiran> and the DES private key?
[2003/05/29 07:35:22] #net-snmp <wes> perl -e 'print substr($ARGV[0] x (1024*1025/length($ARGV[0])), 0, 1024*1024);' mypassword | md5sum
[2003/05/29 07:35:31] #net-snmp <wes> note the change: 1025
[2003/05/29 07:35:32] #net-snmp <wes> both
[2003/05/29 07:35:38] #net-snmp <wes> it should work for both md5 and des
--> miike has joined #net-snmp
[2003/05/29 07:36:42] #net-snmp <Tiran> thx
[2003/05/29 07:36:45] #net-snmp <Tiran> but why 1025?
[2003/05/29 07:42:10] #net-snmp <wes> well, it needs to be > 1Mb in length and the way it worked, it would be just slightly short.
[2003/05/29 07:42:16] #net-snmp <wes> substr actually clips it properly
[2003/05/29 07:43:09] #net-snmp <Tiran> both keys looks the same
[2003/05/29 07:43:22] #net-snmp <wes> they are
[2003/05/29 07:43:35] #net-snmp <wes> the authentication method is used to create both keys
[2003/05/29 07:43:39] #net-snmp <wes> anyway, gotta run...
[2003/05/29 07:44:14] #net-snmp <Tiran> I'll try
[2003/05/29 07:54:38] #net-snmp <Tiran> :(
--> jpf has joined #net-snmp
[2003/05/29 07:56:33] #net-snmp <jpf> hi folks got a bit of a problem with multiple sets in a single packet
[2003/05/29 07:56:54] #net-snmp <jpf> the first one passes but second and subsquent fail
[2003/05/29 07:57:48] #net-snmp <jpf> with multiple set does the agent process each one completely before triing the next
[2003/05/29 07:58:23] #net-snmp <jpf> or does it try to do each stage of all of the packets together?
[2003/05/29 08:24:14] #net-snmp <jpf> sorry each stage of all the set requests in one packet together
[2003/05/29 08:36:07] #net-snmp <rstory> jpf: each stage of all set request happen together..
[2003/05/29 08:38:09] #net-snmp <jpf> grand I'd reckoned that each one was done seperately but that makes sense to get each request as close to commit as is humanly possible
[2003/05/29 08:38:32] #net-snmp <rstory> exactly
[2003/05/29 08:39:43] #net-snmp <jpf> cool, a nice easy fix, just move some action stuff into commit. and that should be that.
[2003/05/29 08:39:51] #net-snmp <jpf> thanks rstory
[2003/05/29 08:39:56] #net-snmp <rstory> np
--> roger has joined #net-snmp
--> ccj has joined #net-snmp
[2003/05/29 09:12:11] #net-snmp <ccj> Hello. Can snmpd be told from the command to not respond to v3 requests ?
[2003/05/29 09:15:50] #net-snmp <ccj> Oops, I mean command line.
[2003/05/29 09:16:31] #net-snmp <rstory> no, but if you don't configure any snmpv3 users, it won't respond to a v3 request
[2003/05/29 09:17:04] #net-snmp <ccj> What if vacm is not loaded and cannot be loaded.
[2003/05/29 09:17:39] #net-snmp <rstory> that would probably do just as well, though I think vacm is used for v2c also.
[2003/05/29 09:18:19] #net-snmp <ccj> My problem is users can edit the snmpd.conf file how-ever I wish to control in the software v3.
[2003/05/29 09:18:31] #net-snmp <ccj> The target is embedded and I have not tested v3.
[2003/05/29 09:28:05] #net-snmp <wes> You can tell it not to load the usmUser module which will make it not load the user set which should turn it off.
[2003/05/29 09:28:15] #net-snmp <wes> snmpd -I -usmUser
[2003/05/29 09:29:41] #net-snmp <ccj> Great. I am not calling init_usmUser. I am statically linked.
--> GBlyden has joined #net-snmp
[2003/05/29 09:39:53] #net-snmp <GBlyden> Anyone here catching cisco traps with net-snmp?
[2003/05/29 09:42:19] #net-snmp <wes> many do, what's the problem?
[2003/05/29 09:42:46] #net-snmp <GBlyden> I am trying to trap handle but don't know how to deal with the indexing value
[2003/05/29 09:44:11] #net-snmp <GBlyden> I guess the last number in the OID that a cisco router sends as a trap is a place in the routers memory
[2003/05/29 09:45:02] #net-snmp <GBlyden> Is there a web page that has some good examples on how to setup a trap handle for a cisco router
[2003/05/29 09:55:47] #net-snmp <wes> sorry for the delay...
[2003/05/29 09:55:54] #net-snmp <GBlyden> no prob
[2003/05/29 09:55:59] #net-snmp <wes> run snmptrapd with -Dsnmptrapd and it'll show you what oid it's looking for.
[2003/05/29 09:57:23] #net-snmp <GBlyden> Does is give a running log of the oid it is seeing?
[2003/05/29 10:00:36] #net-snmp <wes> yes
[2003/05/29 10:00:53] #net-snmp <GBlyden> .iso.3.6.1.4.1.9.9.43.1.1.6.1.5.169 = 4
[2003/05/29 10:01:01] #net-snmp <GBlyden> that number 169 keeps incrementing
[2003/05/29 10:01:23] #net-snmp <GBlyden> would I just omit that from the snmptrapd.conf file
[2003/05/29 10:02:18] #net-snmp <GBlyden> That trap is a result of performing a "write mem" command on the router
[2003/05/29 10:02:42] #net-snmp <wes> the trap oid keeps increasing?
[2003/05/29 10:02:44] #net-snmp <wes> no....
[2003/05/29 10:02:47] #net-snmp <GBlyden> Yes
[2003/05/29 10:02:48] #net-snmp <wes> (if so, bad cisco)
[2003/05/29 10:02:53] #net-snmp <GBlyden> I know
[2003/05/29 10:03:27] #net-snmp <GBlyden> I thought that was for some compatibility for Cisco Works 2000
[2003/05/29 10:03:46] #net-snmp <wes> well, the then the only way is to use a defaulthandler which will get called for all traps.
[2003/05/29 10:04:06] #net-snmp <GBlyden> I was looking for an snmptrapd.conf example of someone monitoring cisco traps
[2003/05/29 10:04:19] #net-snmp <GBlyden> O
[2003/05/29 10:04:31] #net-snmp <GBlyden> An all encompaasing trap hadle
[2003/05/29 10:06:14] #net-snmp <wes> yep.
[2003/05/29 10:06:18] #net-snmp <wes> well, off to upgrade my machine.
[2003/05/29 10:06:25] #net-snmp <wes> I may be back if all goes well...
[2003/05/29 10:06:26] #net-snmp <wes> heh.
[2003/05/29 10:06:35] #net-snmp <GBlyden> Thanks for your help
[2003/05/29 10:06:39] #net-snmp <wes> np
--> Syska has joined #net-snmp
[2003/05/29 10:35:08] #net-snmp <Syska> hiya
[2003/05/29 10:36:23] #net-snmp <Syska> Any one in here now much about MRTG??? i can a little problem
--> benr has joined #net-snmp
[2003/05/29 10:47:27] #net-snmp <rstory> Syska: http://www.net-snmp.org/tutorial-5/mrtg/index.html
--> wes has joined #net-snmp
[2003/05/29 11:13:57] #net-snmp <Syska> rstory -> close, its because I monitor the usage of space on a disk, but it must be in MB, and it adds a k to the line, u can see it at http://mrtg.syska.dk/disk.html
[2003/05/29 11:22:24] #net-snmp <rstory> Syska: sorry, I'm not an MRTG expert. If that page doesn't help you, you'll have to try the MRTG help..
[2003/05/29 11:24:16] #net-snmp <Tiran> Syska: read the manual and how to's. This case is well documented
[2003/05/29 11:25:53] #net-snmp <Tiran> Syska: and checkout rrdtools. these tools are someward like mrtg v2
[2003/05/29 11:26:49] #net-snmp <Tiran> Syska: or Nagios for full monitoring disk space, cpu load, memory load, services etc. of different hosts
[2003/05/29 11:26:53] #net-snmp <wes> ACTION grumbles and wanders off
[2003/05/29 11:27:00] #net-snmp <Tiran> ACTION ist away
[2003/05/29 11:32:26] #net-snmp <Syska> kay, I am already looking at rrdtool and cricket, but first I will just understand MRTG, and then move on
[2003/05/29 11:32:43] #net-snmp <Syska> nagios will maybe also be a option
[2003/05/29 12:43:19] #net-snmp <TrogL> where 'in 'ell's Wes when you need 'im?
[2003/05/29 14:13:28] #net-snmp <Syska> say what
--> wes has joined #net-snmp
[2003/05/29 14:25:27] #net-snmp <TrogL> my CPU find code has been sitting patches for about a week now. Can it come out of limbo yet? I'm gonna write a test based on it
[2003/05/29 14:27:36] #net-snmp <wes> I thought Dave was going to do it. Has he dropped it?
[2003/05/29 14:28:29] #net-snmp <TrogL> apparently, at least don't remember it going on
[2003/05/29 14:28:32] #net-snmp <TrogL> s/on/in/
[2003/05/29 14:28:43] #net-snmp <wes> oh, I thought you had been discussing it with him so I stayed away from it.
[2003/05/29 14:31:17] #net-snmp <TrogL> do you want me to talk to him?
[2003/05/29 14:42:33] #net-snmp <TrogL> is there a meaning to the Tnumbers in tests? I'm going to be writing a couple based on HOST-RESOURCES-MIB. Should I use 150+? 200+?
[2003/05/29 14:43:57] #net-snmp <wes> means are mostly just for ordering (alphabetical)
[2003/05/29 14:44:26] #net-snmp <wes> testing things on mib-variables is frequently useless, since the make test needs to be run as root...
[2003/05/29 14:44:40] #net-snmp <wes> you should skip the test if !root and if no-host resources mibs are loaded.
[2003/05/29 14:44:49] #net-snmp <TrogL> what I intended
[2003/05/29 14:45:55] #net-snmp <TrogL> can I call them t150solarishost ?
[2003/05/29 14:48:56] #net-snmp <wes> sure.
[2003/05/29 15:00:44] #net-snmp <TrogL> the first cpu is HOST-RESOURCES-MIB::hrDeviceDescr.768 . How do I explain that to snmpget?
[2003/05/29 15:02:44] #net-snmp <TrogL> nevermidn
--> ChanServ has joined #net-snmp
--> uathome has joined #net-snmp
--> uathome has joined #net-snmp