Network Change & Configuration Management

Reply
Highlighted

manage devices via REST API instead of SSH

Expert
Posts: 48
1265     0

Hello,

 

SSH is the "old" but still a solid way to manage infrastructure devices. What we see nowadays is more and more REST API based managing.

 

With NetMRI 7.2.1, python scripting support was introduced.

 

Has anyone ever tried to write a python script within NetMRI and called a REST Endpoint of a device to pull or push information?

 

Thanks

 

 

Re: manage devices via REST API instead of SSH

skuchynski
Techie
Posts: 8
1266     0

Indeed, REST API is being used to manage some types of devices. NetMRI has already taken first step in the direction of supporting such devices - since 7.2.1 support of data collection from devices in Cisco ACI fabric is done using REST API.

 

Pushing changes natively (like in Port Control) in not supported at the moment, but the you still can use the advantage of device REST API and NetMRI job engine to do such changes right away. Besides direct calls to device (or controller) API, there are a number of libraries to manipulate API using some language (python mostly, so enabling python support is another step to support such devices) to interact with devices like Cisco ACI, Meraki, Viptela, etc. They can be installed as Job Management library or as a package on your sandbox to give you necessary level of control.

 

Here are some examples:
https://developer.cisco.com/media/apicDcPythonAPI_v0.1/getting-started.html
https://github.com/meraki/provisioning-lib
https://github.com/bobthebutcher/viptela

Showing results for 
Search instead for 
Do you mean 

Recommended for You