04-14-2021 04:54 PM
-I had a c9200 device discovered by dna center and it showed a cli authentication error.
-tried to delete it from inventory and I checked clean up configuration box.
-and then I did a reset the device configuration.
-but the device didn't removed and the delete device from action is disabled
How can I remove it from inventory?!
Thanks
04-14-2021 05:14 PM
Device deleted from Provision>Devices>Inventory.
What version of DNAC ? Try below thread may also help you,
04-14-2021 06:15 PM
One way to delete the device in your Use Case Scenario
For example:
!
username netadmin privilege 15 password Cisco123!
!
!
event manager applet CLI_COMMANDS-->
event cli pattern ".*" sync no skip no
action 1.0 syslog msg "$_cli_msg"
action 2.0 file open FH flash:eem_cli_commands.txt a+
action 2.1 file puts FH "$_event_pub_time %HA_EM-6-LOG: CLI_COMMANDS-->: $_cli_msg"
action 2.2 file close FH
!
# Issue CLI command
switch# term mon
Discovery Parameters:
IP Address/Range c9200.ip.address-c9200.ip.address
+ Add Credentials
CLI Credentials netadmin Cisco123! enable.password
SNMPv2c Credentials snmpv2ro
then Discover the device... Monitor the output on the switch
The device should then be deleted. If it fails, record the errors seen on the screen...
Another Option is Delete Device using the API:
Use Postman...
GET
{{PROTOCOL}}://{{DNAC.IP.ADDRESS}}/dna/intent/api/v1/network-device/ip-address/{device.ip.address}
** Get device_id from the response
DELETE
{{PROTOCOL}}://{{DNAC.IP.ADDRESS}}/dna/intent/api/v1/network-device/{id}
[ref:deadbeef]
04-15-2021 04:31 AM
Thanks Tomas for your reply,
DNAC version is 2.1.2.6
And yes I already remove it from the fabric.
I will try your solution and give you a feedback
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