Antw: Integer64 support for memory OID 1.3.6.1.4.1.2021

2017-07-17 Thread Ulrich Windl
>>> Kristin Thompson schrieb am 17.07.2017 um 18:48 in Nachricht : > Hello, > > Negative values are being returned for OID 1.3.6.1.4.1.2021.4 when we have >> 2TB RAM in a server (we have 3TB). > I understand from our ticket with Red Hat support that this is due to these > objects being Integer32

Antw: snmpd - snmpget and snmpwalk inconsistent

2017-04-23 Thread Ulrich Windl
>>> Ryan Goodfellow schrieb am 21.04.2017 um 20:43 in >>> Nachricht : > Hi, > > I have observed a puzzling inconsistency between the get and walk requests > from snmpd. I am running the daemon on a Cumulus Linux switch. The > following shell sessions shows the issue. > > ### SERVER (stem) ### >

Antw: ERROR: Can't create '/usr/local/lib64/perl5'

2017-02-28 Thread Ulrich Windl
>>> Zvi Vered schrieb am 26.02.2017 um 04:50 in Nachricht : > Hello, > > Under Centos 7.2.1511 I downloaded net-snmp-5.7.3.tar.gz and extracted it. > > Then I ran: > ./configure --prefix=/tmp > make > make install > > During the install phase I got the following error: > !!!

Antw: sysContact

2016-12-08 Thread Ulrich Windl
>>> JH schrieb am 08.12.2016 um 21:23 in Nachricht : > I'm setting up a snmpd.conf file for the first time and am a little > confused about what to use for the syscontact and syslocation settings. Is > syscontact a user account on the polling server? And the same question for > syslocation. Or are

Antw: Persistence of Disk index in snmpd

2016-01-22 Thread Ulrich Windl
>>> Rudi Daemen schrieb am 22.01.2016 um 11:10 in Nachricht : > Hi, > > I have been using snmpd to monitor disk activity on my storage machine > (Debian 8, running mdadm raid6), for this, I've been using the > "DiskIODevice" and "hrStorage" trees. This has been working like a > charm except for o

Antw: net-snmp authentication algorithm

2016-01-19 Thread Ulrich Windl
>>> Igor Sobinov schrieb am 19.01.2016 um 08:40 in Nachricht <1453189226.363034...@f324.i.mail.ru>: > Hello, > > I found that net-snmp v3 supports sha or md5 as authentication algorithm. I > know that sha-1 is cracked. What version of sha is used in net-snmp? Also, Hi! What makes you think "

Antw: Re: How does "proc" in snmpd.conf match the process

2015-12-11 Thread Ulrich Windl
>>> Martin T schrieb am 11.12.2015 um 00:43 in Nachricht : > Hi, > > if I check the fixproc Perl script in net-snmp-5.4.3 source tarball, > then looks like "proc" executes simply "ps -e" and CMD column of this > command is limited to 15 characters. The actual script name was not > "backup.sh", bu

Antw: Network interfaces rename

2015-11-04 Thread Ulrich Windl
>>> Andreas Haralambopoulos schrieb am 04.11.2015 um 08:39 in Nachricht <0bf8488d-61a0-4c81-811d-dad6f7ded...@gmail.com>: > Is it possible to change the network interfaces names ( or to create > ‘aliases’) ? > > for example > > snmpwalk -v2c -c password 127.0.0.1 > > > replacing these names

Q: How to remove a table row?

2015-08-19 Thread Ulrich Windl
Hi! I found the example on how to add a SNMP table row in a subagent, but I wonder how to dynamically remove a row, assuming you have the index or some primary key inside a table row (but not the pointer to the row). what I guessed so far (the documentation is _really_ bad) is this: netsnmp_ta

Antw: register e.g. a STRING MIB

2015-08-18 Thread Ulrich Windl
>>> Mostafa Salari schrieb am 18.08.2015 um 13:15 in >>> Nachricht : > In a subagent, I can register (for example) Counter32 MIBs with the > following function: > netsnmp_register_read_only_counter32_instance(...) > > So, how can I register (for example) STRING or TimeTick MIBs. I don't have an

