Memory leak with net-snmp agent v3 ?

2024-02-16 Thread Vincent Gilson via Net-snmp-coders
Hi, I managed to do a secure DTLS comm between my laptop (snmpget) and my embedded device net-snmp agent. But I noticed there's somewhere a memory leak on the Agent (embedded device) side : I see some 12KB amount of memory taken by the agent each time it successfully handles such request

Re: SIGHUP for changing SNMP agent Port

2024-01-09 Thread Feroz
769 > > > On Mon, 8 Jan 2024 at 22:52, Wes Hardaker > wrote: > >> Vivek Aditya writes: >> >> > I want the SNMP to start listening on a new agent port without restart. >> > Just sending SIGHUP to snmpd does not work. >> > >> > Is there a

Re: SIGHUP for changing SNMP agent Port

2024-01-09 Thread Vivek Aditya
. Any help or suggestion is appreciated. review link - https://github.com/net-snmp/net-snmp/pull/769 On Mon, 8 Jan 2024 at 22:52, Wes Hardaker wrote: > Vivek Aditya writes: > > > I want the SNMP to start listening on a new agent port without restart. > > Just sending S

Re: SIGHUP for changing SNMP agent Port

2024-01-08 Thread Wes Hardaker via Net-snmp-coders
Vivek Aditya writes: > I want the SNMP to start listening on a new agent port without restart. > Just sending SIGHUP to snmpd does not work.  > > Is there a way to do it or has this issue already been fixed? Any help > would be appreciated. That's a good feature request,

SIGHUP for changing SNMP agent Port

2024-01-08 Thread Vivek Aditya
Hi Team, I want the SNMP to start listening on a new agent port without restart. Just sending SIGHUP to snmpd does not work. Is there a way to do it or has this issue already been fixed? Any help would be appreciated. -- Warm Regards, Vivek Aditya

Re: Node Sub-Agent on Windows

2022-02-09 Thread Ian C via Net-snmp-coders
}  }   public closeSubAgent() {    this.subagent.unregisterProvider(myTableProvider, ()=>{} );    this.subagent.close (() => {});  }} // Default suboptionsvar suboptions = {    debug: true,    master: "localhost",    masterPort: 705,    timeout: 0,    description: "Node net-snmp AgentX sub-agent&quo

Node Sub-Agent on Windows

2022-02-09 Thread Ian C via Net-snmp-coders
rror ("Subagent Get MIB failure");        }    }  }   public closeSubAgent() {    this.subagent.unregisterProvider(myTableProvider, ()=>{} );    this.subagent.close (() => {});  }} // Default suboptionsvar suboptions = {    debug: true,    master: "localhost",    masterPort: 705,    timeout: 0,    description

Re: Agent+Sub-Agent

2021-09-17 Thread Magnus Fromreide
On Wed, Sep 08, 2021 at 02:17:14PM -0400, Bill Fenner wrote: > On Fri, Sep 3, 2021 at 3:43 AM Feroz wrote: > > > My question is, is there a way to block an agent from responding to > > queries ( by timeout), till time the sub-agent connects to the agent. > > > &g

Re: Agent+Sub-Agent

2021-09-17 Thread Feroz
p:127.0.0.1:9 .1.3" in > snmpd.conf file.. > Unfortunately I still get "No Such Instance currently exists at this OID", > for some time, whenever I restart the sub-agent. > > > On Wed, Sep 8, 2021 at 11:47 PM Bill Fenner wrote: > >> On Fri, Sep 3, 2021 at 3:43

Client application recieves only timeouts once agent is reset

2021-09-14 Thread Caleb Hensley
Hello, Please let me know if this belongs in -users instead. I am using libsnmp30, v5.7.3, in a C++ client application on Debian Stretch. I'm using it to communicate with a managed PoE switch. Using the TUT:Simple_Application on the net-snmp wiki. I am able to set and get PoE status, among other

Re: Agent+Sub-Agent

2021-09-12 Thread Feroz
For my testing I added "proxy -v2c -c public udp:127.0.0.1:9 .1.3" in snmpd.conf file.. Unfortunately I still get "No Such Instance currently exists at this OID", for some time, whenever I restart the sub-agent. On Wed, Sep 8, 2021 at 11:47 PM Bill Fenner wrote: > On F

Re: Agent+Sub-Agent

