Skip to main content

Scheduled Task for Agent Restart - Create

Summary

This document creates a scheduled task that attempts to restart the VSA Agent every 15 minutes to prevent VSA agents from going offline without notification.

Sample Run

TimeActionStatusUser
13:49:09 28-Apr-22Scheduled Task for Agent Restart - CreateSuccess THENprovaltech.com/dan.hicks
13:49:08 28-Apr-22Scheduled Task for Agent Restart - Create-0001Batch file created successfully. Scheduling task.provaltech.com/dan.hicks
13:49:08 28-Apr-22Write text to fileSuccess THENprovaltech.com/dan.hicks
13:48:59 28-Apr-22Run Now - Scheduled Task for Agent Restart - CreateAdmin provaltech.com/dan.hicks scheduled procedure Run Now - Scheduled Task for Agent Restart - Create to run at Apr 28 2022 1:48 PMprovaltech.com/dan.hicks

Dependencies

This section should list the ITGlue documents found in the Related Items sidebar on which this script depends.

Process

This document creates a batch file on the endpoint that restarts the agent service (which needs to be configured per environment based on Service Name) and runs the schtask command to schedule this check every 15 minutes as the system user.

Note: #serviceName# MUST be manually filled in for each client deployment.

Output

This section describes the location and method by which this script returns data.

  • Agent Procedure Log

Export Attachment

Attach the content XML VSA Export to this document.