Munin:...eration(3pm)

✨ NAME ✨

Munin::Node::Configure::HostEnumeration β€” bestie, this lil module takes a list of hosts and hands you back the matching IPs in dotted-quad form πŸ’– (it's a Perl module, section 3pm, straight out of the User Contributed Perl Documentation, iykyk)


🌸 SYNOPSIS 🌸

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

literally that's the whole vibe, you feed it hosts, it feeds you IPs πŸ¦‹


πŸŽ€ SUBROUTINES πŸŽ€

expand_hosts

@expanded = expand_hosts(@list);

okay so here's the tea β˜• β€” it takes a list of hosts and returns the corresponding IPs in dotted-quad form. no cap, that's its whole job and it ate πŸ’…

Items can be specified as a hostname or a dotted-quad IP, either with or without a netmask. so like, both slay, pick whichever πŸ’–

🚨 important bestie 🚨 β€” currently only IPv4 addresses are supported. IPv6 is not invited to this party, sorry babes 😭

that's it, that's the module 🫢 shine on, and go enumerate some hosts ✨

mwah πŸ’‹ β€” this page came to you courtesy of perl v5.42.3, dated 2026-09-30, section 3pm of the User Contributed Perl Documentation. iconic, timeless, obsessed πŸ’œ

πŸ“¦ where this page comes from