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

APIC-EM reset

Thomas Schmitt
Level 5
Level 5

Hello,

 

I have some problems with PnP in APIC-EM 1.6.2.30018, so I tried to reset the application.

In my first try I just logged in via CLI as grapevine/root user and tried to run predefined reset_apicem script

$ whoami
grapevine
$ pwd
/home/grapevine/bin
$ ls -l reset_apicem
-rwxr-xr-x 1 grapevine grapevine 4642 Jun 22 13:42 reset_apicem
$ ./reset_apicem
ls: cannot access /etc/postgresql/*/main/postgresql.conf: No such file or directory
$ su root
root@grapevine-root-1:/home/grapevine/bin# ./reset_apicem
ls: cannot access /etc/postgresql/*/main/postgresql.conf: No such file or directory

then I tried

reset_grapevine factory

and wasn't able to start APIC-EM at all, because GlusterFS lost config file.

 

How can I clear PnP app and/or APIC-EM DB?

 

5 Replies 5

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

In the past I have run the command reset_grapevine , the interactive prompts will ask you several questions. I can't remember them off the top of my head but I think if you answer Yes to most of them you will reset the state of the APIC-EM instance.

 

The factory flag you mention suggests it should achieve the same thing, but try it reset_grapevine without it and see what happens.

 

cheers,

Seb.

Hello,

 

I was able to run

reset_grapevine

but database wasn't reset, I still have undeletable data in APIC-EM / PnP app.

 

Does somebody has an idea how to reset database / PnP application data?

 

hmmm, if that does not fix it have you tried using the REST API? 

I had a situation where the APIC-EM GUI was mis-reporting my estate. The only way to fix it was via the API and deleting device-id's and pnp project id's manually. The great thing about the API is you can quickly pull together a script (Python) to retrieve the relevant ID's and delete them.

 

Take a look at uniq (https://github.com/CiscoDevNet/uniq) which provides a good API for interacting with APIC-EM. 

 

cheers,

Seb.

Hi,

yes, REST API is a powerful help, but unfortunately I don't have time to play around with REST API.

There should be a possibility to reset APIC-EM db, or I will just reinstall it.

In which case I suggest you post your question on the APIC-EM Community board:

https://communities.cisco.com/community/developer/apic-em

 

It is frequented by a Cisco developer Adam Radford who knows how to spin the cogs inside APIC-EM.

 

cheers,

Seb.