cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1117
Views
0
Helpful
0
Replies

APIC - Relate backup/restore job to event-log

thwollnik
Level 1
Level 1

Hi,

 

Ive created a script tp  backup and restore the APIC  configuration.

Now I want to show the corresponsing status of the restore or backup event.

 

Using Cobra SDK I do the request below and get  a list of events back.

But how do I relate the Event to the Backup/Restore Job ?

 

----

#import modules and login to apic now shown

import cobra.mit.request
status_query = cobra.mit.request.DnQuery('uni/backupst/jobs-[uni/fabric/configimp-Restore-Import]')
status_query.queryTarget = "subtree"
status_query.subtreeInclude = "stats"
stats = session.query(status_query)

 

for sts in stats

print sts.name

 

0 Replies 0