cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
820
Views
0
Helpful
1
Replies

Automate adding devices to inventory

NiclasAndersen
Level 1
Level 1

Hi

I have the service deployed at a customer site, with over 300 switches that all need to have config changes, and to be able to group them and send the same command to every device in that group would realy speed up the deployment. 

So my question is, is there any way to write a python script and add the devices from a csv file using the client?

1 Accepted Solution

Accepted Solutions

tvanegro
Cisco Employee
Cisco Employee

Hi Niclas, 

You can use the radkit-control utility on the service side to load a JSON or CSV file.

Here is the documentation to the utility: https://radkit.cisco.com/docs/pages/control_cli.html 

Command synopsis: 

radkit-control device bulk-create [--input bulk_devices.json] [--json-template]
Or 
radkit-control device bulk-create --csv-template terminal

let me know if that helps. The formats are described in the document above.

View solution in original post

1 Reply 1

tvanegro
Cisco Employee
Cisco Employee

Hi Niclas, 

You can use the radkit-control utility on the service side to load a JSON or CSV file.

Here is the documentation to the utility: https://radkit.cisco.com/docs/pages/control_cli.html 

Command synopsis: 

radkit-control device bulk-create [--input bulk_devices.json] [--json-template]
Or 
radkit-control device bulk-create --csv-template terminal

let me know if that helps. The formats are described in the document above.