Device Programmability

Hi Hany,

Netmiko is a library to interact with network devices through SSH. You can use it to automate things that you would normally do yourself with SSH.

Postman is (simply said) an API client. If you want to interact with your router through postman, you’ll have to use something that both postman and the router support (like RESTCONF).

If you want to use Python with RESTCONF, you can use the requests library.

Cisco DevNet has some examples. Here’s one to get the hostname of a router:

Here’s one to create a static route:

This works, but building python scripts with the requests library like this can be a pain. I looked, but there aren’t any good RESTCONF python libraries. NETCONF is probably easier, because of the excellent ncclient library.

Rene