AppWorx, Dollar Universe and Sysload Community

  • 1.  Ping URL from UC4

    Posted 06-07-2019 08:44 AM
    I have an Requirement to Ping a Dynamic URL through UC4. What is the Best way to Ping an URL

    #automicwork #automicwebinterface #caautomicworkloadautomation #restapiwebservice​​​​​


  • 2.  RE: Ping URL from UC4

    Posted 06-12-2019 05:08 AM
    Edited by Carsten Schmitz 06-13-2019 04:33 AM
    ​You don't ping URLs. You ping IP addresses or host names that then get resolved into IP addresses by means of DNS.

    Automic has no built-in facilities for either. You can use the OS ping command from a JOBS to ping any IP address or hostname you can reach via network means (i.e. ICMP not firewalled). If you want to monitor URLs, you can use text-based tools such as wget or curl (stock in Linux, downloadable for Windows), then evaluate return codes or REST replies via return codes, also from an Automic JOBS.

    Hth,


  • 3.  RE: Ping URL from UC4
    Best Answer

    Posted 06-20-2019 04:09 PM
    No need to install curl or wget on Windows ;-)

    Powershell:
    Test-NetConnection -Computername <hostname> -Port <port>

    ..or for the web:
    Invoke-RestMethod
    Invoke-WebRequest


  • 4.  RE: Ping URL from UC4

    Posted 07-31-2019 02:58 PM
    Edited by boston_019 07-31-2019 03:08 PM

    Comment deleted, I fixed it. (Not OP btw).