https://github.com/ciscodevnet/dcnm-rest-sample
Sample client code for Cisco Data Center Network Manager REST API
https://github.com/ciscodevnet/dcnm-rest-sample
nx-os python rest
Last synced: about 1 month ago
JSON representation
Sample client code for Cisco Data Center Network Manager REST API
- Host: GitHub
- URL: https://github.com/ciscodevnet/dcnm-rest-sample
- Owner: CiscoDevNet
- License: bsd-3-clause
- Created: 2018-06-08T18:32:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T21:19:15.000Z (almost 6 years ago)
- Last Synced: 2025-04-14T22:07:16.340Z (about 1 month ago)
- Topics: nx-os, python, rest
- Language: Python
- Homepage: https://developer.cisco.com/site/data-center-network-manager
- Size: 52.7 KB
- Stars: 10
- Watchers: 2
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](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.