06-28-2018 11:13 PM - edited 03-01-2019 06:39 PM
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?
06-29-2018 12:45 AM
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.
06-29-2018 03:37 AM
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?
06-29-2018 04:06 AM
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.
07-02-2018 01:33 AM
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.
07-02-2018 01:30 PM
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.
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