Executing a Ping Check using Command Task

You can design a workflow to use the Command task to execute a ping check on a hostname or server.
  1. Design a new workflow.
  2. In the design workspace, from the User Interface section in the left menu, drag and drop a Form task.
    The Gallery window is displayed on the screen.
  3. In the Gallery window, to design a new form, click (Create Form) icon.
  4. In the Form task window that is displayed, under the Information tab, enter the Task name.
  5. Click Next.
    The Form builder tab opens with the Field Properties window displayed at the bottom right corner of the screen.
  6. In the Field properties window, define the form field to get the Server IP or Hostname as shown.
  7. To declare the Field ID as a global variable, <%hostname%>, and refer it in the next task, turn on the Global variable toggle.
    Note: For more information on adding form fields, click here.
  8. Click Save.
  9. From the User Interface section in the left menu, drag and drop the Command task.
  10. In the Command task window, under Properties, in the Configuration section, click View Samples.
    The Command Samples window is displayed.
  11. Click View next to the Ping Check command.
  12. To use this command, click Use Sample.
  13. In the Configuration section, refer the global variable <%hostname%> defined in the form task.
    Note: device: N/A implies that the command will be executed on AppViewX server.
  14. To add this configuration, click Add.
  15. Click Save.
  16. Connect the workflow tasks and enable the workflow.
  17. Trigger the workflow.
    The workflow execution page is displayed with the workflow inputs requested at the first stage.
  18. Enter the Server IP or Hostname in the form.
  19. Click Submit.
  20. In the next stage of workflow execution, to execute the command for performing ping checks on the server, click Submit.
    Command is executed with the Logs showing the server response.