---
name: "Munin::Node::Configure::HostEnumeration"
section: "3pm"
platform: "linux"
package: "munin-node"
version: "2.0.76-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Munin::Node::Configure::HostEnumeration"
---

# Munin::Node::Configure::HostEnumeration(3pm)

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

## 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.
