Am new to scripting but what I need is a script that pings a dhcp range of ISP IP’s with one count and the ip that responds to the ping sends it’s number to my dynamic dns service (no-ip), if such thing can be accomplished please tell me how to do it I will be very appreciated…thanks
Something like this will loop through the sequence of numbers you specify, ping that IP, and then run whatever code you add. You’ll need to change the “from=1 to=20” to the last first/last IP octet in your range, and change the first three octets in “8.8.8.$i” to be the public IPs you want.
As for the NO-IP code, there are a number of examples on the forums.
:for i from=1 to=20 do={
:local ip “8.8.8.$i”
:if ([/ping $ip count=1] = 1) do={
… run NO-IP code here
}
}HTH