table of contents
other versions
- bookworm 2.0.73-1
- bookworm-backports 2.0.76-1~bpo12+1
- testing 2.0.76-2
- unstable 2.0.76-3
- experimental 2.999.16-1
Munin::Node::Configure::HostEnumeration(3pm) | User Contributed Perl Documentation | Munin::Node::Configure::HostEnumeration(3pm) |
NAME¶
Munin::Node::Configure::HostEnumeration - Takes a list of hosts, and returns the corresponding IPs in dotted-quad form.
SYNOPSIS¶
@hosts = ('switch1', 'host1/24', '10.0.0.60/30'); foreach my $host (expand_hosts(@hosts)) { # ... }
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.
2024-05-24 | perl v5.38.2 |