Repository navigation
Preview an Alert Action
Find a task, diagnostic or recovery for an alert’s source. Discovery and preview are read-only. A confirmed run can affect the monitored system.
scom_get_alert_actions is installed in all modes. To use the preview and run tool, enable writes when launching the host and use an account with the appropriate role. Host options
Operator action · scom_get_alert_actions, scom_execute_action
29 November 2026, 12:20 UTC, our SCOM lab. The heartbeat alert for SCOM01 was still open. Its watcher had returned to Healthy, and the operator wanted to check what SCOM could establish about connectivity before handing over. If you are testing whether your task pipeline works, the lab marker example shows a known output to compare.
Operator
I’m following up the open Health Service Heartbeat Failure on SCOM01. Is there a built-in task that can tell me what SCOM knows about the connection and whether the agent is running? How does it differ from the diagnostics attached to the heartbeat alert?
Sol 6 · excerpt
Yes. The built-in Show Gray Agent Connectivity Data task is available for the SCOM01 Health Service Watcher. Run it from the Operations console’s Tasks pane to see SCOM’s connectivity information, including clues about why and how long the agent was gray.
The MCP found Health Service Heartbeat Failure on SCOM01.scomlab.test and listed one standalone agent task plus two monitor diagnostics. The installed System Center Core Monitoring pack (version 10.22.12369.0) defines the standalone task as a reporting script. It reads stored connectivity data, checks the HealthService service state and ping response, and can record an informational event.
In Monitoring → Active Alerts, select Health Service Heartbeat Failure on SCOM01. The Alert Details pane identifies the watcher as the source. In the right-hand Health Service Watcher Tasks group, locate Show Gray Agent Connectivity Data.

Operator
Show me the preview for Show Gray Agent Connectivity Data on the watcher you found. I want to check the target, defaults and warnings before deciding whether to run it. Stop at the preview.
Sol 6 · excerpt
- Target: SCOM01.scomlab.test, in the Collection Management Server Watcher Group.
- Action: Enabled task from the sealed System Center Core Monitoring pack.
- Defaults: No task parameters or overrides were shown. The discovered task has a 300-second timeout.
- Warnings: The preview returned none. It also returned no connectivity results; those would require running the task.
The preview gave an expiry of 12:35:53 UTC. The target was the Health Service Watcher named for SCOM01. A Windows Computer object with the same display name would have been a different target.
Operator
Go ahead and run Show Gray Agent Connectivity Data once on the SCOM01 watcher with those defaults. What did the task actually return about the heartbeat, service and ping? Check the watcher again. If submission or any checks are inconclusive, tell me what you couldn't verify and don't run it again.
Sol 6 · excerpt
- Last heartbeat received:
12:00:00 AM. It supplied no date or timezone, so I cannot verify when that heartbeat occurred.- Health Service on SCOM01:
Running.- Responding to ping:
Yes.
SCOM returned Succeeded, exit code 0, and no error output for the single run. The watcher was available and Healthy on reread, and the alert was still New. The service and ping answers describe conditions at 12:21 UTC on 29 November. The missing-heartbeat alert was raised on 28 November. Its original cause remains open for investigation.
Inspect the MCP response for the connectivity task
Selected fields from the confirmed scom_execute_action run.
{
"runId": "d364f8e6-a980-4c79-aab0-41f2997f1a80",
"submitted": true,
"state": "finished",
"status": "Succeeded",
"started": "2026-11-29T12:21:00.953Z",
"finished": "2026-11-29T12:21:01.183Z"
}The task's standard output included both time-only fields and two blank fields.
Agent Name: SCOM01.scomlab.test
Last Time Agent Heartbeat Was Received: 12:00:00 AM
Is Health Service Running On Agent: Running
Is Agent Responding To Ping: Yes
Last Time Configuration Was Updated On Agent: 12:00:00 AM
Reason the agent is unavailable:
Management Server That The Agent Reports To:
In Monitoring → Task Status, press F5 and find Show Gray Agent Connectivity Data submitted by scomlab\LabAdmin at about 12:21 UTC on 29 November. Compare the target and task output with the MCP report above. The screenshot above shows how to locate the task from the alert. The lab marker example illustrates where to find output in the Task Status details pane.
In another chat in our SCOM lab at 12:08 UTC on 29 November, the operator selected the same open heartbeat alert on SCOM01. Its monitor offered two enabled diagnostics, Check If Health Service Is Running and Ping Computer on Heartbeat Failure. The standalone Show Gray Agent Connectivity Data appeared under tasks.
Operator
Can I check reachability from the watcher? Show me exactly what the ping check would run and where. Stop at the preview and do not run anything.
Sol 6 · excerpt
The SCOM preview tool refused it because the diagnostic has linked recoveries. It reported: “Nothing was run.”
The MCP returned This diagnostic has a linked recovery. Use a standalone diagnostic. Nothing was run. The linked recoveries can set the Computer Not Reachable monitor according to the ping result. There was no ping output or verified execution host to add to the incident.
In the console, select the heartbeat alert and open Health Explorer → Availability → Health Service Heartbeat Failure → State Change Events. Select the state change to see its Diagnostic and Recovery Options. Investigate the heartbeat alert

