Intel AMT Features > Agent Presence > Use Cases > Delete an Agent Watchdog's Actions
CollapseAll image

Delete an Agent Watchdog's Actions

The following steps describe how to delete an agent watchdog’s actions.

1.  Retrieve the instance of AMT_AgentPresenceWatchdog with the DeviceID used to define the agent (See Create an Agent Watchdog).

 Note:

The DeviceID is the ID of the Agent watchdog in Base64 format.

2.  Invoke AMT_AgentPresenceWatchdog.DeleteAllActions.

Click here for a snippet demonstrating this step

You can execute this snippet by inserting it into the execution template found here.

  

$deviceID =# The ID of the agent watchdog in Base64 format, provided when the AMT_AgentPresenceWatchdog was created.

$agentPresenceWatchdogRef =$wsmanConnectionObject.NewReference("SELECT * FROM AMT_AgentPresenceWatchdog WHERE DeviceID='" +$deviceID +"'")

$inputObject =$agentPresenceWatchdogRef.CreateMethodInput("DeleteAllActions")

$outputObject =$agentPresenceWatchdogRef.InvokeMethod($inputObject)

$returnValue =$outputObject.GetProperty("ReturnValue")

 

 

Additional Information

The AMT_ AgentPresenceWatchdog.DeleteAllActions() method deletes all AMT_StateTransitionCondition instances associated to the AMT_AgentPresenceWatchdog  and the CIM_ConcreteDependency instances that associate them. In addition, all AMT_AgentPresenceWatchdogAction instances associated to the AMT_StateTransitionCondition are deleted as well as the CIM_ConcreteDependency  instances that associate them.

Instance Diagram

Classes Used in This Flow

SDK Sample

If there is a sample demonstrating this flow, it is included in the SDK installation file. See SDK Installation Layout for details.

 

See Also:

   Agent States

   Agent Watchdog Timers and Actions

Copyright © 2006-2022, Intel Corporation. All rights reserved.