Forum Discussion

SL12345's avatar
SL12345
New Contributor III
3 years ago
Solved

Check if endpoint is live

Hi snaplogic experts,
Is it possible to ping a server and check if it is up or down using snap? or do i need to create workaround lets say, use file reader or directory browser?
(now i use directory browser, but after that i need to clean it little bit in order to get one result)

thank you

  • Hi @SL12345,

    What type of server?

    If it’s an http/s you can simply use the Rest Get snap to check if it’s up.
    If you want to ping the server directly, you can use a script snap that will start up a CMD console and execute a certain command, in your case:

    “ping server_address”

1 Reply

  • bojanvelevski's avatar
    bojanvelevski
    Valued Contributor

    Hi @SL12345,

    What type of server?

    If it’s an http/s you can simply use the Rest Get snap to check if it’s up.
    If you want to ping the server directly, you can use a script snap that will start up a CMD console and execute a certain command, in your case:

    “ping server_address”