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

ACS 5.6: Problem with deleting file via cli

Vaclav Janecek
Beginner
Beginner

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

Javier Henderson
Enthusiast
Enthusiast

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

Javier Henderson
Enthusiast
Enthusiast

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers