• No results found

Click OK to go back to Default Credential Sets Policy Configuration page

In document Cisco LMS 4.2_User Guide (Page 166-169)

Configuring Default Credential Set Policy

Step 4 Click OK to go back to Default Credential Sets Policy Configuration page

Chapter 4 Administering Discovery Settings and Device and Credential Repository Administering Device and Credential Repository

Regular Expressions in Default Credential Set Policy Rules

Hostname and Device Name policy types supports regular expressions.

You can use the following characters in regular expressions:

Examples For Default Credential Set Policies

Example 1 - IP Range Policy Type

Consider that all devices whose IP Addresses are within the range 10.77.[210-230].*, should be added or imported to DCR with the default credentials defined in a default credential set IPSet.

You should create a default credential set policy based on the IP Range policy type. To do so:

Step 1 Select Admin > Network > Device Credential Settings > Default Credential Sets Policy Configuration.

The Credentials Sets Policy Configuration page appears.

Step 2 Click Add to add a default credential set policy.

The Add Credentials Policy Configuration dialog box appears.

Step 3 Construct the policy:

a. Select the policy type as IP Range from the Select a Policy Type drop-down list box.

b. Enter the IP Range value as 10.77.[210-230].*

c. Select the Default Credential Name as IPSet

Step 4 Click OK to go back to Default Credential Sets Policy Configuration page.

The policy that you have configured will be listed in a table format.

Example 2 - IP Range Policy Type

Consider that all devices whose IP Addresses are within the range

100:DB8:*:*:FF:[C0A8-DD88]:0:[10-15], should be added or imported to DCR with the default credentials defined in a default credential set IPv6Set.

You should create a default credential set policy based on the IP Range policy type. To do so:

Character Description Purpose

. Period Matches any character

( Opening parenthesis Marks the beginning of a group of matched characters ) Closing parenthesis Marks the end of a group of matched characters

* Asterisk Matches zero or more occurrences of regular expression specified earlier

+ Plus character Matches zero or more occurrences of regular expression specified earlier

\ Trailing slash Identifies a special character within a regular expression

Chapter 4 Administering Discovery Settings and Device and Credential Repository

Administering Device and Credential Repository

The Credentials Sets Policy Configuration page appears.

Step 2 Click Add to add a default credential set policy.

The Add Credentials Policy Configuration dialog box appears.

Step 3 Construct the policy:

a. Select the policy type as IP Range from the Select a Policy Type drop-down list box.

b. Enter the IP Range value as 100:DB8:*:*:FF:[C0A8-DD88]:0:[10-15]

c. Select the Default Credential Name as IPv6Set

Step 4 Click OK to go back to Default Credential Sets Policy Configuration page.

The policy that you have configured will be listed in a table format.

Example 3 - Device Name Policy Type

Consider that all devices whose Device Names end with or contain device, should be added or imported to DCR with the default credentials defined in a default credential set SetName2.

You should create a default credential set policy based on the Device Name policy type. To do so:

Step 1 Select Admin > Network > Device Credential Settings > Default Credential Sets Policy Configuration.

The Credentials Sets Policy Configuration page appears.

Step 2 Click Add to add a default credential set policy.

The Add Credentials Policy Configuration dialog box appears.

Step 3 Construct the policy:

a. Select the policy type as Device Name from the Select a Policy Type drop-down list box.

b. Enter the value as (.)*device

c. Select the Default Credential Name as SetName2

Step 4 Click OK to go back to Default Credential Sets Policy Configuration page.

The policy that you have configured will be listed in a table format.

Example 4 - Device Name Policy Type

Consider that all devices whose Device Names contain 1.3.6.1.4.1.9.1.n, should be added or imported to DCR with the default credentials defined in a default credential set SOIDset.

You should create a default credential set policy based on the Device Name policy type. To do so:

Step 1 Select Admin > Network > Device Credential Settings > Default Credential Sets Policy Configuration.

The Credentials Sets Policy Configuration page appears.

Step 2 Click Add to add a default credential set policy.

Chapter 4 Administering Discovery Settings and Device and Credential Repository Administering Device and Credential Repository

Step 3 Construct the policy:

a. Select the policy type as Device Name from the Select a Policy Type drop-down list box.

b. Enter the value as (.)*\.1\.3\.6\.1\.4\.1\.9\.1\.(.) c. Select the Default Credential Name as SOIDset

Step 4 Click OK to go back to Default Credential Sets Policy Configuration page.

The policy that you have configured will be listed in a table format.

Example 5- Host Name Policy Type

Consider that all devices whose Hostnames start with Che, should be added or imported to DCR with the default credentials defined in a default credential set SetName1.

You should create a default credential set policy based on the Hostname policy type. To do so:

Step 1 Select Admin > Network > Device Credential Settings > Default Credential Sets Policy Configuration.

The Credentials Sets Policy Configuration page appears.

Step 2 Click Add to add a default credential set policy.

The Add Credentials Policy Configuration dialog box appears.

Step 3 Construct the policy:

a. Select the policy type as Host Name from the Select a Policy Type drop-down list box.

b. Enter the value as Che(.)*

c. Select the Default Credential Name as SetName1

Step 4 Click OK to go back to Default Credential Sets Policy Configuration page.

The policy that you have configured will be listed in a table format.

Example 6- Host Name Policy Type

Consider that all devices whose Hostnames contain lab2, should be added or imported to DCR with the default credentials defined in a default credential set SetName3.

You should create a default credential set policy based on the Hostname policy type. To do so:

Step 1 Select Admin > Network > Device Credential Settings > Default Credential Sets Policy Configuration.

The Credentials Sets Policy Configuration page appears.

Step 2 Click Add to add a default credential set policy.

The Add Credentials Policy Configuration dialog box appears.

Step 3 Construct the policy:

Chapter 4 Administering Discovery Settings and Device and Credential Repository

Administering Device and Credential Repository

Step 4 Click OK to go back to Default Credential Sets Policy Configuration page.

The policy that you have configured will be listed in a table format.

Deleting Default Credential Set Policies

To delete default credential set policies:

Step 1 Select Admin > Network > Device Credential Settings > Default Credential Sets Policy Configuration.

The Credentials Sets Policy Configuration page appears.

The Credentials Sets Policy Configuration list item is visible in the TOC only in DCR Master and DCR Standalone LMS Servers. You cannot see this list item in DCR Slave Servers.

Step 2 Select a default credential set policy to delete.

You can also select multiple default credential set policies to delete.

In document Cisco LMS 4.2_User Guide (Page 166-169)