Munin::...meration(3)

πŸ“¦ version 2.0.78, in nixos 26.05, nixpkgs unstable

πŸ’… Munin::Node::Configure::HostEnumeration πŸ’…

okay so this is the manual page for Munin::Node::Configure::HostEnumeration β€” from the User Contributed Perl Documentation, and the header shortens it to Munin::...meration(3). Slay. ✨

🌸 NAME 🌸

Bestie, the whole point: it takes a list of hosts and returns the corresponding IPs in dotted-quad form. That's it. That's the vibe. 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

Like, here's how you use it:

         @hosts = ('switch1', 'host1/24', '10.0.0.60/30');
         foreach my $host (expand_hosts(@hosts)) {
             # ...
         }

πŸŽ€ SUBROUTINES πŸŽ€

πŸ’– expand_hosts πŸ’–

Here's the signature, no cap:

@expanded = expand_hosts(@list);

It takes a list of hosts and returns the corresponding IPs in dotted-quad form. (Yes, literally the same energy as NAME, but now it's a subroutine. πŸ’…)

Items can be specified as a hostname or dotted-quad IP, either with or without a netmask. So switch1, host1/24, and 10.0.0.60/30 are all valid little guys in the list. πŸŽ€

currently only IPv4 addresses are supported β€” that's the limit rn, bestie. πŸ”₯

Cute sign-off: this iconic page is from perl v5.42.3, dated 1980-01-01, and the footer calls it Munin::...meration(3). Periodt. πŸ‘‘

πŸ“¦ where this page comes from