Skip to content

Python script to load devices from .csv file via the API

Notifications You must be signed in to change notification settings

hstafford-kentik/kentik_add_device

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kentik_add_device

This is a python script that reads device data from a .csv file and creates devices in the Kentik portal using the Kentik API.

For example, a .csv file consisting of

router_test1,router,Test Router 1,2144,1365,100,10.254.254.1,10.254.254.1,testcommunity
router_test2,router,Test Router 2,2144,1365,100,10.254.254.2,10.254.254.2,testcommunity
router_test3,router,Test Router 3,2144,1365,100,10.254.254.3,10.254.254.3,testcommunity

Will create three new devices in the kentil portal with the minimal number of required config elements.

Lines beginning with '#' are ignored.

There is some minimal error handling to help diagnose failed updates.

About

Python script to load devices from .csv file via the API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%