SNMP::Info::IPv6(3pm)
π SNMP::Info::IPv6 β the vibe
okay bestie, welcome to SNMP::Info::IPv6, a page from the User Contributed Perl Documentation (yes that's the manual name, it's giving "community-made, community-loved" β¨). This class is your girl for pulling IPv6 addresses and IPv6 address mappings out of SNMP. π
β¨ AUTHOR β¨
Jeroen van Ingen and Carlos Vicente β absolute icons, we thank them π«Ά
β¨ SYNOPSIS β¨
# Let SNMP::Info determine the correct subclass for you.
my $info = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $info->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
β¨ DESCRIPTION β¨
so SNMP::Info::IPv6 is the class that does the mapping work: it takes IPv6 addresses and hooks them up to MAC addresses, interfaces, and more. It pulls its data from whichever one of IP-MIB, IPV6-MIB, or CISCO-IETF-IP-MIB your device actually supports β it'll use whatever's available, no cap π
This class gets inherited by Info::Layer3 so that IPv6 node tracking works across all the device classes. it's giving teamwork π
And for debugging purposes you can call this class directly, exactly like you would SNMP::Info:
my $info = SNMP::Info::IPv6->new(...);
πΈ Inherited Classes πΈ
none.
literally none. it stands on its own, main character energy β¨
πΈ Required MIBs πΈ
IP-MIBIPV6-MIBCISCO-IETF-IP-MIB
β¨ GLOBALS β¨
none.
nope, nothing here, moving on π
β¨ TABLE METHODS β¨
these are the methods that hand you back tables of info, in the form of a reference to a hash. yes bestie, hashrefs. iconic behavior.
πΈ Internet Address Table πΈ
$info->ipv6_n2p_addr()$info->ipv6_n2p_if()$info->ipv6_n2p_mac()$info->ipv6_n2p_state()$info->ipv6_n2p_type()$info->ipv6_index()β maps an IPv6 address to an interface"ifIndex"$info->ipv6_type()β maps an IPv6 address to its type (unicast, anycast, etc.)$info->ipv6_pfx_origin()β maps an IPv6 prefix to its origin (manual, well-known, dhcp, etc.)$info->ipv6_addr_prefix()β maps IPv6 addresses to their prefixes$info->ipv6_addr_prefixlength()β maps IPv6 addresses to their prefix length$info->ipv6_addr()β maps a table instance to an IPv6 address
πΈ Internet Address Translation Table πΈ
$info->c_inet_phys_address()β maps an address of type"cInetNetToMediaNetAddressType"on interface"ifIndex"to a physical address.
β¨ MUNGES β¨
munge_physaddr()β takes an octet stream (HEX-STRING) and hands you back a colon separated ASCII hex string. glow up πparse_inetaddressβ parses anInetAddressas defined byINET-ADDRESS-MIB.
Returns a hashref with the type as defined by InetAddressType, the textual address and optionally the zone_identifier. three things, one hashref, we love efficiency π¦
okay that's the whole page bestie, go forth and map those addresses π this was SNMP::Info::IPv6(3pm) from perl v5.40.1, dated 2026-02-28. slay, bye πβ¨
π¦ where this page comes from
- ubuntu stonking: libsnmp-info-perl 3.975000-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms