Administrator Guide

3 Python Scripting for Dell Networking N-Series | Version 1.0.1
Contents
1 Introduction ................................................................................................................................................................... 5
1.1 Console output.................................................................................................................................................... 6
1.2 OOB Network ...................................................................................................................................................... 6
1.3 SSH/Telnet ......................................................................................................................................................... 6
1.4 Python script flow on Dell N-Series .................................................................................................................... 7
1.5 Tarball (.tgz and tar.gz) ...................................................................................................................................... 8
2 Switch commands for utilizing Python scripts .............................................................................................................. 9
2.1 copy .................................................................................................................................................................... 9
2.2 dir ........................................................................................................................................................................ 9
2.3 application install .............................................................................................................................................. 10
2.4 show application ............................................................................................................................................... 11
2.5 application start................................................................................................................................................. 11
2.6 application stop ................................................................................................................................................. 11
2.7 erase ................................................................................................................................................................. 12
3 Examples of Python scripting on Dell N-Series .......................................................................................................... 13
3.1 Example 1: Quick Steps .................................................................................................................................. 13
3.2 Example 2: Applying Python scripts for execution at reload ........................................................................... 14
3.3 Example 3: Running Python scripts on an active switch ................................................................................. 17
3.4 Testing offline (Best Practice) ........................................................................................................................... 19
4 Troubleshooting .......................................................................................................................................................... 20
A Supported Python modules ........................................................................................................................................ 22
B Console output options ............................................................................................................................................... 24
C Glossary of Terms ...................................................................................................................................................... 25
D Versions ...................................................................................................................................................................... 26
Additional Resources ........................................................................................................................................................ 27