cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
540
Views
0
Helpful
2
Replies

ACS 5.6: Problem with deleting file via cli

Vaclav Janecek
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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.

View solution in original post

2 Replies 2

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.

Stupid mistake. Thank you very much.