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-MIB
  • IPV6-MIB
  • CISCO-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 an InetAddress as defined by INET-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