02-23-2016 11:39 PM - edited 03-10-2019 11:31 PM
Hi everyone,
I am trying to automate deleting Network Devices from ACS 5.6.
I have delete.csv file with list of devices which I would like to delete:
name:String(64):Required
Test0
Test1
When I log to ACS via cli and execute command for import delete file I get this output:
.../acsadmin(config-acs)# import-data add device tftp delete.csv delete_res.txt abort-on-error none
Cannot start import.
Header is incorrect. Download Import Template for required header record.
But when I execute import file from web management, everything goes well:
-------- Summary --------
Total Number of Records Processed 2
Number of Records Failed 0
Number of Records processed successfully 2
So please, is here someone who knows what i do wrong?
Thanks
Solved! Go to Solution.
02-24-2016 04:36 AM
To delete devices, try the following command:
import-data delete device tftp delete.csv delete-res.txt abort-on-error none
Also, make sure the file file is plain text only. If you're still having problems, enable the following debug:
debug-log mgmt level debug
Then try the operation again, download a support bundle and look at the logs for clues.
02-24-2016 04:36 AM
To delete devices, try the following command:
import-data delete device tftp delete.csv delete-res.txt abort-on-error none
Also, make sure the file file is plain text only. If you're still having problems, enable the following debug:
debug-log mgmt level debug
Then try the operation again, download a support bundle and look at the logs for clues.
02-24-2016 10:52 PM
Stupid mistake. Thank you very much.
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