Adding or editing a realm
The following procedures provide instructions for creating a realm, assigning devices to the realm, and granting access to the realm by using roles. Repeat these procedures for each restricted device group or tenant.
- To add or edit a realm
- To assign devices to a realm
- To grant access to the realm
- Examples of purging historical configurations
- Related topics
To add or edit a realm
- Open the Realms page by navigating to Network > Spans > Realms in the GUI.
In the Realms page, perform one of the following actions:
- To define a new realm, click Add in the menu.
- To create a new realm by duplicating and editing an existing realm, click Copy
in the Actions column for the existing realm.
- To edit attributes for an existing realm, click Edit
in the Actions column for the existing realm.
- Specify or edit a realm name.
- In the Purging section, define the following device-related purging parameters:
- Purge Offline Devices After (Optional): Select to specify when BMC Network Automation should delete a device belonging to this realm that has been inOffline state for the selected number of days.Range is 30 to 366 days.
- Purge Historical Hardware Inventories After (Optional): Select to specify how many days to keep historical hardware inventory of a device belonging to this realm. Inventories older than the specified time are automatically purged. The current hardware inventory is never purged.Range is 7 to 366 days.
Purge Historical Hardware Inventories After the Count Exceeds (Optional): Select to specify how many historical hardware inventories of a device belonging to this realm to store before purging the oldest. Range is 1 to 100.
- In the Fallback Purge Criteria section, define the configuration purge criteria for devices in this realm that should be applied to those configurations that do not fall into either the Purge Historical Configurations By Configuration Trails or Purge Historical Configurations By Device Types settings:
- Purge Historical Configurations After (Optional): Select to specify how many days to keep historical configuration files. Configuration files older than the specified time are automatically purged. The trusted configuration is never purged. Range is 30 to 366 days.
Purge Historical Configurations After the Count Exceeds (Optional): Select to specify how many historical configuration files to store before purging the oldest configuration file. Range is 1 to 100.
Purge Historical Configurations By Configuration Trails: (Optional) Select to specify how to purge historical configuration files of devices in this realm on a per configuration trail basis. After selecting Purge Historical Configurations By Configuration Trails, perform one of the following actions:
Icon
Action
Description
Add
Add a new configuration trail purge criteria.
Edit
Edita selected configuration trail purge criteria.
Delete
Delete a selected configuration trail purge criteria.
Purge Historical Configurations By Device Types (Optional): Select to specify how to purge historical configuration files of devices in this realm on a per device type basis. After selecting Purge Historical Configurations By Device Types, perform one of the following actions:
Icon
Action
Description
Add
Adda new device type purge criteria.
Edit
Edita selected device type trail purge criteria.
Delete
Deletea selected device type purge criteria.
- Fill in any dynamic fields, such as Description.
Click Save.
To assign devices to a realm
After you create a realm, you are ready to assign devices to it.
- Open the Devices page by navigating to Network > Spans > Devices in the GUI.
- Add multiple devices (in bulk) to the realm as follows:
- Use the Device Filter to select devices to include in the realm (for example, filter by Type=Default).
- Set the Show items per page to 1000 to display as many devices as possible.
- Select all devices by using the checkbox in the upper left hand corner.
- Use the Device Edit option to set the realm on the selected devices.
- Select Save to place all the selected devices into the realm (for example, Speedy Legal Services)
To grant access to the realm
- Open the Roles page by navigating to Admin > User Admin > Roles in the UI.
- Create a role as follows:
- On the Details tab, specify the role name and description.
- On the Users tab, add one or more users to this role.
- On the System Rights tab, assign system rights for this role, as shown in the following figure:
- On the Network Rights tab, select one of the following options:
- Full Rights: Grant all rights in all realms.
Selected Rights: Grant selected rights in selected realms.
For Selected Rights, select a realm, if more than one realm exists, and select specific rights from the tree, as shown in the following figure. You can grant different rights in different realms.
- Click Save to create the user role.
The role is added to the list of roles.
Examples of purging historical configurations
The Cisco IOS Switch/Router device type has three supported configuration trails: Running, Startup, and IOS vlan.dat.
Consider a scenario with the following "purge after days" conditions:
- Purge Historical Configurations By Configuration Trails for the Running configuration trail after 30 days.
- Purge Historical Configurations By Device Type for the Cisco IOS Switch/Router after 90 days.
The historical configurations for the Running configuration trail that are older than 30 days are purged by the purge criteria specified in Purge Historical Configurations By Configuration Trails.
The historical configurations for the remaining configurations trails, Startup and IOS vlan.dat that are older than 90 days are purged by the purge criteria specified in Purge Historical Configurations By Device Types.
Consider the reverse scenario with the following "purge after days" conditions:
- Purge Historical Configurations By Configuration Trails for the Running configuration trail after 90 days.
- Purge Historical Configurations By Device Type for the Cisco IOS Switch/Router after 30 days.
In this scenario, the historical configurations for the Running, Startup, and IOS vlan.dat. configuration trails that are older than 30 days are purged by the purge criteria specified in Purge Historical Configurations By Device Types.
The historical configurations for the Running configuration trail specified in Purge Historical Configurations By Configuration Trails are overridden by the purge criteria specified in Purge Historical Configurations By Device Types. The more aggressive purging criteria is applied.
The above scenarios, which are applicable to "purge after days" conditions, are also applicable to "purge after the count exceeds" conditions.
Related topics