BLUE
PHP 8.3.27
Path:
//opt/postupcp
Run
Logout
Edit File
Size: 445 B
Close
//opt/postupcp/run_arping
Text
Base64
#!/bin/bash # Performs arping to gateway from all IP's source /etc/profile gateway="$(route -n|awk '$4 == "UG" {print$2}')" log="/opt/postupcp/run_arping.log" echo "----$(date)----" >> $log do_arping() { sleeptime=$(( ( $RANDOM % 300 ) + 1 )) echo "Sleeping for $sleeptime seconds" >> $log sleep $sleeptime for ip in $(ip -f inet a | awk -F'[ /]' '/inet.*global/ {print $6}');do arping -c 1 -w 1 -s $ip $gateway >> $log done } do_arping
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Modules.pm
16.74 KB
lrw-r--r--
2024-07-17 12:02:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
run_arping
445 B
lrwxr-xr-x
2023-01-09 12:37:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
run_arping.log
17.14 KB
lrw-r--r--
2026-08-10 11:36:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).