2021-09-10 Thread Feroz
Hi Bill, I have only one sub-agent running on the same box. Let me test by adding the proxy configuration in snmpd.conf that you shared. i.e: "proxy udp:127.0.0.1:9 .1.3" Thanks a lot for your response. -Feroz On Wed, 8 Sep, 2021, 11:47 pm Bill Fenner, wrote: > On Fri, Sep 3, 20

Re: Agent+Sub-Agent

2021-09-08 Thread Bill Fenner
On Fri, Sep 3, 2021 at 3:43 AM Feroz wrote: > My question is, is there a way to block an agent from responding to > queries ( by timeout), till time the sub-agent connects to the agent. > No, the master agent always lives under the impression that it knows everything. You may be abl

Agent+Sub-Agent

2021-09-03 Thread Feroz
Hi, I have an agent/sub-agent model. I have moved the implementation of System-MIB to a sub-agent. While the sub-agent is still connecting to agent, if someone queries for " SNMPv2-MIB::sysObjectID.0", agent is responding with "*No Such Object available on this agent at this OID*

Re: NOOB Question - Adding Enterprise MIBs to an Agent

2021-02-28 Thread Craig Small
k at the net SNMP tutorials and get the tutorial MIB going first because its a known quantity. Then once you're happy that works, try it with your own MIB. You could also use a sub-agent which is a special SNMP agent just for your collection of items. - Craig ___

NOOB Question - Adding Enterprise MIBs to an Agent

2021-02-25 Thread Michael Klett
Net SNMP Coder, I'm brand new at this, a noob. We have a working product running on an RTOS that is an SNMP Agent and it provides several MIBs / OiDs to the outside world. At this point I'm not even smart enough to know what questions I should be asking. We have decided to use Lin

snmpd crash intermittently, when agent/subagent gets restarted with config changes.

2020-12-09 Thread SURYA T S
inously reproducible but seeing intermittently, when snmp agent/subagent restarts, and snmpwalk happens in the background. Please help me understand the issue further and help me with the patch/ if this issue is already taken care in the upstream. Thanks, Surya

Re: Connect 1 agent/application to several snmpd/master

2020-11-17 Thread Philippe Guibert
n attached to multiple upstream parent agents. SNMP SETs, > in particular, go through a multi-phase transition to ensure you can > safely perform and/or undo a SET. Right now, that handling is done in > the parent agent to ensure that only one SET is handled at a time. > > > I

Re: Connect 1 agent/application to several snmpd/master

2020-11-12 Thread Wes Hardaker via Net-snmp-coders
is done in the parent agent to ensure that only one SET is handled at a time. I suspect there are some other issues to think about too. -- Wes Hardaker Please mail all replies to [email protected] ___ Net-snmp-coders mailing

Re: Connect 1 agent/application to several snmpd/master

2020-11-09 Thread Philippe Guibert
connection. The following is proposed: - extend agentx subagent code to multiple sessions a linked list of config sessions is created indexed by agentxsocket path the sub agent code is modified accordingly. at registration/unregistration of the session, a reference is done between netsnmp_session and

Re: Connect 1 agent/application to several snmpd/master

2020-11-06 Thread Philippe Guibert
Hi all, I am in progress of implementing more than one parent agent for one agentX. The problem I try to solve is that I have multiple MIB with same OID but different vrfs. Do you have any proposals on how to stick MIBs to one dedicated parent connection ? >From the sub agent trap code, I

Re: Connect 1 agent/application to several snmpd/master

2020-10-13 Thread Wes Hardaker via Net-snmp-coders
Philippe Guibert writes: > Instead of using agentX, I wonder if it could be possible to link the > application with a master agent library Somehow, the agent would be > configured as a proxy, and session would convey information over an > unixSocket to the real snmpAgent. Could it

Re: Connect 1 agent/application to several snmpd/master

2020-10-12 Thread Philippe Guibert
Thanks Wes for confirmation, Instead of using agentX, I wonder if it could be possible to link the application with a master agent library Somehow, the agent would be configured as a proxy, and session would convey information over an unixSocket to the real snmpAgent. Could it be possible

Re: Connect 1 agent/application to several snmpd/master

2020-09-18 Thread Wes Hardaker via Net-snmp-coders
Philippe Guibert writes: > I think you can confirm me it is not possible to 1 agent: N masters > relationships ? That is correct, the current code does not support more than one parent agent. -- Wes Hardaker Please mail all replies to [email protected]

Perl extension NetSNMP::agent. How to get value in perl through "snmpset"

