Network OS Administration Guide

Supporting Network OS 6.0.1a

Part Number: 53-1003768-04

Running Python scripts from the command line

The facility to run Python scripts from the Network OS command line enables you to execute complex and repetitious tasks with accuracy and efficiency. This facility also enables you to validate scripts intended for event management.

Note Icon
Make sure that you test Python scripts according to standard quality assurance practices before deploying them.
To perform this procedure, you need admin-role access.
In privileged EXEC mode, enter the python command, specifying the Python script file that you want to run.
device# python
The script is discussed in Script for assigning interfaces to port channels (