About the Python API
Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python's syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.
The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python website:
The same site also contains distributions of and pointers to many free third-party Python modules, programs and tools, and additional documentation.
The Cisco MDS NX-OS 9000 Series devices support Python v2.7.5 in both interactive and non-interactive (script) modes.
The Python scripting capability gives programmatic access to the device's command-line interface (CLI) to perform various tasks and PowerOn Auto Provisioning (POAP) or Embedded Event Manager (EEM) actions.
The Python scripting capability is also used in the Overlay CLI feature of SAN Analytics to interpret the analytics data.
The Python interpreter is available in the Cisco MDS software.
Note |
From Cisco MDS NX-OS Release 8.2(1), Python version 2.7.8 is supported. Starting with Cisco MDS NX-OS Release 8.4(2), Python version 3.7.3 is supported. Python2.7 is end of support, and future Cisco MDS NX-OS software will deprecate the Python2.7 support. We recommend using 'python3' for new scripts. |