2020-09-16 Thread Drovalev R.N.
x27;); use NetSNMP::agent (':all'); use NetSNMP::ASN qw(ASN_IPADDRESS ASN_GAUGE ASN_OCTET_STR); sub hello_handler { my ($handler, $registration_info, $request_info, $requests) = @_; my $request; my $string_value = "1234"; my $string_ASN = ASN_OC

Connect 1 agent/application to several snmpd/master

2020-09-11 Thread Philippe Guibert
namespace. I investigated the code. Among trials I did, I tried to call twice init_snmp() with two different config parameters - two files -, without success. I think you can confirm me it is not possible to 1 agent: N masters relationships ? So I was wondering if current external API of net-snmp

View Access Control not working in case of v2c traps in SNMP AGENT

2020-03-16 Thread Jindal, Rohit via Net-snmp-coders
Hi, I have configured the v2c traps with the community which is not created on the agents. Ideally traps should not be sent to these type of destinations, as community does not have proper access permission. But I am receiving the traps for these destination. RFC 2573 Reference: The appropria

Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-06 Thread Magnus Fromreide
On Mon, Feb 03, 2020 at 12:49:33AM +0100, Philippe Denis wrote: > > > Le 3 f??vr. 2020 ?? 00:41, Philippe Denis a ??crit : > > > > ???Hello, > > > > I???ve succeeded to connect the sub-agent and the master agent by using the > > /var/agents/maste

Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-06 Thread Philippe Denis
. Cordialement Philippe DENIS > Le 5 févr. 2020 à 21:26, Larry Hayes a écrit : > >  > I am no expert, but I also run snmpd and a custom sub agent configuration. > Your sub agent should be registering with the master what OIDs it will handle: > One line for each MIB. > >

Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-05 Thread Larry Hayes
I am no expert, but I also run snmpd and a custom sub agent configuration. Your sub agent should be registering with the master what OIDs it will handle: One line for each MIB. REGISTER_SYSOR_TABLE(companyx_oid, companyx_oid_len, "Top level MIB for Company products"); REGISTER_S

Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-04 Thread Philippe Denis
Hello all, I've performed some actions to fix my problem(s) but I'm not sure the situation is the one that I though; it's. I though the Agentx and master agent are connected based on the following behaviour: - I've started the Master agent followed by the Agentx, I got a

Re: snmp agent responds to v3 requests and v2c only requests

2020-02-04 Thread Nagarjun G
, 2020 at 12:55 AM Nagarjun G > wrote: > >> Hi All, >> >> We have been using net-snmp to manage our devices. We have a new >> requirement now which is described below. >> >> My current configuration is as below : >> I have an snmp agent which can be

Fwd: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-02 Thread Philippe Denis
Expéditeur: Philippe Denis > Date: 3 février 2020 à 00:41:11 UTC+1 > Destinataire: Magnus Fromreide > Objet: Rép: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master > Agent > > Hello, > > I’ve succeeded to connect the sub-agent and the master agent by

Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-02 Thread Philippe Denis
> Le 3 févr. 2020 à 00:41, Philippe Denis a écrit : > > Hello, > > I’ve succeeded to connect the sub-agent and the master agent by using the > /var/agents/master in the c code and also in conf. Files. > > Both are exchanging request but no value is received from

Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-02 Thread Magnus Fromreide
On Sun, Feb 02, 2020 at 02:13:59PM +0100, Philippe Denis wrote: > Hello all, > > I've a problem to communicate with my subAgent through the Master Agent. > I've used the option -Dnetsnmp_udpbase and the message is correctly > received at master Agent level (of course

Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-02 Thread Philippe Denis
Hello all, I've a problem to communicate with my subAgent through the Master Agent. I've used the option -Dnetsnmp_udpbase and the message is correctly received at master Agent level (of course, the one which send from remote PC or localhost). The Master Agent is not responding to t

Re: snmp agent responds to v3 requests and v2c only requests

2020-01-14 Thread Larry Hayes
; > We have been using net-snmp to manage our devices. We have a new > requirement now which is described below. > > My current configuration is as below : > I have an snmp agent which can be configured to run any version(v1/v2c/v3) > of snmp. > We are currently accessing the snmp a

snmp agent responds to v3 requests and v2c only requests

2020-01-13 Thread Nagarjun G
Hi All, We have been using net-snmp to manage our devices. We have a new requirement now which is described below. My current configuration is as below : I have an snmp agent which can be configured to run any version(v1/v2c/v3) of snmp. We are currently accessing the snmp agent through mib

RE: snmpa agent get_next bad oid combination

2019-05-22 Thread Ming Chen via Net-snmp-coders
19 6:15 AM To: [email protected] Subject: snmpa agent get_next bad oid combination Hi! We are using version 5.7.3 on an embedded system. We noticed segmentation errors in our dynamically loded module. The issue was that one of the requests had null pointer at parent_data. The

snmpa agent get_next bad oid combination

2019-05-22 Thread Jaka Simonic
al clarification This only happens when oids are pointing at the same table and one of them is pointing at nonexistent column and another at an existing column. Otherwise the agent resolves the situation with appropriate messages. Here all of oid are nonexistent

Connecting sub-agent to Master agent

2019-03-01 Thread RAHUL SHARMA
Hi All, Can one sub agent be connected to multiple master agents running on a system? If yes, how can that be achieved? Thanks, Rahul Sharma. ___ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists

Re: Source Address based Configuration Control in SNMP Agent

2018-12-18 Thread prabu varadharajan
tials should be strong one. FYI, my agent will support any one version at a time. On Tue 18 Dec, 2018 11:04 pm Wes Hardaker, wrote: > prabu varadharajan writes: > > > But as per the design, my agent will be configured with only one user > > which can be updated as rouse

Re: Source Address based Configuration Control in SNMP Agent

2018-12-18 Thread Wes Hardaker via Net-snmp-coders
prabu varadharajan writes: > But as per the design, my agent will be configured with only one user > which can be updated as rouser or rwuser. So can you please suggest > any other way to achieve this if possible? You can't have a single user with different access levels, sor

Re: Source Address based Configuration Control in SNMP Agent

2018-12-18 Thread prabu varadharajan
Thanks for the response, Wes. But as per the design, my agent will be configured with only one user which can be updated as rouser or rwuser. So can you please suggest any other way to achieve this if possible? On Mon, Dec 17, 2018 at 11:01 PM Wes Hardaker < [email protected]>

Re: Source Address based Configuration Control in SNMP Agent

2018-12-17 Thread Wes Hardaker via Net-snmp-coders
prabu varadharajan writes: > createUser admin MD5 password AES password123 > rwuser admin priv Those lines will provide you the ability for the 'admin' user to configure the mibs in question. To have a different manager only use "read-only" support, then create a different user with something l

Re: Source Address based Configuration Control in SNMP Agent

2018-12-16 Thread prabu varadharajan
gt; But how can I achieve the same in case of SNMPv3? Please advise. > > If my Agent is configured in SNMPv3, the following directives will be > available in the snmpd.conf file, > > createUser admin MD5 password AES password123 > rwuser admin priv > > I tried to do the source

Re: Source Address based Configuration Control in SNMP Agent

2018-12-15 Thread Michael Schwartzkopff
ch can read the > configuration(GET) where *only one NMS can write the configurations*(SET). > > This can be achieved by adding the following directive in snmpd.conf in > case of SNMPv1 and SNMPv3, > > rwcommunity public 192.168.1.1 > > But how can I achieve the same in case of SN

Source Address based Configuration Control in SNMP Agent

2018-12-15 Thread prabu varadharajan
*(SET). This can be achieved by adding the following directive in snmpd.conf in case of SNMPv1 and SNMPv3, rwcommunity public 192.168.1.1 But how can I achieve the same in case of SNMPv3? Please advise. If my Agent is configured in SNMPv3, the following directives will be available in the

Re: Net-snmp 5.7.3 Yocto - [No Such Object available on this agent at this OID]

2018-08-28 Thread Wes Hardaker via Net-snmp-coders
red with the agent? -- Wes Hardaker Please mail all replies to [email protected] -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.

Re: Net-snmp 5.7.3 Yocto - [No Such Object available on this agent at this OID]

2018-08-28 Thread Wes Hardaker via Net-snmp-coders
Simon Chamlian writes: > Did anyone used net-snmp under systemd ? Lots of linux distros package systemd config with their net-snmp packages, so definitely "yes". -- Wes Hardaker Please mail all replies to [email protected] ---

Re: Net-snmp 5.7.3 Yocto - [No Such Object available on this agent at this OID]

2018-08-24 Thread Simon Chamlian
Did anyone used net-snmp under systemd ? On Thu, Aug 23, 2018 at 3:24 PM, Simon Chamlian wrote: > Hi, > > I have been working several days on this issue without any success. > > On our old Linux embedded system (using LTIB - Linux target Integrated > Builder), the agent was

Net-snmp 5.7.3 Yocto - [No Such Object available on this agent at this OID]

2018-08-23 Thread Simon Chamlian
Hi, I have been working several days on this issue without any success. On our old Linux embedded system (using LTIB - Linux target Integrated Builder), the agent was working fine. Now I am trying to port it on a new system using Yocto to build the image. Basically I have my own MIB and

Re: Adding c files to build agent

2018-08-21 Thread Bart Van Assche
On 08/21/18 07:52, Simon Chamlian wrote: > It is not that easy in my case because I am cross compiling the agent > for an embedded target system. Also, the whole package is being compiled > from within Yocto (bitbake). > > So I ran ./configure --with-mib-modules " file1 file2&

Re: Adding c files to build agent

2018-08-21 Thread Simon Chamlian
It is not that easy in my case because I am cross compiling the agent for an embedded target system. Also, the whole package is being compiled from within Yocto (bitbake). So I ran ./configure --with-mib-modules " file1 file2" I noticed this created couple of Makefiles. Then I ran

Re: Adding c files to build agent

2018-08-21 Thread Bart Van Assche
On 08/21/18 06:01, Simon Chamlian wrote: > Any pointers on how I can use AgentX ? Please keep the list in Cc: when replying. More information about AgentX is available at http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent. Since it has been a while since that page has been upda

Re: Adding c files to build agent

2018-08-20 Thread Bart Van Assche
On 08/20/18 13:26, Simon Chamlian wrote: > I am trying to adapt the agent to our requirements. In order to do so, I > need to add some code (c files) to the agent to handle our own MIB. > > The agent is running on an embedded system (Linux-systemd) using Yocto > to build it. >

Adding c files to build agent

2018-08-20 Thread Simon Chamlian
Hi, I am trying to adapt the agent to our requirements. In order to do so, I need to add some code (c files) to the agent to handle our own MIB. The agent is running on an embedded system (Linux-systemd) using Yocto to build it. Where (in which makefile) do I add my own code? I need to do

Re: Vacm table getting reset after agent reload

2018-07-12 Thread Wes Hardaker via Net-snmp-coders
You seem to have a general problem with persistence. By default the storage of the persistent data (including USM users and VACM access control modifications) should go in /var/net-snmp/snmpd.conf. You should *never* edit that file by hand. But you can try to send your agent a new user, make

Vacm table getting reset after agent reload

2018-06-27 Thread RAHUL SHARMA
Hi, I created secondary snmpv3 user using the primary snmpv3 user using USM table. The user is getting created successfully and working fine. Now, when I reload the snmod.conf file by setting the OID 1.3.6.1.4.1.2021.100.11.0, the access is removed from the VACM table for that user. When I try to

no able to fetch agent parameters from MIB browser

2018-03-16 Thread Deepak Sachan
.private.enterprise.tropomModem .ctrlParam->set it shows "No such name error (agent ip address)". Should I have added following change in snmpd.conf or not # Third, create a view for us to let the groups have rights to: # incl/excl subtree m

Agent not responding to standard MIB browser (i reasoning)

2018-01-11 Thread Deepak Sachan
hello I am able to get/set parameters of my agent from my Ubuntu based client PC through command line - ​$ snmpget -u bootstrap -l authPriv -a MD5 -x DES -A temp_password -X temp_password AGENT_IP AGENT-MIB::parameter1.0 ​$ snmpget -u bootstrap -l authPriv -a MD5 -x DES -A temp_password -X

Re: Agent not responding to standard MIB browser (i reasoning)

2017-12-20 Thread Robert Story
On Tue 2017-12-19 09:54:57+0530 Deepak wrote: > I am able to get/set parameters of my agent from my Ubuntu based > client PC through command line - > > [snip] > > Now I have loaded MIB into i reasoning MIB browser. From them i am > unable to fetch agent`s parameters.

RE: Extending Net-SNMP Agent for reading physical variables in Embedded Linux

2017-07-11 Thread Fernández Piñas , David
Hello Bernardo, I would recommend you to extend the agent by AgentX subagents. You can write them as independent programs and then integrate them by registration with the main snmpd agent. Regards, David De: Bernardo Rodrigues [mailto:[email protected]] Enviado el: martes

Extending Net-SNMP Agent for reading physical variables in Embedded Linux

2017-07-11 Thread Bernardo Rodrigues
Hello everyone from Net-SNMP. First of all, amazing project! Thanks for this awesome tool. I'm working on a project in which I have to develop a custom SNMP Agent, which will monitor some physical variables in my equipment. It will be implemented in an Embedded Linux OS. I'm using t

Adding new token to dump traces when agent process snmp commands

2017-07-06 Thread Murali Karicheri via Net-snmp-coders
Hello Coders, I would like to use the -D option to dump traces to learn about the code and to see the code path. Is there a better option to get the traces for a snmpget command or any other snmp command processing at the agent? I have tried to add new token using the macro DEBUGMSGTL

Need Snmp agent for TI RTOS (platform tiva c series)

2017-06-06 Thread Praveen Prasad
Dear Coders, Can you please guide us in getting an SNMP agent for Ti RTOS. We are looking forward for a open source SNMP agent v2 or v3 for our Ti RTOS running on Tiva C series board. We are stuck with our development at this point. Will happy if you can provide any help regarding. Thanks

Re: Username existence disclosure from Agent

2017-05-11 Thread Lee
ERICERROR we get "Timesync Failure". > So this error can get a thought that agent is not running. (apologies if my > thinking is so bad!!) > > Please suggest which return status is more appropriate? > Also with either of them, will it affect the system architecture in any > wa

RE: Username existence disclosure from Agent

2017-05-10 Thread Madhusudhana R
Hi Lee, Thanks for the response. If SNMPERR_USM_AUTHENTICATIONFAILURE is used the error turns out to be "authProtocol or authPassword may be wrong" on ManageEngine tool. As I mentioned before, SNMPERR_USM_GENERICERROR we get "Timesync Failure". So this error can get a t

Re: Username existence disclosure from Agent

2017-05-10 Thread Lee
On 5/8/17, Ulrich Windl wrote: Madhusudhana R schrieb am 05.05.2017 um 11:16 in > Nachricht > : >> Hi Coders, >> >> Regarding a security related finding... >> >> When incorrect username is provided from manager (ManageEngine tool), the >> >> manager throws "Discovery failed for username

Re: Username existence disclosure from Agent

2017-05-08 Thread Łukasz Wrzesiński
SNMP v3 UserName is send in clear text in each SNMPv3 PDU, also for Auth and AuthPriv. You could obtain it by sniffing packages, without any SNMP query (you could check it using WireShark or something similar). Your change is pointless. 2017-05-08 8:04 GMT+02:00 Ulrich Windl : > >>> Madhusudhan

Antw: Username existence disclosure from Agent

2017-05-07 Thread Ulrich Windl
>>> Madhusudhana R schrieb am 05.05.2017 um 11:16 in Nachricht : > Hi Coders, > > Regarding a security related finding... > > When incorrect username is provided from manager (ManageEngine tool), the > manager throws "Discovery failed for username" which could be used by an > attacker to know

Username existence disclosure from Agent

2017-05-05 Thread Madhusudhana R
Hi Coders, Regarding a security related finding... When incorrect username is provided from manager (ManageEngine tool), the manager throws "Discovery failed for username" which could be used by an attacker to know whether user exists or not. I did a workaround and came up with fix. Please le

Re: Help to get started to integrate an agent module

2017-05-03 Thread Murali Karicheri
On 05/03/2017 01:02 PM, Murali Karicheri wrote: > On 05/03/2017 12:15 PM, Murali Karicheri wrote: >> Hello Coders, >> >> I am exploring how to add a agent mib module to net-snmp. I have the MIB >> definition >> text file which in this case is IEC-62439-3

Re: Help to get started to integrate an agent module

2017-05-03 Thread Murali Karicheri
On 05/03/2017 12:15 PM, Murali Karicheri wrote: > Hello Coders, > > I am exploring how to add a agent mib module to net-snmp. I have the MIB > definition > text file which in this case is IEC-62439-3-MIB.txt that have copied to mibs > folder > of net-snmp source t

Help to get started to integrate an agent module

2017-05-03 Thread Murali Karicheri
Hello Coders, I am exploring how to add a agent mib module to net-snmp. I have the MIB definition text file which in this case is IEC-62439-3-MIB.txt that have copied to mibs folder of net-snmp source tree (fetched from git://git.code.sf.net/p/net-snmp/code). My Google search landed me to

NET-SNMP agent trap v3 configuration

2016-07-05 Thread Boris Levin
Im trying to implement agent trap v3 sender using net-snmp. currently my status is im able to start snmpd and daemon is sending coldstart trap to host defined in snmpd.conf my snmpd.conf: createUser myuser SHA "12345678" AES rouser myuser auth trapsess -v 3 -u myuser -n cont

Re: How to configure snmp master agent to send traps to IPV6 target destinations

2016-05-09 Thread Surabhi Mishra
Hi Coders, I need details on how to configure */var/net-/snmp/snmpd.conf* to set IPV6 IP address as a target destination so that the snmp master agent can forward the traps to the configured IPV6 target destination. We have the below version of net-snmp with RHEL 7.1 :- *net-snmp-agent-libs

TLS for net-snmp agent

2016-03-19 Thread mahua dutta
Hi ,I have built an snmp agent(abcAgent) using net-snmp library. I have configured and build  the net-snmp latest src code using  --with-security-modules=tsm --with-transports="DTLSUDP TLSTCP" Can you pleas tell me If i have to write code to specify the CERTDIR  ? I am setting the SN

RMON agent

2016-03-16 Thread Ruth Glushkin
Dear friends, I need to support more than one devices on the same computer for RMON statistics. How to organize it better? Multiple tables of the same kind in one MIB file? Multiple MIB files of the same kind with different OIDs? On the configuration level the agents will run at the same IP wit

Re: DTLS for net-snmp agent

2016-03-08 Thread mahua dutta
Thanks I am able to enable it of own in ubuntu 14.4 platform. From: mahua dutta To: "[email protected]" Sent: Saturday, March 5, 2016 10:47 AM Subject: DTLS for net-snmp agent Hi ,I have built an snmp agent(abcAgent) using net-snmp library

DTLS for net-snmp agent

2016-03-04 Thread mahua dutta
Hi ,I have built an snmp agent(abcAgent) using net-snmp library(5.7.3). I have configured and build  the net-snmp latest src code using  --with-security-modules=tsm --with-transports="DTLSUDP TLSTCP" Can you pleas tell me If i have to write code to specify the CERTDIR  ? I am s

Re: Perl sub-agent and BITS value

2016-01-07 Thread Michael Schmitz
determine the ASN type to be passed to setValue() from the OID. Unfortunately neither SNMP::getType() nor accessing the element in %SNMP::MIB will help here, both return BITS.   > Hi all, >   > I managed to implement my own sub-agent in Perl using Agent.pm and it > works pretty well apa

Perl sub-agent and BITS value

2016-01-04 Thread Michael Schmitz
Hi all,   I managed to implement my own sub-agent in Perl using Agent.pm and it works pretty well apart from one point. The MIB the sub-agent is dealing with contains one object that is defined in this way:       XxxEntry ::= SEQUENCE {     internalError     TCRMINTERNALERROR

Re: Handling SNMP V1 traps with IPV6 address in agent-addr field

2015-08-05 Thread Niels Baggesen
Den 05-08-2015 kl. 11:01 skrev Spandana Kadiri: > I used Net-SNMP 5.7.3 source and created an application that receives traps. > But when a V1 trap with IPV6 address in agent-addr field arrives, > sess_snmp_read() is dropping the packet due to parse error. > The following error is gi

Handling SNMP V1 traps with IPV6 address in agent-addr field

2015-08-05 Thread Spandana Kadiri
Hi, I used Net-SNMP 5.7.3 source and created an application that receives traps. But when a V1 trap with IPV6 address in agent-addr field arrives, sess_snmp_read() is dropping the packet due to parse error. The following error is given: *Bad parse of ASN.1 type (parse string length 16 too large

Re: Is it possible to embed the SNMP agent into the application?

2015-07-08 Thread Robert Story
On Wed, 28 Jan 2015 10:59:28 +0300 Алексей wrote: > I use Windows and generally the SNMP agent is implemented as a > DLL which is loaded by the SNMP service when the system starts. > Now I have a question: can I embed the SNMP agent in my C++ > application, so that the application at

Re: Using SNMP Agent to retrieve Sensor Data

2015-07-07 Thread Robert Story
On Thu, 16 Apr 2015 09:48:31 +0200 Christian wrote: CM> I have got some basic questions about SNMP here. A CM> Microcontroller with a SNMP Agent is supposed to be conneted to CM> a Manager. The Controller is connected to a Shared Memory CM> containing sensor informations I want to ac

RE: Writing a custom sub agent for a oid prefix

2015-07-03 Thread Mani Pooni
rom: Magnus Fromreide [mailto:[email protected]] Sent: Tuesday, June 30, 2015 2:42 PM To: Mani Pooni Cc: [email protected] Subject: Re: Writing a custom sub agent for a oid prefix On Tue, Jun 30, 2015 at 08:53:16PM +, Mani Pooni wrote: > I am trying to use net-snmp to wr

Re: Writing a custom sub agent for a oid prefix

2015-06-30 Thread Magnus Fromreide
On Tue, Jun 30, 2015 at 08:53:16PM +, Mani Pooni wrote: > I am trying to use net-snmp to write my own subagent. My use case is like > this. I want anything with a specific oid prefix needs to forwarded to my > subagent. I have looked at the autogenerated code. But for that I need to > defin

Writing a custom sub agent for a oid prefix

2015-06-30 Thread Mani Pooni
I am trying to use net-snmp to write my own subagent. My use case is like this. I want anything with a specific oid prefix needs to forwarded to my subagent. I have looked at the autogenerated code. But for that I need to define to generate code for every table. Is there any example code someon

Using SNMP Agent to retrieve Sensor Data

2015-04-16 Thread Christian Meier
I have got some basic questions about SNMP here. A Microcontroller with a SNMP Agent is supposed to be conneted to a Manager. The Controller is connected to a Shared Memory containing sensor informations I want to access via the mananger. So my questions is how it is possible to access the data

Re: GETBULK with Sub-Agent

2015-03-09 Thread Bill Fenner
wrote: >>> >>>> On Wed, Mar 4, 2015 at 11:51 AM, Thomas Besemer < >>>> [email protected]> wrote: >>>> >>>>> I am working with net-snmp 5.7.3, and will be using several Sub-Agents >>>>> in my project, with fair

Re: GETBULK with Sub-Agent

2015-03-07 Thread Thomas Besemer
[email protected]> wrote: >>> >>>> I am working with net-snmp 5.7.3, and will be using several Sub-Agents >>>> in my project, with fairly large amounts of data. I have noted that >>>> issuing a 'snmpbulkwalk' to Master Agent results in this

Re: GETBULK with Sub-Agent

2015-03-06 Thread Bill Fenner
ts >>> in my project, with fairly large amounts of data. I have noted that >>> issuing a 'snmpbulkwalk' to Master Agent results in this broken down into >>> GETNEXT requests to the Sub-Agent. This results in a lot of network >>> traffic, as well as a tr

Re: GETBULK with Sub-Agent

2015-03-05 Thread Thomas Besemer
t; 'snmpbulkwalk' to Master Agent results in this broken down into GETNEXT >> requests to the Sub-Agent. This results in a lot of network traffic, as >> well as a tremendous number of context switches (everything running on same >> host). >> >> Is there sup

Re: GETBULK with Sub-Agent

2015-03-05 Thread Bill Fenner
On Wed, Mar 4, 2015 at 11:51 AM, Thomas Besemer wrote: > I am working with net-snmp 5.7.3, and will be using several Sub-Agents in > my project, with fairly large amounts of data. I have noted that issuing a > 'snmpbulkwalk' to Master Agent results in this broken down into

Fwd: Fw: is it possible to convert an net-snmp based agent to windows extention agent dll ?

2015-03-04 Thread Mahua dutta
I like to convert an existing net-snmp based agent in to windows extention agent by providing required wrapper apis like SnmpExtensionInit SnmpExtensionTrap SnmpExtensionQuery and to do ofcorse need to convert the structure of windows <> net-snmp . I looked at the *s

GETBULK with Sub-Agent

2015-03-04 Thread Thomas Besemer
I am working with net-snmp 5.7.3, and will be using several Sub-Agents in my project, with fairly large amounts of data. I have noted that issuing a 'snmpbulkwalk' to Master Agent results in this broken down into GETNEXT requests to the Sub-Agent. This results in a lot of network t

snmp agent handler chain

2015-03-03 Thread Patrick Cumming
Hi I am fairly new to net snmp and have a question that is puzzling me regarding injecting user defined Netsnmp_Node_Handlers into the netsnmp_handler_registration. To take an example, the netsnmp_register_int_instance(..) API allows you to specify a user defined Netsnmp_Node_Handler * subhandl

Re: net-snmp5.7.3 snmpd agent hangs

2015-03-02 Thread Niels Baggesen
Den 26-02-2015 kl. 07:39 skrev a1984: > When I checked log then there were repeated calls infinitely times to > build_oid_noalloc and it was continuously going on till i kill agent. > > trace: build_oid_noalloc(): mib.c, 3774: > build_oid_noalloc: generated: iso.3.6.1.4.1.5380.1

  1   2   3   4   5   6   7   8   9   10   >