Administrator Guide

5 Python Scripting for Dell Networking N-Series | Version 1.0.1
1 Introduction
This document is a supplement to the Dell Networking N-Series User Guide and provides easy step-by-step
instructions to help users configure Dell N-Series switches using Python scripts. This document primarily
advises the reader on how to run Python scripts on N-Series switches. Explanation of Python syntax is
beyond the scope of this document. Locate Python syntax explanations in numerous other resources both on
the internet and in hardcopy material. Switch administrators need to develop and test scripts offline prior to
executing a Python script on the switch since the switch does not offer interactive shell access for script
development. Dell Networking N-Series supports Python version 2.7.10.
Examples in this document use Dell Networking N3xxx switches, however any N-Series switches running
firmware version 6.3 or later accepts scripts and commands shown in this paper. The following N-Series
models offer Python (v. 2.7.10) scripting support:
N1524, N1524P, N1548, N1548P, N2024, N2024P, N2048, N2048P, N3024, N3024F, N3024P, N3048,
N3048P, N4032, N4032F, N4064, N4064F
Important Notes: Dell EMC strongly advises switch administrators to maintain Dell Networking N-Series
switches with the latest version of the Dell Networking Operating System. Dell Networking continually
improves the features and functions based on feedback from you, the customer.
For critical infrastructure, Dell EMC recommends prestaging new releases into a non-critical portion of the
network to verify configurations and operations prior to installing into a production environment.
Figure 1 illustrates the network topology represented throughout this guide.
Stack No.
1
2
1 2SFP+
3 5 7 9 11
4 6 8 10 12
13 15 17 19 21
14 16 18 20 22 24
LNK ACT1
2
COMBO P
23
LNK ACT
Dell N3024
Dell N3024 Stack
TFTP
File Server
Management Switch
Stack No.
1
2
1 2SFP+
3 5 7 9 11
4 6 8 10 12
13 15 17 19 21
14 16 18 20 22 24
LNK ACT1
2
COMBO P
23
LNK ACT
Management
Station
Data Network
OOB Network
Stack No.
1
2
1 2SFP+
3 5 7 9 11
4 6 8 10 12
13 15 17 19 21
14 16 18 20 22 24
LNK ACT1
2
COMBO P
23
LNK ACT
Stack No.
1
2
1 2SFP+
3 5 7 9 11
4 6 8 10 12
13 15 17 19 21
14 16 18 20 22 24
LNK ACT1
2
COMBO P
23
LNK ACT
(any switch)
Python scripting example topology