<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic APIC - Relate backup/restore job to event-log in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/apic-relate-backup-restore-job-to-event-log/m-p/3805735#M417</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ive created a script tp&amp;nbsp; backup and restore the APIC&amp;nbsp; configuration.&lt;/P&gt;&lt;P&gt;Now I want to show the corresponsing status of the restore or backup event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Cobra SDK I do the request below and get&amp;nbsp; a list of events back.&lt;/P&gt;&lt;P&gt;But how do I relate the Event to the Backup/Restore Job ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;#import modules and login to apic now shown&lt;/P&gt;&lt;P&gt;import cobra.mit.request&lt;BR /&gt;status_query = cobra.mit.request.DnQuery('uni/backupst/jobs-[uni/fabric/configimp-Restore-Import]')&lt;BR /&gt;status_query.queryTarget = "subtree"&lt;BR /&gt;status_query.subtreeInclude = "stats"&lt;BR /&gt;stats = session.query(status_query)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for sts in stats&lt;/P&gt;&lt;P&gt;print sts.name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2019 11:39:17 GMT</pubDate>
    <dc:creator>thwollnik</dc:creator>
    <dc:date>2019-02-20T11:39:17Z</dc:date>
    <item>
      <title>APIC - Relate backup/restore job to event-log</title>
      <link>https://community.cisco.com/t5/controllers/apic-relate-backup-restore-job-to-event-log/m-p/3805735#M417</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ive created a script tp&amp;nbsp; backup and restore the APIC&amp;nbsp; configuration.&lt;/P&gt;&lt;P&gt;Now I want to show the corresponsing status of the restore or backup event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Cobra SDK I do the request below and get&amp;nbsp; a list of events back.&lt;/P&gt;&lt;P&gt;But how do I relate the Event to the Backup/Restore Job ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;#import modules and login to apic now shown&lt;/P&gt;&lt;P&gt;import cobra.mit.request&lt;BR /&gt;status_query = cobra.mit.request.DnQuery('uni/backupst/jobs-[uni/fabric/configimp-Restore-Import]')&lt;BR /&gt;status_query.queryTarget = "subtree"&lt;BR /&gt;status_query.subtreeInclude = "stats"&lt;BR /&gt;stats = session.query(status_query)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for sts in stats&lt;/P&gt;&lt;P&gt;print sts.name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 11:39:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/apic-relate-backup-restore-job-to-event-log/m-p/3805735#M417</guid>
      <dc:creator>thwollnik</dc:creator>
      <dc:date>2019-02-20T11:39:17Z</dc:date>
    </item>
  </channel>
</rss>

