This is a discussion on How can i get data using IPv6? within the SNMP Coders forums, part of the Networking and Network Related category; --===============1747005437== Content-Type: multipart/alternative; boundary="----=_Part_242_15409072.1206353821113" ------=_Part_242_15409072.1206353821113 Content-Type: text/plain; charset=ISO-8859-1 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============1747005437==
Content-Type: multipart/alternative; boundary="----=_Part_242_15409072.1206353821113" ------=_Part_242_15409072.1206353821113 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline To get a data using IPv4, we just set dotted ip address to 'peername' field like below. session.peername = "xx.xx.xx.xx" Detailed example is net-snmp site. http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application<To%20get%20a%20data%20using %20IPv4,%20we%20just%20set%20dotted%20ip%20address %20to%20'peername'%20field%20like%20below.%20sessi on.peername%20=%20%22xx.xx.xx.xx%22%20Detailed%20e xample%20is%20net-snmp%20site.%20http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application> If I want to use IPv6 address (xx:xx:xx:xx:xx:xx:xx:xx) , how do i set IPv6 address. 'peername' is only for domain or dotted IP address(IPv4). So if i set IPv6 address to 'peername', Unknown host error is happened. Please tell me how to i get a data using IPv6. Thank you for reading. ------=_Part_242_15409072.1206353821113 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">To get a data using IPv4, </span> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">we just set dotted ip address to 'peername' field like below.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Lucida Grande; color: #236e25; min-height: 16.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 11.0px; font: 10.0px Courier; background-color: #f9f9f9">session.peername = "xx.xx.xx.xx"</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Lucida Grande; color: #236e25; min-height: 16.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">Detailed example is net-snmp site.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"><a href="To%20get%20a%20data%20using%20IPv4,%20we%20j ust%20set%20dotted%20ip%20address%20to%20'peername '%20field%20like%20below.%20session.peername%20=%2 0%22xx.xx.xx.xx%22%20Detailed%20example%20is%20net-snmp%20site.%20http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application">http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application</a></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">If I want to use IPv6 address (xx:xx:xx:xx:xx:xx:xx:xx) , how do i set IPv6 address.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">'peername' is only for domain or dotted IP address(IPv4). So if i set IPv6 address to 'peername', Unknown host error is happened.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">Please tell me how to i get a data using IPv6.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">Thank you for reading.</p> ------=_Part_242_15409072.1206353821113-- --===============1747005437== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --===============1747005437== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders --===============1747005437==-- |