Munin::...meration(3)
π 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
- nixos 26.05: munin 2.0.76
- nixpkgs unstable: munin 2.0.78
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms