remove active ppp number with find...

Hi,
i have issue with the pptp connection as always shown me peer not responding but i found there is work around.
can some one share with me, how can i find the ppp active number with follow incomplete script:


:if ([/ping 192.168.188.5 count=2]=0) do={/ppp active remove numbers=[/ppp active get [find name=“xxxxxx”] # ]}

i need to this to be number instead of the ip address “[ppp active get [find name=“xxxx”] address ]”.


means,
:if ([/ping 192.168.188.5 count=2]=0) do={/ppp active remove numbers=3}

If you have assigned a static IP address for each PPTP connection then you can just use the following:

:local IP1 “192.168.188.5”
:local IP2 “192.168.188.6”
:local IP3 “192.168.188.7”

:if ([/ping $IP1 count=2]=0) do={/ppp active remove number=[/ppp active find where address=$IP1]}
:if ([/ping $IP2 count=2]=0) do={/ppp active remove number=[/ppp active find where address=$IP2]}
:if ([/ping $IP3 count=2]=0) do={/ppp active remove number=[/ppp active find where address=$IP3]}