08-05-2021 02:19 AM
Hi all,
I'm impacted by CSCvt68314, and need delete fault F0948 from APIC. One option for clear the fault is
You can delete the fvRsBDToProfile under the BD using the following POST using REST API. This will clear the association and fault.
https:///api/node/mo/uni/tn-t1/BD-bd1/rsBDToProfile.xml
If needed, this can be executed via postman or via CLI on the APIC. Work with TAC if you are unclear of how to POST this XML to the APIC.
I tried POST this call to my BD with Postmand without luck, and I don't want open a case for this reason (metric counts). Can someone help me to POST this Rest API called with Postman?.
Regards.
Solved! Go to Solution.
08-05-2021 08:47 PM - edited 08-06-2021 02:14 PM
Hi @Ernesto Fernandez gomez-pinto ,
[2021.08.07: Edited to correct typo in JSON payload - thanks Ernesto]
I see you have no answer to this so thought I'd take a quick look
Firstly, you have to wonder at the numbskull geeks who write those bug-reports - the person who wrote this has NO idea how to describe a process (and I've seen quite a few that are in the same vein).
So the key thing is to find what instances of the Class fvRsBDToProfile you have on your system, and the distinguished name for each. From a command shell on the APIC the following command should tell you:
apic1# moquery -c fvRsBDToProfile | egrep "^dn\ " dn : uni/tn-Tenant18/BD-App_BD/rsBDToProfile
You may see more than one entry - I created this one just to show you how to extract the distinguished name of the object you wish to delete.
If you are familiar with Postman (logging in etc) then take the dn you just found and post this (based on the dn found from the moquery) to https://IP_Address_of_APIC/api/node/mo/uni/tn-Tenant18/BD-App_BD/rsBDToProfile.json
{ "fvRsBDToProfile": { "attributes": { "dn": "cut_and_paste_dn_here", "status": "deleted"} } }
I hope this helps.
Don't forget to mark answers as correct if it solves your problem. This helps others find the correct answer if they search for the same problem
08-05-2021 08:47 PM - edited 08-06-2021 02:14 PM
Hi @Ernesto Fernandez gomez-pinto ,
[2021.08.07: Edited to correct typo in JSON payload - thanks Ernesto]
I see you have no answer to this so thought I'd take a quick look
Firstly, you have to wonder at the numbskull geeks who write those bug-reports - the person who wrote this has NO idea how to describe a process (and I've seen quite a few that are in the same vein).
So the key thing is to find what instances of the Class fvRsBDToProfile you have on your system, and the distinguished name for each. From a command shell on the APIC the following command should tell you:
apic1# moquery -c fvRsBDToProfile | egrep "^dn\ " dn : uni/tn-Tenant18/BD-App_BD/rsBDToProfile
You may see more than one entry - I created this one just to show you how to extract the distinguished name of the object you wish to delete.
If you are familiar with Postman (logging in etc) then take the dn you just found and post this (based on the dn found from the moquery) to https://IP_Address_of_APIC/api/node/mo/uni/tn-Tenant18/BD-App_BD/rsBDToProfile.json
{ "fvRsBDToProfile": { "attributes": { "dn": "cut_and_paste_dn_here", "status": "deleted"} } }
I hope this helps.
Don't forget to mark answers as correct if it solves your problem. This helps others find the correct answer if they search for the same problem
08-06-2021 10:25 AM
Hi,
I have tried your solution and this work ok. I have cleared the faults without any problem. Only one clarification in the boby of call, you have a little mistake (i´m sure that is a copy and paste mistake), the class is wrong
{ "rsBDToProfile": { "attributes": { "dn": "cut_and_paste_dn_here", "status": "deleted"} } }
The correct call is
{ "fvRsBDToProfile": { "attributes": { "dn": "cut_and_paste_dn_here", "status": "deleted"} } }
Thank you very much for your help.
Regards.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide