Git Product home page Git Product logo

dcnm-rest-sample's Introduction

Data Center Network Management REST Sample

This is a collection of sample REST API client code for Cisco Data Center Network Manager (DCNM). For DCNM software download and documentation, please refer to http://www.cisco.com/go/dcnm

Prerequisites

Tested with Python3.6.4 and DCNM 10.3(1),10.4(1),10.4(2) and 11.0(1), 11.1(1)

Sample Code

  • manageLanSwitch.py: sample code to change device management state

  • deleteLanSwitch.py: sample code to delete an ethernet switch from DCNM

  • deleteSanFabricByName.py: sample code to delete an existing FC fabric from DCNM

  • discoverLanSwitch.py: sample code to discover ethernet switch

  • discoverSanFabric.py: sample code to discover FC/San fabric

  • getSwitchCPU.py: sample code to retrieve CPU chart for a specific switch

  • getAllAlarm.py: sample code to retrieve all outstanding alarms and associated events

  • getAllEtherInterfaceStats.py: sample code to retrieve all Ether interface stats

  • getAllFCInterfaceStats.py: sample code to retrieve all FC interface stats

  • getFCInterfaceStats.py: sample code to retrive switch FC interface statistics

  • getSwitchCPU.py: Sample code to retrieve FC/SAN switch CPU utilization.

  • getLanSwitchCPU.py: Sample code to retrieve Ethernet/LAN switch CPU utilization.

  • getLanSwitchMem.py: Sample code to retrieve Ethernet/LAN switch Memory utilization.

  • manageUser.py: Sample code to change local user password

  • getServerStatus.py: Sample code to get DCNM server running status

  • sanZoningSample.py: Sample code to create zone for init/target pair, activate zonset for fabric running enhanced zone mode.

dcnm-rest-sample's People

Contributors

eckelcu avatar lojia avatar louisjia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dcnm-rest-sample's Issues

How to update an interface in DCNM via REST API via Python Code?

Please help. I am migrating a lot of servers connecting to our legacy switches over to our new DCNM leaf switches. It's very painful to update over 100 interfaces via the DCNM GUI. I looked through all the DCNM rest samples and did not see one that updates an interface by changing its payload to appropriate values according to the interface's policy.

If someone has done this very task using python code please help with a sample code. Thank you in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.