Here is an example, where it is observed that the Processor and Memory instances are being deleted post creation during the device discovery.
Debug enabled domain log has below entries:
[August 9, 2019 10:13:21 AM GMT+01:00 +537ms] t@1583335168 Discovery #1
ASL_MSG-*-ASLP-discovery/ic-cisco-router-crs-health.asl: discovery/ic-cisco-router-crs-health.asl: CREATE CPU: lbg-XXX
[August 9, 2019 10:13:21 AM GMT+01:00 +730ms] t@1583335168 Discovery #1
ASL_MSG-*-ASLP-discovery/ic-cisco-router-crs-health.asl: discovery/ic-cisco-router-crs-health.asl.1.3.6.1.4.1.9.9.221.1.1.1.1.3 [7000.1] = 50726F6XXX73736F72
[August 9, 2019 10:13:23 AM GMT+01:00 +492ms] t@1583335168 Discovery #1
AD_MSG-*-AD_LOG-at 'ProbeClosure t@1583335168', while discovering 'lbg-XXX', invoking HostResrcs-Probe
[August 9, 2019 10:13:23 AM GMT+01:00 +774ms] t@1583335168 Discovery #1
DSCV-W-DELETE_COMPONENT-'PSR-lbg-XXX/7' is no longer found on 'lbg-XXX'. It is removed from topology
[August 9, 2019 10:13:24 AM GMT+01:00 +466ms] t@1583335168 Discovery #1
ASL_MSG-*-ASLP-discovery/ic-hostresources-arista-mib2-other.asl: discovery/ic-hostresources-arista-mib2-other.asl: HOST_OS: lbg-XXX
[August 9, 2019 10:13:24 AM GMT+01:00 +466ms] t@1583335168 Discovery #1
ASL_MSG-*-ASLP-discovery/ic-hostresources-arista-mib2-other.asl: .1.3.6.1.2.1.1.1 [0] = <Device OS details>
[August 9, 2019 10:13:24 AM GMT+01:00 +470ms] t@1583335168 Discovery #1
DSCV-W-DELETE_COMPONENT-'MEM-lbg-XXX/7000.1 [Processor]' is no longer found on 'lbg-XXX'. It is removed from topology
Below field certification was deployed on prior Smarts installation 9.2.x:
#Cisco 4431 ISR
.1.3.6.1.4.1.9.1.1935 {
TYPE = Router
VENDOR = Cisco
MODEL = CISCO-4431-ISR
CERTIFICATION = TEMPLATE
CONT = Cisco-Router-Entity
HOSTRESRCS = Arista-MIB2
NEIGHBOR = Cisco-Cdp
HEALTH = Cisco-Router-CRS-EntSensor
VLAN = Cisco-CVI-Vlan
INSTRUMENTATION:
Card-Fault = CiscoEntityFRU
Environment = CiscoEntityFRU:DeviceID
CPU/Memory = CiscoRouter:DeviceID
Interface-Fault = MIB2
Interface-Performance = CiscoRouter
Interface-Ethernet-Performance = CiscoRouter_Ethernet
}
Post upgrade to the Smarts IP version 9.5.1 patch 1, the device official certification doesn't have the entry HOSTRESRCS = Arista-MIB2. Earlier field certification has been commented out.
A reloadoid was performed on the domain successfully with below command:
sm_tpmgr -s <Incharge Domain> --reloadoid
However it is observed that the HostResrcs driver (ic-hostresources-arista-mib2-other.asl) is still invoked during device discovery.
The above reloadoid command does not clear the GA_SelectiveDriver entries on the IP domain which is responsible to run the HostResrcs Probe.
The HostResrcs-Probe is run via GA_SelectiveDriver::HostResrcs-Probe which selects based on certification. In order to clear the entry of HostResrcs-Probe from the GA_SelectiveDriver in IP domain post making changes to the certification, follow the below steps:
1. Verify that the selector pattern does not include the device OID (.1.3.6.1.4.1.9.1.1935 in this example) mapped with any HostResrcs driver with the below:
./dmctl -s <IP Domain Name> get GA_SelectiveDriver::HostResrcs-Probe
2. If it is present, remove the same using the below command:
./dmctl -s <IP Domain Name> invoke GA_SelectiveDriver::HostResrcs-Probe removeSelector .1.3.6.1.4.1.9.1.1935 | tee
3. Rediscover the device
Processor and Memory instances get deleted during device discovery