Scheduler Not Running
Windows
...
To test Windows Scheduler, run this command:
Code Block |
---|
Get-ScheduledTask -taskname SUPERVISOR_TASKS |
...
Code Block |
---|
C:\Users\Administrator> Get-ScheduledTask -taskname SUPERVISOR_TASKS TaskPath TaskName State -------- -------- ----- \Armor Defense\ SUPERVISOR_TASKS Disabled |
Task is missing. This is also a bad state.
Code Block |
---|
C:\Users\Administrator> Get-ScheduledTask -taskname SUPERVISOR_TASKS Get-ScheduledTask : No MSFT_ScheduledTask objects found with property 'TaskName' equal to 'SUPERVISOR_TASKS'. Verify the value of the property and retry. At line:1 char:1 + Get-ScheduledTask -taskname SUPERVISOR_TASKS + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (SUPERVISOR_TASKS:String) [Get-ScheduledTask], CimJobException + FullyQualifiedErrorId : CmdletizationQuery_NotFound_TaskName,Get-ScheduledTask |
For bad states. Run , please run this script.:
Code Block |
---|
$start = "00:{0}" -f [datetime]::Now.AddMinutes((3 + 15)).Minute.ToString("00"); $interval = 15; $schedule = "MINUTE"; $user = "NT AUTHORITY\SYSTEM"; $taskName = "\Armor Defense\SUPERVISOR_TASKS"; $taskRun = "c:\.armor\opt\armor-supervisor.exe get-tasks"; $arguments = "/create /f /sc `"${schedule}`" /tn `"${taskName}`" /tr `"${taskRun}`" /np /st `"${start}`" /mo `"$interval`" /k /ru `"${user}`""; Start-Process -FilePath "schtasks.exe" -ArgumentList $arguments |
...
Code Block |
---|
C:\Users\Administrator> $start = "00:{0}" -f [datetime]::Now.AddMinutes((3 + 15)).Minute.ToString("00"); C:\Users\Administrator> $interval = 15; C:\Users\Administrator> $schedule = "MINUTE"; C:\Users\Administrator> $user = "NT AUTHORITY\SYSTEM"; C:\Users\Administrator> $taskName = "\Armor Defense\SUPERVISOR_TASKS"; C:\Users\Administrator> $taskRun = "c:\.armor\opt\armor-supervisor.exe get-tasks"; C:\Users\Administrator> $arguments = "/create /f /sc `"${schedule}`" /tn `"${taskName}`" /tr `"${taskRun}`" /np /st `"${start}`" /mo `"$interval`" /k /ru `"${user}`""; C:\Users\Administrator> Start-Process -FilePath "schtasks.exe" -ArgumentList $arguments C:\Users\Administrator> Get-ScheduledTask -taskname SUPERVISOR_TASKS TaskPath TaskName State -------- -------- ----- \Armor Defense\ SUPERVISOR_TASKS Ready |
...
Linux:
Verify job exists in /etc/cron.d/armor-job-SUPERVISOR_TASKS
...
Code Block |
---|
[root@myhost ~]# passwd root Changing password for user root. New password: Retype new password: passwd: all authentication tokens updated successfully. |
...
Connectivity/Firewall
Ensure that your firewalls are opened to the hosts as noted in Firewall Rules section of the Pre-Installation guide.
...
Windows connectivity test output should return a value of "true."
Windows connectivity test should not return a value of "false."
If test returns "false," investigate firewall blockages.
Examples:
This is the command run and value returned when there is connectivity to the service.
...