snmptrap : use hostname in source address field
Pushpa Thimmaiah <[email protected]> Wed, 3 Apr 2024 11:40:58 +0530
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <CAASqVJVZuQyba6fBcK4QshtpbM3L9tyFCkn-EiU8fsJPcedb=g@mail.gmail.com> |
Hi All,
For snmpv2c traps, Is it possible to configure hostname in the field of
source address
Eg:
*Current behaviour: snmptrap received at manager*
2024-04-03 09:09:54 192.168.112.122(via UDP:
[192.168.112.122]:35620->[192.168.168.136]:162)
TRAP, SNMP v1, community public
iso.3.6.1.4.1.8072.2.3.1 Enterprise Specific Trap (17) Uptime: 4 days,
15:30:06.57
iso.3.6.1.4.1.8072.2.1.1 = INTEGER: 123456
*Expected behviour:*
2024-04-03 09:09:54 192.168.112.122(via UDP:
[snmp_agent_122]:35620->[192.168.168.136]:162)
TRAP, SNMP v1, community public
iso.3.6.1.4.1.8072.2.3.1 Enterprise Specific Trap (17) Uptime: 4 days,
15:30:06.57
iso.3.6.1.4.1.8072.2.1.1 = INTEGER: 123456
or
2024-04-03 09:09:54 192.168.112.122(via UDP:
[192.168.112.122_agent_122]:35620->[192.168.168.136]:162)
TRAP, SNMP v1, community public
iso.3.6.1.4.1.8072.2.3.1 Enterprise Specific Trap (17) Uptime: 4 days,
15:30:06.57
iso.3.6.1.4.1.8072.2.1.1 = INTEGER: 123456
Kindly guide.
Thanks,
Pushpa.T
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders