Re: snmpwalk not working with a community name with a backslash in it

2017-02-15 Thread Fredrik Björk
Hi! You really like to bend the rules, don't you :) Keep it up, I like it! I tried this in a Juniper EX: admin@EX2200# show snmp | display set set snmp community public authorization read-only set snmp community test authorization read-only set snmp community "test\\" authorization read-only" se

Re: Fwd: Customize snmpd to monitr an 8 ports switch

2016-06-04 Thread Fredrik Björk
Hi! What are you trying to accomplish? Is Centos running on the switch or a system trying to read SNMP from a switch? Giv us some sample outputs. /Fredrik Den 2016-06-04 kl. 23:12, skrev Zvi Vered: > Hello, > > Should I modify IF-MIB.txt for this purpose ? How ? > > Thank you, > Z.V > > >

Re: Best practice to get counters from a huge amount of routers.

2016-05-09 Thread Fredrik Björk
Hi again! If that's all you need, you do a walk with PHP (or faster alternative) and push the data into a database with a timestamp. From there you can monitor the links as often as you like, just as long as you remember that the data you read is as old as the pollings feeding the dB with data.

Re: Best practice to get counters from a huge amount of routers.

2016-05-09 Thread Fredrik Björk
Hi! Yes, lots of things to consider... I have done some information gathering on CMTSes (cable modem routers) reading out several thousamd parameters. In general I can say that an snmpBULKwalk (command line) or its equivalents in other languages are MUCH faster than reading individual objects

Re: Cisco ASA 5505 snmpwalk query

2016-03-31 Thread Fredrik Björk
Hi! As a general suggestion, do you allow reading the entire (or the same part of the) MIB tree? It's not uncommon to have setups that set specific "views" in the SNMP setup. Do an snmpbulkwalk of the entire "enterprises" tree to see how much that differs: /usr/bin/snmpbulkwalk -v2c -c ***

Re: Please correct my understanding regarding snmpwalk

2016-03-19 Thread Fredrik Björk
Hi! Just like JMJ wrote, the device that is supposed to answer the request has not implemented that specific OID/MIB tree. If you run the walk detailed below, you'll see that it jumps directly to .1.3.6.1.4.1.8072.2 and never dives into .1.3.6.1.4.1.8072.1 since the first OID the SNMP agent r

Ang.: Local snmpwalk fails with Unknown Object Identifier

2015-06-24 Thread Fredrik Björk
Hi! It is sufficient to just copy the file as you dedcribe. Just make sure you have an unbroken chain of references to the root of the MIB tree. If you have a reference in your file to "enterprises" for instance, you should be fine. You can also put the file in another dir and append that path w

Re: Centos 6.6 - net-snmp unreponsive - Too many open files

2014-12-28 Thread Fredrik Björk
Hi! Just a thought: do the checks succeed or is the high number of open files due to unsuccessful polls that keep hanging around retrying? If so, try to decrease the timeout and number of retries. I think there are often ridiculously high timeout limits in SNMP NMS software. Who wants a reply

Re: help

2014-05-07 Thread Fredrik Björk
use like the 192.168.x.x addresses (RFC 1918)? /Fredrik Bill Fenner skrev 2014-05-07 18:14: On Wed, May 7, 2014 at 1:39 AM, Fredrik Björk <mailto:f...@skulle.se>> wrote: Hi! Why would you need a PEN at all? You can always use the experimental tree, starting with .1.3.6

Re: help

2014-05-06 Thread Fredrik Björk
Hi! Why would you need a PEN at all? You can always use the experimental tree, starting with .1.3.6.1.3. in the OID. You can then use a personal number that is meaningful to you. The experimental tree is a little like 192.168.1.x IP addresses that are private and free to use as you like. deb

Re: quesition regarding pass_persist

2014-04-23 Thread Fredrik Björk
Hi! I'm not an expert of pass_persist, but I think you only need to specify this line: pass_persist -p1 .1.3.6.1.4.1.2021.13.16 /opt/aac/bin/snmp_ipmi_bridge.py It will pass all requests in the .1.3.6.1.4.1.2021.13.16 tree to the script (snmp_ipmi_bridge.py). There is no need for the next t

Re: How to ask network hosts to renew their DHCP leases

2014-04-22 Thread Fredrik Björk
Hi! No, SNMP is not the way to go. I can't think of any device that can be ordered to renew the IP address via an SNMP command. The two are simply not that tightly related. Clients generally renew the DHCP lease after half the lease time assigned by the DHCP server. If that renewal fails, th

Re: SNMPGet and Log to file

2014-04-03 Thread Fredrik Björk
onal extra that I will have to pay for an additional > licence for. Since I am just experimenting at this stage I can't really > justify that! > > Thanks Again > > Daniel. > > -Original Message- > From: Fredrik Björk [mailto:f...@skulle.se] > Sent: Friday,

Re: SNMPGet and Log to file

2014-04-03 Thread Fredrik Björk
Hi! The obvious solution would be to stop using Windows and start using a real OS, but I guess that's not the subject of the day... SCADA systems I've bumped into have been using OPC for communications. Several vendors have SNMP to OPC converters (Matrikon OPC SNMP server for instance) that ma

