Module for gathering and managing network information
Members
Performs a DNS lookup with dig
Note: dig must be installed on the Windows minion
CLI Example:
salt '*' network.dig archlinux.org
Returns the hwaddr for a given interface
CLI Example:
salt '*' network.hwaddr 'Wireless LAN adapter Wireless Network Connection'
Returns a dictionary of interfaces with various information about each (up/down state, ip address, netmask, and hwaddr)
CLI Example:
salt '*' network.interfaces
Returns the IP address for a given interface
CLI Example:
salt '*' network.ipaddr 'Wireless LAN adapter Wireless Network Connection'
Return status of a port
CLI Example:
salt '*' network.isportopen 127.0.0.1 22
Returns the netmask for a given interface
CLI Example:
salt '*' network.netmask 'Wireless LAN adapter Wireless Network Connection'
Return information on open ports and states
CLI Example:
salt '*' network.netstat
Query DNS for information about a domain or ip address
CLI Example:
salt '*' network.nslookup archlinux.org
Performs a ping to a host
CLI Example:
salt '*' network.ping archlinux.org