VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Script ping IP addresses (https://forums.vandyke.com/showthread.php?t=14420)

gantohi 02-09-2021 08:49 AM

Script ping IP addresses
 
Hi,

Is there any possibility to create a script that would ping an IP address that I enter (requested via messagebox or text field and changing every time - it s never the same specific address).

Thank you,
Greta

azzeddine.salem 02-09-2021 10:09 AM

this works

Code:


strInput = InputBox("Please enter the IP address")


if strInput <> "" then

crt.Screen.Send "ping" & strInput & chr(13)

else

end if


berdmann 02-09-2021 10:16 AM

Hi gantohi,

I want to make sure that I have an accurate understanding of what it is that you are trying to accomplish with the script.

Can you please tell me more about how you intend to use the script?

Is it your goal to ping hosts from your local machine, like you might from a CMD window?

Or are you planning on connecting to a remote host with SecureCRT and then running the ping command on the remote?

What version of SecureCRT are you running?


All times are GMT -6. The time now is 01:19 PM.