Re: managing Devices that don't allow SNMP Queries

2014-04-03 Thread Fredrik Björk
Now, that's an interesting issue, just my thing! Assuming you have a way of gatering data (as you indicate) using a script, you can make that data snmp readable using snmpd and the "pass" or "pass_persist" feature. What you need to do: 1 - Edit /etc/snmp/snmpd.conf and add the following line:

Re: Net-SNMP agent responce time modification

2014-03-22 Thread Fredrik Björk
Hi! I think you need to explain a little more in detail where this timeout occurs. What SNMP manager do you use? If you just perform standard queries from the command line, you can use the following options to tweak the timeout: -r retries Specifies the number of retries

Re: snmpget vs snmpwalk

2014-03-17 Thread Fredrik Björk
Hi! I see no reason why this shouldn't work: snmpget -v2c -c public 10.10.70.40 PowerNet-MIB::iemStatusProbeCurrentTemp.2 but this: snmpget -v2c -c public 10.10.70.40 .1.3.6.1.4.1.318.1.1.10.2.3.2.1.4 <--- should have .2 added to it! snmptranslate -IR -On PowerNet-MIB::iemStatusProbeC

Re: Snmptrapd fails to read config after being sent 4096 SIGHUPs?

2014-02-04 Thread Fredrik Björk
Hi! Sometimes people on this list proudly state that "you always get an answer to your questions" or similar. As you can see, this case is a very good example of this. Problem solved in three emails, including the initial question - great job! [Big smiley here!] /Fredrik > 4 feb 2014 kl. 17:1

Re: query cable modem too slow

2014-01-07 Thread Fredrik Björk
Hi again! Another way of reducing polling time is to have multiple jobs polling modems, say 4 jobs: Job 1: Polls modems with IP modulo 4 = 1 (10.0.0.1, 10.0.0.5 and so on) Job 2: Polls modems with IP modulo 4 = 2 (10.0.0.2, 10.0.0.6...) Job 3: Polls modems with IP modulo 4 = 3 (10.0.0.3, 10.0.0.7

Re: query cable modem too slow

2014-01-07 Thread Fredrik Björk
Hi! I assume the SNR needs to be calculated at that specific point in time and that can take a little while. RX power is probably easier for the modem to keep track of internally. I tried 100 reads using a bash script: time for (( i=0 ; i-100 ; i++ )) ; do time snmpget -v2c -c public 172.19.11.2

Re: no response from devices when querying multiple oids

2013-11-15 Thread Fredrik Björk
Hi! What if you replace "head -29 walk.txt" with "head -100 walk.txt | tail -29" to get another set of OIDs? Still 29 OK not 30? In that case, it's definitely D-link just supporting 29 OIDs just because they didn't feel more was required. /Fredrik PS dd-wrt on a WRT-54GL returns 128 variables up

Re: no response from devices when querying multiple oids

2013-11-15 Thread Fredrik Björk
Hi! First of all, use snmpbulkwalk as much as you can on SNMP v2c or v3 devices, it is much faster than snmpwalk. root@fw01:~# head -150 walk.txt | cut -d' ' -f1 | xargs snmpget -d -r 0 -v 2c -c public 10.67.11.254 Too many object identifiers specified. Only 128 allowed in one request. OK, 128 i

Re: first time on this list

2013-10-23 Thread Fredrik Björk
I think you only installed the Net-snmp application, not the libs for it. Someone else can probably guide you all the way if necessary. /Fredrik > 23 okt 2013 kl. 16:35 skrev "Juges, Didier" : > > “But questions get an answer :)” > > Good to know J > > I posted this message on September

Re: I have questions about the "pass-persist" feature

2013-08-18 Thread Fredrik Björk
Hi! If you're going to create a value after you get it via the SET, does it matter what you reply to the GET? If possible, reply with an empty string, or some other pre-defined string of your choice instead of replying NONE. /Fredrik jiaqin wu skrev 2013-08-16 17:06: Hi, I am Akim, working

Re: SNMPv3 installation - need to also allow SNMPv1 readers

2013-04-17 Thread Fredrik Björk
Hi! First of all the obvious: is the manager REALLY coming from IP 192.168.1.50 when the packets hit the RHEL box? No NAT in between? No dual NICs or IPs? Just to make sure: tcpdump -nnvv -c 10 port 161 Then try to access the RHEL box with SNMP from the manager. If source IP is really 192.1

Re: disable MIB parsing

2013-04-17 Thread Fredrik Björk
Hi! Of course it is possible... snmpbulkwalk -v 2c -c public 172.19.13.13 -m "" -m tells the snmp command where to look for MIB files and -m "" tells it to look nowhere! /Fredrik On 2013-04-18 00:30, Stuart Kendrick wrote: > Is there a CLI way to disable MIB parsing? > > Most of them time, I

Value in parent OID

2013-04-17 Thread Fredrik Björk
Hi! Is it "legal" to have a value assigned to an OID that has a child like this: .1.3.6.1.3.123.1 = Integer 1 .1.3.6.1.3.123.1.2 = Integer 1 or is there a rule saying that a parent (.1.3.6.1.3.123.1 in this case) cannot have a value? We base an extension on this, but another piece of softwar