Hi Team,

I am trying snmp trap and inform with the V3 version.

snmpv3 trap is working for me when I configured agent[switch] local engine
id[0x80000b8503e0071bc9413c], in snmptrapd.conf of my
workstation/vm(host)

[switch]agent-netsnmp 5.8 ---------------------- [vm]host-netsnmp 5.7.2

SNMP TRAP (working)
============

[switch]
cat /var/net-snmp/snmptrapd-swns.conf
authCommunity log,net public
snmpTrapdAddr udp:162,udp6:162
forward default 10.1.1.2:162
createUser -e 0x80000b8503e0071bc9413c abc

process running
/usr/sbin/snmptrapd -f -C -c /var/net-snmp/snmptrapd-swns.conf -Lo -d
-Dusm,snmptrapd -p /var/run/openvswitch/snmptrapd-swns.pid

[vm]
cat snmptrapd.conf
createUser -e 0x80000b8503e0071bc9413c
authUser log,net abc

process running
(sudo snmptrapd -f -Lo -c snmptrapd.conf)

snmp inform:(not working)
===============

When i tried inform with remote-engine-id, I am getting error as below

2020-11-27T09:43:33.938004+00:00 usm: USM processing begun...
2020-11-27T09:43:33.938159+00:00 usm: Unknown Engine ID.
2020-11-27T09:43:33.938261+00:00 usm: USM processing has begun (offset 53)
2020-11-27T09:43:33.938357+00:00 usm: getting user abc
2020-11-27T09:43:33.938480+00:00 usm: match on user abc
2020-11-27T09:43:33.938610+00:00 usm: no match on engineID (80 00 1F
88 80 96 7F B4 57 30 CA C0 5F 00 00 00
2020-11-27T09:43:33.938732+00:00 : 00 )

what should be the remote-engineid configured in agent? How to make
netsnmp to take
remote-engine-id from snmptrapd.conf than the one its autogenerating.
how should i modify snmptrapd.conf in agent and host to make snmp inform working

[switch]
cat /var/net-snmp/snmptrapd-swns.conf
authCommunity log,net public
snmpTrapdAddr udp:162,udp6:162
forward default 10.1.1.2:162

createUser -e 0x121314151617
authuser log,net abc

  /usr/sbin/snmptrapd -f -C -c /var/net-snmp/snmptrapd-swns.conf -Lo
-d -Dusm,snmptrapd -p /var/run/openvswitch/snmptrapd-swns.pid

User created logs:
 2020-11-27T09:43:33.938610+00:00 usmUser: created a new user abc at
12 13 14 15 16 17
Error logs:
2020-11-27T09:43:33.938610+00:00 usm: no match on engineID (80 00 1F
88 80 C5 B4 89 01 0B DC C0 5F 00 00 00: 00 )

[vm]
root@Ubuntu3325:~# cat snmptrapd.conf
engineId 0x121314151617
createUser -e  0x121314151617 abc
authUser log,net abc


sudo snmptrapd -f -Lo -c snmptrapd.conf -d -Dusm,snmptrapd
sudo: unable to resolve host Ubuntu3325
registered debug token usm, 1
registered debug token snmptrapd, 1
snmptrapd: Freeing trap handler lists
usmUser: created a new user abc at 12 13 14 15 16 17
NET-SNMP version 5.7.2



Please help me on how to use remote-engine-id in snmptrapd.conf and
snmpd.conf, to send snmpv3 informs successfully,

Thanks,
Surya


_______________________________________________
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

Reply via email to