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 elegant 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 and is available in the Guest Shell.
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. Python can also be accessed from the Bash shell.
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.