Chapter 5. Systems lifecycle in the inventory application A system is a Red Hat Enterprise Linux (RHEL) host that is managed by the Red Hat Insights inventory in the Red Hat Hybrid Cloud Console. System activity is automatically monitored by Red Hat. All systems registered with inventory follow a lifecycle that includes the following states: fresh , stale , and stale warning . The state that a system resides in depends on the last time it was reported by a data collector to the inventory application. Systems are automatically deleted from inventory if they do not report within a given time frame. The goal of the deletion mechanism is to maintain an up-to-date, accurate view of your inventory. Here is a description of each state: Fresh The default configuration requires systems to communicate with Red Hat daily. A system with the status of fresh, is active and is regularly reported to the inventory application. It will be reported by one of the data collectors described in section 1.2. Most systems are in this state during typical operations. Stale A system with the status of stale, has NOT been reported to the inventory application in the last day, which is equivalent to the last 26 hours. Stale warning A system with the status of stale warning, has NOT been reported to the inventory application in the last 14 days. When reaching this state, a system is flagged for automatic deletion. Once a system is removed from inventory it will no longer appear in the inventory application and Insights data analysis results will no longer be available. 5.1. Determining system state in inventory There are two ways to determine which state a system is currently in. 5.1.1. Determining system state in inventory as a user with viewer access If you have Inventory Hosts viewer access, you can view the system state on the Systems page by using the following steps: Prerequisites You have Inventory Hosts viewer access. Procedure Navigate to the Red Hat Insights > RHEL > Inventory page. Click the Filter drop-down list, and select Status . Click the Filter by status drop-down, and choose the states you want to include in your query. Click Reset filters to clear your query. 5.1.2. Determining system state in inventory as a user with administrator access If you have Inventory Hosts administrator access, you can get the system state of any system from the Dashboard by using the following steps: Prerequisites You have Inventory Hosts administrator access. Procedure Navigate to the Red Hat Insights for Red Hat Enterprise Linux dashboard page. Go to the top left of the screen where you can examine the total number of systems that are registered with Insights for Red Hat Enterprise Linux. After the total number, towards the right side of this value, you will see the number of stale systems and the number of systems to be removed . Click either: The stale systems link. The systems to be removed link, if applicable. This opens the inventory page where you view more granular details about the system. 5.2. Modifying system staleness and deletion time limits in inventory By default, system states have the following time limits: Systems are labeled stale if they are not reported in one day. A warning icon displays at the top of the Systems page in the Last seen: field. Systems are labeled stale warning if they are not reported within 7 days. In this case, the Last seen: field turns red. Systems that are not reported in 14 days are deleted. There are situations where a system is offline for an extended time period but is still in use. For example, test environments are often kept offline except when testing. Edge devices, submarines, or Internet of Things (IoT) devices, can be out of range of communication for extended time periods. You can modify the system staleness and deletion time limits to ensure that systems that are offline but still active do not get deleted. Staleness and deletion settings get applied to all of your conventional and immutable systems. Prerequisites You are logged into the Red Hat Hybrid Cloud Console as a user with the Organization staleness and deletion administrator role. Procedure On the Red Hat Hybrid Cloud Console main page, click RHEL in the Red Hat Insights tile. In the left navigation bar, click Inventory > System Configuration > Staleness and Deletion . The Staleness and Deletion page displays the current settings for system staleness, system stale warning, and system deletion for conventional systems. Optional: To manage the staleness and configuration settings for edge (immutable) systems, select the Immutable (OSTree) tab. To change these values, click Edit . The drop-down arrows to each value are now enabled. Click the arrow to the value that you want to change and then select a new value. Note The system stale warning value must be less than the system deletion value. Optional: To revert to the default values for the organization, click Reset . Click Save . Note Setting the system deletion maximum time to less than the current maximum time, deletes systems that have been stale for longer than the new maximum time.

Commands: