salt.modules.network

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »

# salt.modules.network

Module for gathering and managing network information

`salt.modules.network.` `dig`(host)

  Performs a DNS lookup with dig

  CLI Example:

      salt '*' network.dig archlinux.org

`salt.modules.network.` `in_subnet`(cidr)

  Returns True if host is within specified subnet, otherwise False

`salt.modules.network.` `interfaces`()

  Return a dictionary of information about all the interfaces on the minion

  CLI Example:

      salt '*' network.interfaces

`salt.modules.network.` `ip_addrs`(include_loopback=False)

  Returns a list of IPv4 addresses assigned to the host. (127.0.0.1 is ignored, unless 'include_loopback=True' is indicated)

`salt.modules.network.` `ip_addrs6`(include_loopback=False)

  Returns a list of IPv6 addresses assigned to the host. (::1 is ignored, unless 'include_loopback=True' is indicated)

`salt.modules.network.` `netstat`()

  Return information on open ports and states

  CLI Example:

      salt '*' network.netstat

`salt.modules.network.` `ping`(host)

  Performs a ping to a host

  CLI Example:

      salt '*' network.ping archlinux.org

`salt.modules.network.` `subnets`()

  Returns a list of subnets to which the host belongs

`salt.modules.network.` `traceroute`(host)

  Performs a traceroute to a 3rd party host

  CLI Example:

      salt '*' network.traceroute archlinux.org

## Comments

comments powered by Disqus

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »