How to configure net-snmp to expose the agentx_send_ping() function

2018-03-06 Thread Larry Hayes
OS: Linux Net-SNMP version: 5.7.3 Build Env: OpenEmbedded yocto I am trying to build a sub agent that generates traps for events originating from another process. I do not want to start trying to generate traps until the snmpd agent is running. So I am trying to use agentx_send_ping() to detect w

Duplicate Traps being sent from a Sub Agent: unhandled PDU in logs

2018-03-15 Thread Larry Hayes
OS: Linux Net-snmp version: 5.7.3 I have written a sub agent using the net-snmp library. This sub agent opens a web socket(uWs) to a web socket server and receives events. It takes the events and maps them to traps and calls the net-snmp library functions to forward the traps to snmpd, which forwa

Re: How to configure net-snmp to expose the agentx_send_ping() function

2018-03-19 Thread Larry Hayes
7;t know if there's a > way to call agentx_send_ping() from your own subagent. But, I can share > what works for me to check if the session is established, which is to check > if "main_session != NULL". main_session is defined in > . > > Bill > > > On Tue

Re: Duplicate Traps being sent from a Sub Agent: unhandled PDU in logs

2018-03-19 Thread Larry Hayes
which the trap thread could send a message to generate a trap, on the main loop processing. Hope this helps others, that might run into the same issue. Larry On Thu, Mar 15, 2018 at 4:42 PM Larry Hayes wrote: > OS: Linux > Net-snmp version: 5.7.3 > > I have written a sub age

Limiting MIB access to snmpd

2019-01-04 Thread Larry Hayes
I have built the snmpd and a custom agentx sub agent. When I compiled the daemon and sub agent I specified the with mibs: --with-mibs=SNMPv2-MIB:RFC1213-MIB:SNMP-VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB:SNMP-FRAMEWORK-MIB:SNMP-MPD-MIB:SNMP-USER-BASED-SM-MIB:My-MIB:My-4K-EVENTS-MIB:My-4K-MIB \ When

Help with TSM configuration setup

2019-11-12 Thread Larry Hayes
using a USM user along with the Certification information. Is my understanding correct? Any helpful hints about setting up an snmp server with TSM would be appreciated. Thanks in advance Larry Hayes ___ Net-snmp-users mailing list Net-snmp-users

How to add SNMP-TSM-MIB to snmpd

2019-11-14 Thread Larry Hayes
I am using 5.8.r0 net-snmp. I have build the net-snmp library and snmpd with the flags for TSM: *--with-security-modules=tsm --with-transports=TLSTCP,DTLSUDP* *and--with-mibs=SNMP-TSM-MIB:* I can get the snmpd daemon running with self signed cert access working. Installed the TSM Mib in the

Re: How to add SNMP-TSM-MIB to snmpd

2019-11-15 Thread Larry Hayes
Hi Larry, > > you need to use "-v 3", there is no TLS support in "2c" > > Regards > Anders Wallin > > > On Thu, Nov 14, 2019 at 9:18 PM Larry Hayes wrote: > >> I am using 5.8.r0 net-snmp. >> >> I have build the net-snmp library and

Re: How to add SNMP-TSM-MIB to snmpd

2019-11-15 Thread Larry Hayes
TSM-MIB -v 3 -u v3admin -a md5 -A hello1234 -l authNoPriv 127.0.0.1 1.3.6.1.2.1.190.1.2.1.0 SNMP-TSM-MIB::snmpTsmConfigurationUsePrefix.0 = INTEGER: false(2) On Fri, Nov 15, 2019 at 10:16 AM Larry Hayes wrote: > Thanks for the suggestion, I am assuming you meant that the snmpget needed &

Behavior of snmptrapd and snmpd when using certificates (TSM, DTLS)

2019-11-20 Thread Larry Hayes
Hello, I am using net-snmp v5.8 r0. I think I have successfully configured an snmpd server to generate V3 Traps/Informs using TSM with certificates and have an snmptrapd receive those V3 Traps/Informs. As I can see the Trap/Infom data dumped to the window snmptrapd is running. My issue is, when

Re: running a script with a dynamic parameter

2019-11-26 Thread Larry Hayes
Have you tried this in your snmpd.conf file: exec [MIBOID] NAME PROG ARGS OR sh [MIBOID] NAME PROG ARGS exec and sh extensions can only be configured via the snmpd.conf file. They cannot be set up via SNMP SET requests. If you look in the snmpd.conf man pages, you will find more detail

