[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-users
Subject:    RE: net-snmp and FQDN
From:       Raghava Kowshika Manjunatha via Net-snmp-users <net-snmp-users () lists ! sourceforge
Date:       2017-07-17 12:31:26
Message-ID: BN3PR0601MB12848D110BEBE9877C360E93A8A00 () BN3PR0601MB1284 ! namprd06 ! prod ! outlook ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

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:fenner@gmail.com]
Sent: 17 July 2017 16:22
To: Raghava Kowshika Manjunatha <raghavakm@cambiumnetworks.com>
Cc: net-snmp-users@lists.sourceforge.net
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 \
<net-snmp-users@lists.sourceforge.net<mailto:net-snmp-users@lists.sourceforge.net>> \
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%7C860b61acbbdb47 \
231ecd08d4cd01de1a%7C0e263e36340946228ac818d993e76eb6%7C1%7C0%7C636358855286453170&sdata=rmvYKXoUNGgRaHKovp2aYcT3VM5UNI6hER6cLEjGpxs%3D&reserved=0>
 _______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net<mailto: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<https://na01.safelinks.pro \
tection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fnet- \
snmp-users&data=02%7C01%7Craghavakm%40cambiumnetworks.com%7C860b61acbbdb47231ecd08d4cd \
01de1a%7C0e263e36340946228ac818d993e76eb6%7C1%7C0%7C636358855286453170&sdata=gYaeFizVrenXMZWckaLYrYaUiBQ6LfcpJhzoZcCxMf8%3D&reserved=0>



[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
p.m-6727393185720699254msolistparagraph, li.m-6727393185720699254msolistparagraph, \
div.m-6727393185720699254msolistparagraph  \
{mso-style-name:m_-6727393185720699254msolistparagraph;  mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:976379944;
	mso-list-template-ids:937185670;}
@list l1
	{mso-list-id:1933200735;
	mso-list-template-ids:-736851478;}
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;mso-fareast-language:EN-US">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.<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;mso-fareast-language:EN-US">Best \
Regards,<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;mso-fareast-language:EN-US">Raghava<o:p></o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><b><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span \
lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> \
Bill Fenner [mailto:fenner@gmail.com] <br>
<b>Sent:</b> 17 July 2017 16:22<br>
<b>To:</b> Raghava Kowshika Manjunatha &lt;raghavakm@cambiumnetworks.com&gt;<br>
<b>Cc:</b> net-snmp-users@lists.sourceforge.net<br>
<b>Subject:</b> Re: net-snmp and FQDN<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">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?<o:p></o:p></p> <div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp; Bill<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On Mon, Jul 17, 2017 at 1:42 AM, Raghava Kowshika Manjunatha via \
Net-snmp-users &lt;<a href="mailto:net-snmp-users@lists.sourceforge.net" \
target="_blank">net-snmp-users@lists.sourceforge.net</a>&gt; wrote:<o:p></o:p></p> \
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm \
6.0pt;margin-left:4.8pt;margin-right:0cm"> <div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello,<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
 <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">We \
have integrated net-snmp into our application that runs on an embedded \
system.<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">We use net-snmp to send \
traps to user configured trap receivers.<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Until \
now, users could have configured only an IP address for trap \
receivers.<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Now, we have enhanced our \
system so that user can configure FQDN as well for trap receivers.<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
 <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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.<o:p></o:p></p> <ol start="1" type="1">
<li class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0cm;mso-list:l1 \
level1 lfo1"> Is this possible in any of the net-snmp release \
versions?<o:p></o:p></li><li class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0cm;mso-list:l1 \
level1 lfo1"> If not, what workaround do you recommend?<o:p></o:p></li></ol>
<p class="m-6727393185720699254msolistparagraph">[ 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 ]<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">We use \
the following APIs to setup net-snmp for SNMP v1/v2c/v3 traps:<o:p></o:p></p> <ol \
start="1" type="1"> <li class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0cm;mso-list:l0 \
level1 lfo2"> create_trap_session<o:p></o:p></li><li class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0cm;mso-list:l0 \
level1 lfo2"> snmpTargetAddrTable_create, snmpTargetAddrTable_add, \
snmpNotifyTable_create, snmpNotifyTable_add, snmpTargetParamTable_create, \
snmpTargetParamTable_add<o:p></o:p></li></ol> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">We \
currently use net-snmp-5.4.2.1-ssl-1.<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Best \
Regards,<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Raghava<o:p></o:p></p> \
</div> </div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
------------------------------------------------------------------------------<br>
Check out the vibrant tech community on one of the world's most<br>
engaging tech sites, Slashdot.org! <a \
href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsdm.link%2Fslash \
dot&amp;data=02%7C01%7Craghavakm%40cambiumnetworks.com%7C860b61acbbdb47231ecd08d4cd01d \
e1a%7C0e263e36340946228ac818d993e76eb6%7C1%7C0%7C636358855286453170&amp;sdata=rmvYKXoUNGgRaHKovp2aYcT3VM5UNI6hER6cLEjGpxs%3D&amp;reserved=0" \
target="_blank"> http://sdm.link/slashdot</a><br>
_______________________________________________<br>
Net-snmp-users mailing list<br>
<a href="mailto:Net-snmp-users@lists.sourceforge.net">Net-snmp-users@lists.sourceforge.net</a><br>
 Please see the following page to unsubscribe or change other options:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.source \
forge.net%2Flists%2Flistinfo%2Fnet-snmp-users&amp;data=02%7C01%7Craghavakm%40cambiumne \
tworks.com%7C860b61acbbdb47231ecd08d4cd01de1a%7C0e263e36340946228ac818d993e76eb6%7C1%7 \
C0%7C636358855286453170&amp;sdata=gYaeFizVrenXMZWckaLYrYaUiBQ6LfcpJhzoZcCxMf8%3D&amp;reserved=0" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/net-snmp-users</a><o:p></o:p></p>
 </blockquote>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</body>
</html>


[Attachment #4 (--===============1095369612478001938==)]
------------------------------------------------------------------------------
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
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic