Revision: | 830 |
Committed: | 2006-07-07T03:54:34-07:00 (18 years, 11 months ago) by douglas |
Content type: | text/x-sh |
File size: | 327 byte(s) |
Log Message: | ... |
# | Content |
---|---|
1 | #!/usr/local/bin/bash |
2 | # Sniper |
3 | # |
4 | # Douglas Thrift |
5 | # |
6 | # $Id$ |
7 | |
8 | for host in `/usr/sbin/arp -a | sed -Ee \ |
9 | 's/^.* \(([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\) .* permanent published \(proxy only\) .*$/\1/ |
10 | t |
11 | d'`; do |
12 | if ! /sbin/ping -c 4 "$host" >/dev/null 2>&1; then |
13 | /usr/sbin/arp -d "$host" pub >/dev/null 2>&1 |
14 | fi |
15 | done |
Name | Value |
---|---|
svn:executable | * |
svn:keywords | Id |