Would you explain what is the business case here? To which CIs in CMDB do you want to associate this information?
The age_count attribute for a Host or device (NetworkDevice, etc) represents the number of failed or successful scans in a row.
(Same thing for SoftwareInstance, etc)
If age_count is negative, it is the number of failed scans in a row.
If age_count is positive, it is the number of successful scans in a row.
You could put age_count information into the CMDB, onto the BMC_ComputerSystem...
Here is an example:
num_failed_scans := 0;
if age_count < 0 then
num_failed_scans := age_count * -1;
computersystem.FailedScans := num_failed_scans;
You would want a syncmapping extension pattern for Host, NetworkDevice, SNMPManagedDevice, and other node types that create BMC_ComputerSystem CI's and also have an age_count.
I see that some node types that create BMC_ComputerSystem do not have an age_count, such as CloudService, HardwareContainer, HostContainer, StorageSystem.
I am attaching a sample pattern which addresses these types of nodes from Discovery; all of which are used to create BMC_ComputerSystem in the CMDB.
Host, NetworkDevice, SNMPManagedDevice, Printer, CloudService, MFPart
The pattern I am attaching does this:
Look at the DiscoveryAccess of the device to see what the _consolidation_source_name is (i.e. to see what the name of the scanner is).
Based on the scanner name, it sets an attribute on the BMC_ComputerSystem called "Environment".
2 of 2 people found this helpful
While this used to be true it is no longer the case. Various patterns build some root inferred nodes and these do not have the associated age_count.
Actually we are working on the remediation for No Access,No response servers list.We don't have server owner info in Discovery but we are maintaining in CMDB.
So I am thinking we can add custom attributes like agecount ,lastmarker and last access response ..so that we can extract the list with owner details using the database query.
okay understand Lisa.But I am not able to see any attached pattern.