Antw: Problems registering AgentX (in C)

2015-08-12 Thread Ulrich Windl
the current directory? If you need to put it into /etc/snmp, you need root rights for development, and having a local, non-priviledged snmp Daemon for testing makes no sense. Regards, Ulrich >>> "Ulrich Windl" schrieb am 12.08.2015 um 12:01 in Nachricht <55cb358402a1000

Antw: Problems registering AgentX (in C)

2015-08-12 Thread Ulrich Windl
) = 0 2819 gettimeofday({1439373523, 621388}, NULL) = 0 2819 pipe([5, 6]) = 0 2819 select(6, [3 5], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted) 2819 --- SIGINT (Interrupt) @ 0 (0) --- 2819 +++ killed by SIGINT +++ --- Any ideas? Regards, Ulrich >>> Ulri

Error handling when getting multiple values (in Perl)

2015-08-05 Thread Ulrich Windl
Hi! A problem with snmpget for multiple values is error handling: You can find out that something went wrong, but not easily which of multiple requested values had a problem getting. So I'm considering using Perl instead of a shell script. In Perl you can "$sess->get( [,])" to get multiple val

Problems registering AgentX (in C)

2015-08-05 Thread Ulrich Windl
Hello! I had reported problems with registering an AgentX subagent in Perl (no error, but doesn't work). Finally I found the bug that prevented it from working. Now I have a C program that uses multiple threads to retrieve and monitor some values. I tried to make this program an AgentX subagent

Strange side-effect of new NetSNMP::OID() call in AgentX subagent (Perl)

2015-08-03 Thread Ulrich Windl
Hi! I spent a whole day debugging a Perl AgentX subagent, and what I found iss as strange as can be -- can anybody explain?: When I use "my $oid = new NetSNMP::OID($OID . '.' . $ar->[0]);" in some code before "$agent = new NetSNMP::agent('Name' => $name, 'AgentX' => 1);", the agent fals to reg

Q: Extending the agent with Perl

2015-07-31 Thread Ulrich Windl
Hi! I have no success attempting to extend the SNMP agent with Perl in SLES11 SP3 (using a somewhat older version and tools): Whatever I try, my agent won't register. I also searched the Internet for tutorials, example code and explanations, but I failed. Mainly the reason for writing this is

Error im manual page snmpd.conf(5) at "storageUseNFS"

2015-07-28 Thread Ulrich Windl
Hi! I discovered this error in themanual page for snmpd.conf(5) in net-snmp-5.4.2. Maybe the bug is fixed already, but I'll let you know: First the bug results in a sentence stopping in the middle: --- storageUseNFS [1|2] controls how NFS and NFS-like file systems should be r

Antw: Q: VACM and USM

2015-06-26 Thread Ulrich Windl
>>> Ich schrieb am 22.06.2015 um 12:33 in Nachricht <5587E495.B26:161:60728>: > Hi! > > I have a simple question ;-) > > Which view do users need access to to > 1) modify theit own passwords > 2) create new users > > Obviously 1) should not include 2). > > I tried to find an answer, but failed.

Antw: Q: VACM and USM

2015-06-24 Thread Ulrich Windl
user management. Do you all just use "rwuser", or don't you know you are using "rwuser", or di you use SNMPv1? Regards, Ulrich >>> Ulrich Windl schrieb am 22.06.2015 um 12:33 in Nachricht <5587E495.B26 : >>> 161 : 60728>: > Hi! > > I hav

Q: usmUser

2015-06-22 Thread Ulrich Windl
Hi! I noticed when creating a user using "createUser" in snmpd.conf, the newly created user has "" at the end of the usmUser line, while exising users have (or get) NULL at the end of the line. I found no manual page doumenting the meaning of each field. Is there a doument explaining usmUser, i

Q: VACM and USM

2015-06-22 Thread Ulrich Windl
Hi! I have a simple question ;-) Which view do users need access to to 1) modify theit own passwords 2) create new users Obviously 1) should not include 2). I tried to find an answer, but failed. Using net-snmp 5.4.2.1 ... Regards, Ulrich