- fping: Click here to visit fping's website.
Arguments are IPv4 address fields. To test your IP, check your current IP address.
Then provide arguments as the starting & ending IP to scan. These boundary values allow multiple IPs to be pinged & monitored. Say your connected device has the IP 192.168.0.103 . You could test all devices of interest having IPs ranging from 192.168.0.100 to 192.168.0.110 like this:
sh ipquit.sh 192.168.0 100 110
Range: sh ipquit.sh [0-255].[0-255].[0-255] [0-255] [0-255]
- Test devices connected to network by running the script. They shall show up in the 'Active IPs' section.
- Connect a new device to the network. The corresponding IP address will now show up in the 'Active IPs' section.
- Disconnect the new device from the network and run the script again.
- You will now see that device's IP address & MAC address are listed in the 'Trigger IPs' & 'Trigger MACs' section.
- Edit the commented portion of the script to take desired action over those IP addresses & MAC addresses.
- Rerun the script and now the disconneted device will disappear from all sections.
$ sh ipquit.sh 192.168.0 100 110
This will inspect IPs from 192.168.0 to 192.168.0.110:
192.168.0.100
192.168.0.101
192.168.0.102
192.168.0.103
192.168.0.104
192.168.0.105
192.168.0.106
192.168.0.107
192.168.0.108
192.168.0.109
192.168.0.110