logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Munin::Node::Configure::HostEnumeration - Takes a list of hosts, and returns the corresponding IPs in

Name

       Munin::Node::Configure::HostEnumeration - Takes a list of hosts, and returns the corresponding IPs in
       dotted-quad form.

Subroutines

expand_hosts
             @expanded = expand_hosts(@list);

           Takes a list of hosts, and returns the corresponding IPs in dotted-quad form.

           Items can be specified as a hostname or dotted-quad IP, either with or without a netmask.

           Currently only IPv4 addresses are supported.

perl v5.40.1                                       2025-05-20              Munin::Node::C...HostEnumeration(3pm)

Synopsis

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

See Also