For the open alert we just investigated, what tasks could help me check the source? Give me the display names, what each task does and which ones you can preview.
In a fresh chat, find the alert in the open queue using its title and source. Pick a task returned for that alert and ask for it by name.
Preview that diagnostic task with its defaults. Show me the exact target, parameters, warnings and expiry. Wait here while I check them.
- Match the action and target to the alert. Review the parameters, any monitor state change, warnings and expiry. Approve that exact preview. An expired preview or changed inputs require a fresh preview and approval.
- With a run ID, ask for its status and output. In a new chat, include the action kind, action ID and target object ID from the preview. After success, recheck the original object to see whether the incident is resolved.
- If submission is uncertain and you have no run ID, request a read-only preview with the original inputs to check for a recent run. For tasks, also check Monitoring → Task Status by task, target and submission time. If neither check finds the run, record the outcome as unknown and hold off on resubmitting.
29 November 2026, 12:06–12:07 UTC. The operator wanted to check whether SCOM could execute a task on the source of an open alert. The lab supplied a task that emits a marker data item.
Operator
Find the open alert on our lab alert-actions object. Which read-only diagnostic task could I use on its source to check task execution without changing the object?
Sol 6 · excerpt
Use the enabled “Cookdown Lab Alert Actions marker task” on that source object. Its description says it outputs one marker event data item, 9607, and changes nothing.
The lookup matched Cookdown Lab Alert Actions fixture alert on Cookdown.Lab.011.AlertActions. SCOM advertised the marker as a task. The operator used “diagnostic” to describe its purpose.
Operator
Preview the harmless lab task on that alert's source. Show me the exact task, target, parameters, warnings and expiry before anything runs.
Sol 6 · excerpt
The preview is for Cookdown Lab Alert Actions marker task (
Cookdown.Lab.AlertActions.Task.Marker) on Cookdown.Lab.011.AlertActions, the source of the open “Cookdown Lab Alert Actions fixture alert.”
The preview listed no parameter overrides or warnings. Its expiry was 12:21:59.1019798 UTC. In the console, selecting the source and opening the marker task shows its proposed target and parameters for comparison. Use Cancel to leave the console dialog once you have checked them.

Operator
Run the Cookdown Lab Alert Actions marker task once on Cookdown.Lab.011.AlertActions with those default parameters. Check its task result and tell me what the output establishes about the source. Do not retry if the submission is uncertain.
Sol 6 · excerpt
I ran the Cookdown Lab Alert Actions marker task once on Cookdown.Lab.011.AlertActions with default parameters. SCOM reported Succeeded. The run started 2026-11-29 at 12:07:12.413 UTC and finished 12:07:18.430 UTC.
The MCP refreshed the preview with the same task, target and defaults, then submitted one run. The returned output contained event number 9607 and the marker COOKDOWN-011-TASK-OK. The source object still had Critical health and was available on reread. For handover, record the task result and the source health separately.
Inspect the MCP response
Selected fields from scom_execute_action · the confirmed task’s run record.
{
"runId": "22189b1e-a77f-4200-a2d1-a76cf4e0e642",
"submitted": true,
"state": "finished",
"status": "Succeeded",
"started": "2026-11-29T12:07:12.413Z",
"finished": "2026-11-29T12:07:18.43Z"
}-
Open Monitoring → Task Status, press F5 to refresh, and select the marker task with a start time of 29/11/2026 12:07:12. The details show Success, the account that submitted the run and the target Cookdown.Lab.011.AlertActions.

-
Scroll down in the same details pane to Task Output. Compare Event Number and Description with the MCP response. For the time the task ran, use Start Time above. This fixture emits a data item with a fixed date field.