Re: Behavior of snmptrapd and snmpd when using certificates (TSM, DTLS)

2019-11-27 Thread Larry Hayes
r's connection goes away. Anyone else seeing this behavior? On Wed, Nov 20, 2019 at 10:24 AM Larry Hayes wrote: > Hello, > > I am using net-snmp v5.8 r0. > > I think I have successfully configured an snmpd server to generate V3 > Traps/Informs using TSM with certificates and

VACM and TSM Configuration

2020-01-15 Thread Larry Hayes
oup GroupG tsm "GuestUser" access GroupG"" tsm auth exact noView noView none certSecName 1 23:E0:C5:94:81:28:A6:D9:2E:1E:1C:02:72:10:18:6E:19:A5:9A:1E --sn "GuestUser" Thanks in advance Larry Hayes ___ Ne

Real World Setup Question

2020-01-23 Thread Larry Hayes
an Inform Receiver used with different engine ids will have different authentication/encryption parameters, which would indicate that my setup is wrong. Thanks in advance Larry Hayes ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net

Re: v5.8 - Error opening specified endpoint ""

2020-03-06 Thread Larry Hayes
Have you tried specifying the listening address, I know it's optional but... snmpd -c /home/user/my_snmpd.conf -Lf /tmp/snmpd_log.txt udp:0.0.0.0:161 On Thu, Mar 5, 2020 at 11:53 AM Simon Chamlian wrote: > Hi, > > When I start snmpd agent, it exists with an error message: > Error

Re: Subagent not connecting back to Master Agent.

2020-05-22 Thread Larry Hayes
The select will update the time spec: tvp. So if it did timeout the values will be 0. You need to reset the values after each timeout. If the select is interrupted and does not time out, then the remaining time will be in the tvp. On Thu, May 21, 2020 at 2:10 PM Himanshu Sharma < himanshusharma1

Re: clientAddr in smpd conf

2020-05-27 Thread Larry Hayes
When a token is put in a conf file that does not expect it, you have to prefix it with the tag of the file it is supported by. (Not sure I worded that correctly) But try: [snmp] clientaddr 10.10.163.10 On Tue, May 26, 2020 at 5:41 PM Ganesh Lakshmanan wrote: > > Hello All, > > I created a snm

Re: snmpwalk failing with informs enabled

2020-11-18 Thread Larry Hayes
I think you are getting the Local User and the Remote User confused or what is local and what is remote. snmpwalk takes a 'local' user. That local user must be defined at the receiver of the get. IOW, the hardware you are querying. This local user needs to be tied to the engine ID of the hardwar

Re: Snmpv3 users details are not deleting from /var/net-snmp/snmpd.conf file

2020-12-14 Thread Larry Hayes
I am no expert, but do deal with creating and deleting SNMP v3 users in my job. You may have to use the tool, snmpuser to remove V3 users without restarting the snmpd daemon. >From the man page: " *snmpusm* is an SNMP application that can be used to do simple maintenance on the users known to an

Question on mib2c.genhtml.conf

2021-07-15 Thread Larry Hayes
Hello, I am trying to modify the mib2c.genhtml.conf to create a list of depreciated Notifications from my MIB file. But I am having trouble getting the STATUS of the defined notifications. Does mib2c support a status variable for notification? It works for table. I tried a simple conf file like:

Re: createUser not updated after snmpd stop and start in 5.8

2021-09-13 Thread Larry Hayes
I also create V3 users with the procedure you indicate. When you stop snmpd, it writes the persistence file. So you cannot edit that file while snmpd is running. The procedure that works for me: 1) Stop snmpd 2) Wait for PID of snmpd to go away, if you have a large number of V3 users, it lengthens

snmpd fails to send V3 Traps: Failed to find engine data

2022-03-31 Thread Larry Hayes
nt out? Or other suggestions. Thanks in advance Larry Hayes ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Re: snmpwalk: Unknown user name

2022-08-09 Thread Larry Hayes
You will need to create the SNMP V3 user. See: https://net-snmp.sourceforge.io/wiki/index.php/TUT:SNMPv3_Options for a tutoria on configuration setup. You might also want to check your access control: https://net-snmp.sourceforge.io/wiki/index.php/Vacm On Tue, Aug 9, 2022 at 3:48 AM κΉ€λ™νœ˜ wrote: