Re: snmptrap v3 authentication

2023-04-25 Thread Niels Baggesen via Net-snmp-coders
Which trap receiver are you using? snmptrapd, or something else? /Niels Den 25-04-2023 kl. 15:10 skrev Simon Chamlian: I tried the command: snmptrap -v 3 -u  Simon  -a MD5 -A  SimonPass -l authNoPriv 172.27.37.227 "" coldStart.0 (with security name  : Simon and  authentication password  :

Re: HEX- String instead of Octet - String - incase of inetAddress

2019-12-04 Thread Niels Baggesen via Net-snmp-coders
On Tue, Dec 03, 2019 at 04:45:30PM +, Bek, Anshul wrote: > > For 9.9.156.1.1.2.1.7.1 and 9.9.156.1.1.2.1.7.2, its basically an InetAddress. > > I have 2 queries: > > > 1. Is there any way to get only these 2 InetAddress as Hex-string. I can > see that in sprint_realloc_octet_string()

Re: MAC Address As Index

2019-09-11 Thread Niels Baggesen via Net-snmp-coders
On Wed, Sep 11, 2019 at 12:40:38PM +0530, Krishna Chaitanya wrote: > > BTW, somehow the response from Neils is missed but found it in the archive. > > > > https://www.mail-archive.com/net-snmp-coders@lists.sourceforge.net/msg21705.html > > > > MacAddress TC from SNMPv2-TC is a fixed size string,

Re: MAC Address As Index

2019-08-22 Thread Niels Baggesen via Net-snmp-coders
On Tue, Aug 20, 2019 at 06:14:34PM +0530, Krishna Chaitanya wrote: > Hi, > > When using MAC Address as an index ( I am using MacAddress type from > SNMPv2-TC.) the output is incorrect because the length of the string > is prefixed as mac address is defined as OCTET STR there is an extra > byte

Re: Set OID value in code

2019-07-30 Thread Niels Baggesen via Net-snmp-coders
On Mon, Jul 29, 2019 at 03:19:56PM -0400, Ryan Frost wrote: > Good afternoon, > > I am familiar with the CLI commands and can also get OID values in code but > I need to set them in code. How do I go about doing this? I’m using > read_objid to print them similar to the example but I need to be

Re: Update UCD-SNMP-MIB variable type

2019-05-13 Thread Niels Baggesen via Net-snmp-coders
On Mon, May 13, 2019 at 10:08:58AM +0200, Ilya Etingof wrote: > > > The currelt 5.8 release (and unreleased 5.7 update) should already > > contain objects like memTotalRealX which are defined as > > CounterBasedGauge64 > > > > Unfortunately I don't have hardware to test it :-) > > Just in case

Re: Update UCD-SNMP-MIB variable type

2019-05-13 Thread Niels Baggesen via Net-snmp-coders
On Mon, May 13, 2019 at 02:56:46AM -0400, Josef Ridky wrote: > Hi folks, > > I would like to know your opinion on following issue. > > UCD-SNMP-MIB [1] uses INTEGER32 instead of COUNTER64 for memory OIDs which > limits the reporting to 2 TiB (using KiB as the base). > Large modern servers often

Re: Parsing the values returned from snmp_synch_response

2019-05-03 Thread Niels Baggesen via Net-snmp-coders
On Thu, May 02, 2019 at 05:51:03PM +, Even Oscar Andersen wrote: > (Repost of message sent to net-snmp-users, maybe this forum is more > appropriate) > > Hello, > > I am calling snmp_synch_response, and try to use the resulting variables, > > It seems part of the result return variable

Re: SNMP Command

2019-05-01 Thread Niels Baggesen via Net-snmp-coders
Den 26-04-2019 kl. 17:22 skrev HOUASLI, Samir via Net-snmp-coders: I use this command: snmpd -m /home/snet/execution/staticCFG/MibCoSNET.txt -v1 -c public localhost .1.3.6.1.4.1.4747.14.5.16.2.0 which allows me to have as an output: LOG-MIB::sysOperEvalNodeCmdOrder.0 = INTEGER: oper(1) I want

Re: Junk in snmpwalk output

2018-10-05 Thread Niels Baggesen via Net-snmp-coders
On Fri, Oct 05, 2018 at 09:52:07AM +0200, Gisle Vanem via Net-snmp-coders wrote: > >You should see similar data from IP-MIB in a more readable form. > > Perfect! But I have no idea what a "DISPLAY-HINT" should do. It will tell how the octets should be presented. Look at IP-MIB, you will get

Re: Junk in snmpwalk output

2018-10-04 Thread Niels Baggesen via Net-snmp-coders
Den 05-10-2018 kl. 00:56 skrev Gisle Vanem via Net-snmp-coders: With this command:   snmpwalk.exe -M mibs -m ALL -v1 -c public 10.0.0.21 I've getting lines with junk in the output:   IPV6-MIB::ipv6NetToMediaValid.1.''.12 = INTEGER: true(1) It is trying to show an OCTET

Re: [PATCH / request for votes] SNMP-TARGET-MIB: Fix snmpTargetAddrTAddress

2018-06-18 Thread Niels Baggesen via Net-snmp-coders
Den 18-06-2018 kl. 19:31 skrev Anders Wallin: +1 but I'm not sure my vote counts, since I was the one reporting the bug +1, and my vote should count :-) /Niels -- Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net The purpose of computing is insight, not numbers --- R

Re: [PATCH, RFC] Add Travis and Appveyor CI support

2018-05-17 Thread Niels Baggesen via Net-snmp-coders
Den 17-05-2018 kl. 15:54 skrev Robert Story: On Wed, 16 May 2018 07:23:32 -0700 Bart wrote: BVA> This patch makes it possible to enable Travis and Appveyor BVA> continuous integration support. On Travis Net-SNMP is built BVA> with all MIBs, with --disable-set-support, with BVA>

Re: CFV: complete fix for setting engineBoots/Time via cli

2018-05-17 Thread Niels Baggesen via Net-snmp-coders
Den 17-05-2018 kl. 13:48 skrev Robert Story: A fix in pre2 or pre3 fixed use of -Z command line argument for setting engineBoots/engineTime. The snmptrap app needs to be fixed as well. [PATCH] also fix snmptrap for setting engineBoots and engineTime (e.g. -Z cli arg) An addendum for earlier

PATCH at_solaris.c

2018-05-15 Thread Niels Baggesen via Net-snmp-coders
The new at_solaris access module does not compile. May I solicit votes for this patch for the missing include file? diff --git a/agent/mibgroup/mibII/data_access/at_solaris.c b/agent/mibgroup/mibII/data_access/at_solaris.c index 0a92ec0..b14a999 100644 ---

Re: RFC: fix clientaddr for 5.8

2018-05-14 Thread Niels Baggesen via Net-snmp-coders
Den 14-05-2018 kl. 20:05 skrev Robert Story: +1 on both counts (commit it, but use cherry-pick). +1 (and I wouldn't mind the OpenBSD part getting merged too) /Niels -- Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net The purpose of computing is insight, not numbers ---

Suggested patch to support NetBSD 8

2018-05-14 Thread Niels Baggesen via Net-snmp-coders
The patch that went into 5.7-patches is not sufficient for NetBSD 8 on 5.8 The following patch to 5.8.RC1 is required. May I solicit some votes? diff --git a/agent/mibgroup/mibII/at.h b/agent/mibgroup/mibII/at.h index 1676cb6..e89b966 100644 --- a/agent/mibgroup/mibII/at.h +++

Re: [PATCH for master / request for votes] configure.ac: Fix recently introduced autoreconf warnings

2018-05-07 Thread Niels Baggesen via Net-snmp-coders
Den 07-05-2018 kl. 06:13 skrev Bart Van Assche: A recent patch introduced an invocation of AC_CHECK_HEADER before AC_AIX. However, AC_AIX must be invoked before AC_CHECK_HEADER. Hence move AC_AIX from configure.d/config_os_progs into configure.ac. Additionally, since AC_AIX is obsolete, use

Re: NET-SNMP version: 5.7.3 and IPv6

2018-01-24 Thread Niels Baggesen via Net-snmp-coders
On Wed, Jan 17, 2018 at 10:58:40AM -0500, Simon Chamlian wrote: > but these tokens are not recognized: > ./snmpd.conf: line 12: Warning: Unknown token: rocommunity6. > ./snmpd.conf: line 13: Warning: Unknown token: rwcommunity6. This means that snmpd did not understand you config, and

Re: NET-SNMP version: 5.7.3 and IPv6

2018-01-24 Thread Niels Baggesen via Net-snmp-coders
n Wed, Jan 17, 2018 at 10:58:40AM -0500, Simon Chamlian wrote: > but these tokens are not recognized: > ./snmpd.conf: line 12: Warning: Unknown token: rocommunity6. > ./snmpd.conf: line 13: Warning: Unknown token: rwcommunity6. This means that snmpd did not understand you config, and

Re: [SCM] Net-SNMP branch master updated. v5.7.3-2342-gbe94477

2018-01-11 Thread Niels Baggesen via Net-snmp-coders
On Fri, Dec 15, 2017 at 09:28:37PM +, Robert Story via Net-snmp-cvs wrote: > commit 9e49de2e03b18ceb1b7cba2e715ad6180f394815 > Author: Robert Story > Date: Thu Dec 14 11:53:13 2017 -0500 > > NEWS: snmplib: AES-192/AES-256 compatibility with SNMP Research / CISCO >