Introduction
The resource management policies help manage your resources. For example, you can create some custom attributes and through the policy, the attributes can be applied to one resource or a set of resources.
Creating policies
To create a device management policy:
- Go to Setup > Resources > Device Management Policies.
- In Device Management Policies, click Create New, select one of the following options as a Scope for your Device Management Policy:
- Partner: You have the following choices:
- Include All Clients - Select this option to apply Device Management Policy to all the Clients.
- Include Clients - Select this option to apply Device Management Policy to specific clients. Follow these steps:
- Click +Add Include Clients.
The Add Include Client window opens. - Choose which clients to include, from the list, and close the window.
- Click +Add Include Clients.
- Exclude Clients - Select this option to apply Device Management Policy to all but specific clients.
- Click +Add Exclude Clients. The Add Exclude Client window opens.
- Choose which clients to exclude from the list and close the window. The Device Management Policy is applied to all the clients except the ones in the list you created.
- Client: Your name displays in the Client’s field.
- Partner: You have the following choices:
- Provide a suitable Name for the policy.
- Select one of the following as Filter Criteria Type:
- Resource Filters: Define the filter rules to get a better and accurate search result.
If you select Resource Filters, do the following:- Click Any or All to match any one or all of the conditions you define for filtering, respectively.
- Select the options for the following filter criteria fields:
- Auto Scaling: Lists all the resource types supported by OpsRamp.
- Attribute Name: Select an attribute from the drop-down list. The attributes vary according to the resource type chosen.
- Logic condition: A logical match criterion to enhance search results.
Choose from Contains, Not Contains, Equals, Not Equals, Starts With, Ends With, and Regex depending on your requirements. - Value: Provide a suitable value corresponding to the attribute name.
- Click Add Criteria to add more filter criteria.
- Click Show Matching Members. A list of all the devices matching the criteria is displayed.
Example 1: Select resource type as Device, attribute as Interface Name. Define the condition as Contains ‘port’. The matching resource or resources are displayed that share a common port with the interfaces that support a service. To verify, click the name of the resource. The details are displayed in the attribute section.
Example 2: Select resource type asDevice
, attribute asName
. Define the condition as Containslocaldomain
. The Name attribute is populated according to the priority- Alias Name, Host Name and Resource Name.
- Smart Filters: Filter by devices or resources type.
If you select Smart Filters, click to select the types of devices or resources from the list.
Note: If you select Any Resources, all the other options are disabled except Any Device, Any Linux, and Any Windows options.
- Resource Filters: Define the filter rules to get a better and accurate search result.
- From the Perform Actions section, select one or more resource actions.
- Click Save & Run Now.
Options | Available for | Force Assign/Unassign | Description |
---|---|---|---|
Assign Monitoring Templates | Partner, Client | Available |
|
Assign Knowledge Base Article | Partner, Client | Available |
|
Assign Availability Rule | Partner, Client | Not Available |
|
Assign Custom Attributes | Partner, Client | Available |
|
Assign Jobs | Client | Available |
|
Assign Credentials | Client | Available |
|
Editing policies
To edit a policy:
- Select Setup > Resources > Device Management Policies.
- Click the policy name and Edit at the top right corner.
- Change the name, filter criteria or assign/unassign rules.
- Click Save & Run Now. The updated policy appears in the list of Device Management Policies.
Deleting policies
To delete a single or multiple policies:
- Select Setup > Resources > Device Management Policies.
- Click the check box against the policy to select it. You can select multiple policies.
- Click the check box beside the Policy Name on the title bar to select all the policies.
- Click Remove.
Note
The actions already performed on the resources due to the execution of the policy are not rolled back.The Device Management Policies page displays all the policies created for various resources and rules applied to them. The following columns are displayed:
Fields | Description |
---|---|
Policy Name | Name of the policy. |
Organization Name | Name of the Organization. |
Execution Order | The order in which the policy is executed. |
Last Updated Date | Date and time when the policy was last updated. The time zone displayed is the time zone of the organization while creating the user/client/partner profile. |
Last Updated By | Name of the partner or client. |
Last Action Time | Date and time when the policy was last executed. |
Logs | Logs of the executed policy. Click to see the logs.
A dialog box appears asking for the following details:
|
Apply Policy Now | Run the policy. Click the symbol to execute the policy. |