Expand a conversation to read the original operator prompts and Sol 6 replies. Times are UTC on 29 November 2026.
Run the built-in connectivity task on the SCOM01 watcher · 12:20:31 UTC · 3 replies
Operator · 12:20:31 UTC
I’m following up the open Health Service Heartbeat Failure on SCOM01. Is there a built-in task that can tell me what SCOM knows about the connection and whether the agent is running? How does it differ from the diagnostics attached to the heartbeat alert?
Sol 6 · 12:20:50 UTC
Yes. The built-in Show Gray Agent Connectivity Data task is available for the SCOM01 Health Service Watcher. Run it from the Operations console’s Tasks pane to see SCOM’s connectivity information, including clues about why and how long the agent was gray. I only previewed the task; I did not run it, so I cannot report its output or confirm from it whether the agent is running.
The heartbeat alert’s diagnostics are separate checks tied to the monitor’s Critical state: Check If Health Service Is Running remotely checks the service, while Ping Computer on Heartbeat Failure tests ICMP reachability. The ping diagnostic has linked recoveries that can update the Computer Not Reachable monitor.
The alert was raised on 28 November 2026 at 12:21:40 UTC and remains New. The watcher’s stored health became Healthy on 29 November at 11:29:08 UTC; that alone does not establish the service’s current running state.
MCP calls · scom_find_alerts · scom_get_alert · scom_get_alert_actions · scom_execute_action (preview) · scom_get_workflow · scom_get_object
Operator · 12:20:50 UTC
Show me the preview for Show Gray Agent Connectivity Data on the watcher you found. I want to check the target, defaults and warnings before deciding whether to run it. Stop at the preview.
Sol 6 · 12:20:56 UTC
Preview: Show Gray Agent Connectivity Data
- Target: SCOM01.scomlab.test, in the Collection Management Server Watcher Group.
- Action: Enabled task from the sealed System Center Core Monitoring pack.
- Defaults: No task parameters or overrides were shown. The discovered task has a 300-second timeout.
- Warnings: The preview returned none. It also returned no connectivity results; those would require running the task.
Nothing was run. This preview expires on 29 November 2026 at 12:35:53 UTC. If you decide to run the task after that time, it will need a fresh preview.
MCP calls · scom_execute_action (preview)
Operator · 12:20:56 UTC
Go ahead and run Show Gray Agent Connectivity Data once on the SCOM01 watcher with those defaults. What did the task actually return about the heartbeat, service and ping? Check the watcher again. If submission or any checks are inconclusive, tell me what you couldn't verify and don't run it again.
Sol 6 · 12:21:08 UTC
I ran Show Gray Agent Connectivity Data once on the SCOM01 watcher with its defaults. SCOM reported the task Succeeded at 29 November 2026, 12:21:01 UTC, with exit code 0 and no error output.
The task returned:
-
Last heartbeat received:
12:00:00 AM. It supplied no date or timezone, so I cannot verify when that heartbeat occurred. -
Health Service on SCOM01:
Running. -
Responding to ping:
Yes.
The “reason the agent is unavailable” and “management server that the agent reports to” fields were blank. On a fresh watcher read, SCOM showed it available and Healthy; its stored health last changed at 11:29:08 UTC. The heartbeat failure alert still showed New, despite that healthy watcher state. I did not run the task again.
MCP calls · scom_execute_action (preview) · scom_execute_action (confirm) · scom_get_alert · scom_get_object
Preview the heartbeat monitor’s ping diagnostic · 12:08:42 UTC · 2 replies
Operator · 12:08:42 UTC
Which checks are available for the open Health Service Heartbeat Failure on SCOM01? I'm trying to decide what to check first.
Sol 6 · 12:08:57 UTC
For the open Health Service Heartbeat Failure alert on SCOM01.scomlab.test, SCOM lists three enabled checks:
- Check If Health Service Is Running — remotely checks whether the Health Service is running.
- Ping Computer on Heartbeat Failure — tests ICMP reachability.
- Show Gray Agent Connectivity Data — shows why and how long the agent has been gray.
Check the current monitor state first. The alert was raised at 2026-11-28 12:21:40 UTC and remains open, but the watcher object’s overall health was Healthy as of 2026-11-29 11:29:08 UTC. The action listing still reports the heartbeat monitor as Critical, so those readings need reconciling in Health Explorer.
If the failure is still current, I’d start with Ping to establish reachability, then Check If Health Service Is Running to narrow down a reachable host with a service issue. These are listed as diagnostics; I have not run them.
MCP calls · scom_find_alerts · scom_get_alert · scom_get_alert_actions · scom_get_object
Verification note. In the returned action list, Show Gray Agent Connectivity Data was a standalone task. Check If Health Service Is Running and Ping Computer on Heartbeat Failure were monitor diagnostics.
Operator · 12:08:57 UTC
Can I check reachability from the watcher? Show me exactly what the ping check would run and where. Stop at the preview and do not run anything.
Sol 6 · 12:09:06 UTC
Yes, the ping diagnostic is available from the SCOM01 Health Service Watcher, but I could not produce an executable preview. The SCOM preview tool refused it because the diagnostic has linked recoveries. It reported: “Nothing was run.”
SCOM identifies the check as Ping Computer on Heartbeat Failure. It describes an ICMP ping of SCOM01.scomlab.test when the Collection Management Server detects a heartbeat failure. In the Operations console, the route is Health Explorer → SCOM01 watcher → heartbeat monitor state change event → diagnostic.
The linked recoveries can set the Computer Not Reachable monitor according to the ping result. The available SCOM data does not expose the exact ping command or confirm which machine sends the packets, so I can’t show those as verified execution details. I stopped at the refused preview and ran no check.
MCP calls · scom_execute_action (preview) (refused by SCOM MCP) · scom_get_help
Find the marker task with client approvals disabled · 12:05:17 UTC · 2 replies
Operator · 12:05:17 UTC
Find the open alert on our lab alert-actions object. Which read-only diagnostic task could I use on its source to check task execution without changing the object?
Sol 6 · 12:05:32 UTC
The open alert is “Cookdown Lab Alert Actions fixture alert” on Cookdown.Lab.011.AlertActions. It is a Warning in the New state, raised 21 November 2026 at 02:25:29 UTC.
Use the enabled “Cookdown Lab Alert Actions marker task” on that source object. Its description says it outputs one marker event data item (9607) and changes nothing, making it the read-only task for checking execution. In the Operations console, select the alert’s source object and run the task from the Tasks pane.
I found the task but did not run it. Its expected behavior comes from the task description; execution has not been verified.
MCP calls · scom_find_alerts · scom_find_monitoring_inventory · scom_get_alert · scom_get_alert_actions
Operator · 12:05:32 UTC
Preview the harmless lab task on that alert's source. Show me the exact task, target, parameters, warnings and expiry before anything runs.
Sol 6 · 12:05:38 UTC
I requested a preview of “Cookdown Lab Alert Actions marker task” on Cookdown.Lab.011.AlertActions, the alert’s source. The automatic approval review rejected the scom_execute_action call because the current approval policy is never. Nothing ran.
The task definition lists no parameters, says it outputs marker event data item 9607 and changes nothing, and sets a 60-second task timeout. Those facts come from task discovery, not a preview. Because the preview was rejected, I cannot show preview-specific warnings or an expiry time, or confirm the exact execution details.
MCP calls · scom_execute_action (preview) (blocked by client)
Verification note. The recorded client error was MCP tool call requires approval, but approval policy is never. The client stopped this attempt before SCOM could produce a preview. The next marker-task chat shows the successful preview and the single confirmed run.
Preview the marker in an approval-enabled chat and verify its output · 12:06:43 UTC · 3 replies
Operator · 12:06:43 UTC
Find the open alert on our lab alert-actions object. Which read-only diagnostic task could I use on its source to check task execution without changing the object?
Sol 6 · 12:06:56 UTC
The open “Cookdown Lab Alert Actions fixture alert” is on Cookdown.Lab.011.AlertActions. It is a Warning alert in the New state, raised 2026-11-21 at 02:25:29 UTC.
Use the enabled “Cookdown Lab Alert Actions marker task” on that source object. Its description says it outputs one marker event data item, 9607, and changes nothing. That makes it the available read-only way to check task execution. The alert also lists diagnostics, but both are disabled; the marker task is the relevant option here.
I only inspected the alert and available actions. I did not run the task.
MCP calls · scom_find_alerts · scom_find_monitoring_inventory · scom_get_alert · scom_get_alert_actions
Operator · 12:06:56 UTC
Preview the harmless lab task on that alert's source. Show me the exact task, target, parameters, warnings and expiry before anything runs.
Sol 6 · 12:07:05 UTC
The preview is for Cookdown Lab Alert Actions marker task (Cookdown.Lab.AlertActions.Task.Marker) on Cookdown.Lab.011.AlertActions, the source of the open “Cookdown Lab Alert Actions fixture alert.”
- Parameters: None supplied; the preview lists no parameter overrides.
- Warnings: None reported.
- Expiry: 2026-11-29 at 12:21:59.1019798 UTC.
The task is enabled. Its description says it outputs marker event data item 9607 and changes nothing. This is a task, so the preview does not specify a monitor state change. Nothing has run. Running it requires your approval of this exact preview; if it expires, I’ll need to generate a fresh one.
MCP calls · scom_execute_action (preview) · scom_get_help
Operator · 12:07:05 UTC
Run the Cookdown Lab Alert Actions marker task once on Cookdown.Lab.011.AlertActions with those default parameters. Check its task result and tell me what the output establishes about the source. Do not retry if the submission is uncertain.
Sol 6 · 12:07:26 UTC
I ran the Cookdown Lab Alert Actions marker task once on Cookdown.Lab.011.AlertActions with default parameters. SCOM reported Succeeded. The run started 2026-11-29 at 12:07:12.413 UTC and finished 12:07:18.430 UTC.
The task output contains event number 9607 and the marker COOKDOWN-011-TASK-OK. This establishes that the task executed and returned its expected marker for the source. It does not establish that the alert condition was fixed.
A read of the source afterward showed it available, with health still Critical and its health state last changed 2026-11-21 at 02:25:29.433 UTC. No retry was made.
MCP calls · scom_execute_action (preview) · scom_execute_action (confirm) · scom_get_object