RE: net-snmp and FQDN

Raghava Kowshika Manjunatha via Net-snmp-users <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <BN3PR0601MB12848D110BEBE9877C360E93A8A00@BN3PR0601MB1284.namprd06.prod.outlook.com>
Well, in such a case, I expect that traps be sent to both destination IP addresses. In other words, I expect traps be set to all addresses returned by getaddrinfo provided an appropriate source address is available.

Best Regards,
Raghava

From: Bill Fenner [mailto:[email protected]]
Sent: 17 July 2017 16:22
To: Raghava Kowshika Manjunatha <[email protected]>
Cc: [email protected]
Subject: Re: net-snmp and FQDN

If net-snmp is running on a dual-stack host, and you give it a dual-stack destination, what is your desired behavior for this mode of operation?

  Bill


On Mon, Jul 17, 2017 at 1:42 AM, Raghava Kowshika Manjunatha via Net-snmp-users <[email protected]<mailto:[email protected]>> wrote:
Hello,

We have integrated net-snmp into our application that runs on an embedded system.
We use net-snmp to send traps to user configured trap receivers.

Until now, users could have configured only an IP address for trap receivers.
Now, we have enhanced our system so that user can configure FQDN as well for trap receivers.

We would like to feed user configured FQDN into net-snmp so that net-snmp can resolve the FQDN into an IP and determine the transport domain (UDP or UDP6) before sending the traps.

  1.  Is this possible in any of the net-snmp release versions?
  2.  If not, what workaround do you recommend?

[ We currently, resolve FQDN into IP addresses and create trap sessions for each such resolved address. This works alright but has its own limitations. For example, DNS Server should be reachable when trap sessions are being created. Also if user decides to host trap receiver on a different server (same FQDN but different IP), then he will have to reconfigure the trap receiver on our device ]

We use the following APIs to setup net-snmp for SNMP v1/v2c/v3 traps:

  1.  create_trap_session
  2.  snmpTargetAddrTable_create, snmpTargetAddrTable_add, snmpNotifyTable_create, snmpNotifyTable_add, snmpTargetParamTable_create, snmpTargetParamTable_add

We currently use net-snmp-5.4.2.1-ssl-1.

Best Regards,
Raghava

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsdm.link%2Fslashdot&data=02%7C01%7Craghavakm%40cambiumnetworks.com%7C860b61acbbdb47231ecd08d4cd01de1a%7C0e263e36340946228ac818d993e76eb6%7C1%7C0%7C636358855286453170&sdata=rmvYKXoUNGgRaHKovp2aYcT3VM5UNI6hER6cLEjGpxs%3D&reserved=0>
_______________________________________________
Net-snmp-users mailing list
[email protected]<mailto:[email protected]>
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fnet-snmp-users&data=02%7C01%7Craghavakm%40cambiumnetworks.com%7C860b61acbbdb47231ecd08d4cd01de1a%7C0e263e36340946228ac818d993e76eb6%7C1%7C0%7C636358855286453170&sdata=gYaeFizVrenXMZWckaLYrYaUiBQ6LfcpJhzoZcCxMf8%3D&reserved=0>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.