salt.modules.win_network

Module for gathering and managing network information

Members

dig

salt.modules.win_network.dig(host)

Performs a DNS lookup with dig

Note: dig must be installed on the Windows minion

CLI Example:

salt '*' network.dig archlinux.org

hwaddr

salt.modules.win_network.hwaddr(interface)

Returns the hwaddr for a given interface

CLI Example:

salt '*' network.hwaddr 'Wireless LAN adapter Wireless Network Connection'

interfaces

salt.modules.win_network.interfaces()

Returns a dictionary of interfaces with various information about each (up/down state, ip address, netmask, and hwaddr)

CLI Example:

salt '*' network.interfaces

ipaddr

salt.modules.win_network.ipaddr(interface)

Returns the IP address for a given interface

CLI Example:

salt '*' network.ipaddr 'Wireless LAN adapter Wireless Network Connection'

isportopen

salt.modules.win_network.isportopen(host, port)

Return status of a port

CLI Example:

salt '*' network.isportopen 127.0.0.1 22

netmask

salt.modules.win_network.netmask(interface)

Returns the netmask for a given interface

CLI Example:

salt '*' network.netmask 'Wireless LAN adapter Wireless Network Connection'

netstat

salt.modules.win_network.netstat()

Return information on open ports and states

CLI Example:

salt '*' network.netstat

nslookup

salt.modules.win_network.nslookup(host)

Query DNS for information about a domain or ip address

CLI Example:

salt '*' network.nslookup archlinux.org

ping

salt.modules.win_network.ping(host)

Performs a ping to a host

CLI Example:

salt '*' network.ping archlinux.org

traceroute

salt.modules.win_network.traceroute(host)

Performs a traceroute to a 3rd party host

CLI Example:

salt '*' network.traceroute archlinux.org

up

salt.modules.win_network.up(interface)

Returns True if interface is up, otherwise returns False

CLI Example:

salt '*' network.up 'Wireless LAN adapter Wireless Network Connection'

Parent topic

Table Of Contents

Previous topic

salt.modules.win_groupadd

Next topic

salt.modules.win_pkg