Integrate > Micro Focus Integrations > Micro Focus Network Automation (NA) Integration > How to Pull LastSnapshotAttemptDate from NA

How to Pull LastSnapshotAttemptDate from NA

In NA, the LastSnapshotAttemptDate attribute in the RN_DEVICE table shows the date and time that the data was last updated. If you want to pull this attribute from NA to UCMDB, do the following:

  1. Go to Modeling > CI Type Manager > CI Types pane, and then search for Node.
  2. In the right pane, click the Attributes tab, and then click the Add button.
  3. In the Add Attribute dialog box, fill the fields in the Details tab as follows:

    • Attribute Name: Type Last_discovered_Date_NA.
    • Attribute Name: Type LastSnapshotAttemptDate.
    • Attribute Type: Click Primitive, and then select data number in the list.
  4. Click OK.
  5. Go to Data Flow Management > Adapter Management > Resources pane, search for network_automation.py.
  6. In the right pane, locate the following lines, and then delete the '''character to uncomment the code:

    '''
    if device.lastSnapshotAttemptDate:
    	deviceOsh.setAttribute('Last_discovered_Date_NA', device.lastSnapshotAttemptDate)
    '''
  7. Run the Pull Topology from Network Automation job.