• Stars
    star
    101
  • Rank 338,166 (Top 7 %)
  • Language
    Python
  • Created almost 11 years ago
  • Updated almost 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of simple Python scripts to help convert network engineers into programmer network engineers

who-moved-my-cli

The scripts contained in this directory are meant to help demonstrate to network engineers how they can take common administrative tasks, and use Python to help automate these tasks.

Supported Hardware

Unless otherwise stated, all of these scripts are supported on Nexus 9000 and have been tested with NXOS: version 7.0(3)I2(2). Running on other platforms may require modification to the code.

Installation

Most of these scripts can be copied to bootflash: and executed using

python bootflash:script.py

There are also many other ways to invoke Python scripts on NX-OS, so it's suggested that you references Cisco Live presentation BRKDCT-1302 or review the Nexus 9000 documentation on CCO for more information.

Contributing

All users are strongly encouraged to contribute patches, new scripts or ideas. Please submit a pull request with your contribution and we will review, provide feedback to you and if everything looks good, we'll merge it!

Descriptions

Script Description
bcmnxosintcompare.py Script demonstrating how to programmatically interface with the broadcom shell on a Nexus 9000
cdp2desc.py Example of using the output of show cdp neighbors information, to create a configuration template populating the CDP neighbor in the interface description field
cdp2descv2.py Similar to cdp2desc.py, except this script configures the interface description to match the CDP output
easy-ofa.py This script installs and configures the Cisco Plug-in for OpenFlow.
httpserver.py Creates a simple web server in Python, that runs on a Nexus 9000 exposing a web interface displaying real time information on the switch
interface_rate.py This script prints interface throughput/packet rate statistics in an easy to read list format on NX-OS platforms
nxapicdp2desc.py Using the NX-API interface, this script will create a configuration template to configure interface descriptions with CDP details
nxapicompare.py Remotely compare the outputs of commands on multiple Nexus switches running NX-API
pingrange.py Introduces an enhanced ping command that allows for a network administrator to ping an entire range of hosts from a switch
servermon.py Monitors the status of a TCP port on a host and then takes some action if the port stops responding
supercommand.py Command that chains together the output of show ip arp, show mac address table and show cdp neighbors to create a single "supercommand". Note: Supported on Nexus 9000, but best effort has been made to support Nexus 5000 and other platforms. This code may be useful to see examples of supporting multiple platforms.

More Repositories

1

acitoolkit

A basic toolkit for accessing the Cisco APIC
Python
348
star
2

nexus9000

Nexus 9000
Python
247
star
3

ACI

Cisco Application Centric Infrastructure SDKs and Code Samples
Python
116
star
4

cobra

Cobra - Python bindings for the ACI REST API
Python
88
star
5

Ansible-NXOS

Repo for ansible nxos playbooks
Dockerfile
75
star
6

empirical-traffic-gen

Simple client-server application for generating user-defined traffic patterns.
C
54
star
7

arya

APIC Rest to pYthon Adapter
Python
52
star
8

opennxos

Repository for Cisco Nexus Switch programmability scripts
Python
49
star
9

ansible-role-aci-model

A comprehensive Ansible role to model and deploy Cisco ACI fabrics
Python
45
star
10

nxtoolkit

Python
44
star
11

pyaci

Python Bindings for Cisco ACI REST API
Python
43
star
12

nxos

Repository for NX-OS programmability scripts
Python
42
star
13

nexus7000

Code samples for the Cisco Nexus 7000 platform
Python
42
star
14

ACI-Pre-Upgrade-Validation-Script

A script to run validations to detect potential issues that may cause an ACI fabric upgrade to fail
Python
42
star
15

ignite-DEPRECATED

Fire up your network with built-in poap on your Cisco Nexus switches and Ignite.
Python
34
star
16

cloudcenter-content

Python
31
star
17

Ansible-recipes-for-ACI

A collection of easy to understand yet powerful Ansible playbooks for ACI
Jinja
19
star
18

nxos-examples

Python
18
star
19

reattivio

A modern, reactive, open source ACI GUI
JavaScript
18
star
20

ucs-browser

PowerShell
15
star
21

acirb

ACIrb is a Ruby implementation of the Cisco APIC REST API.
Ruby
15
star
22

UCS

Unified Computing System (UCS) repo
Python
14
star
23

aci-tac-scripts

A collection of ACI TAC scripts curated for general use.
Shell
14
star
24

aci-monitoring-stack

Smarty
12
star
25

webarya

Python
10
star
26

c3-community

CloudCenter community
Python
10
star
27

Terraform-recipes-for-ACI

Collection of HCL code that helps you automate frequent tasks on your ACI fabric
HCL
9
star
28

aci-fault-doc

Script to query APIC for faults and summarize corrective actions based on fault documentation on APIC
Python
9
star
29

NXOS-TEAgent

Repository for holding scripts and playbooks for automating ThousandEyes with Cisco NX-OS
8
star
30

puppet-aci

Ruby
8
star
31

statechecker

ACI State Change Checker App
Python
8
star
32

ACI-eBook

Cisco ACI Best Practices e-book
7
star
33

wiper

Reset APIC's to a known configuration. Uses CIMC Serial Over LAN to 'eraseconfig setup' and provision APICs using CLI options or an INI file.
Python
7
star
34

aci-powershell

Collection of Powershell-based scripts for ACI
PowerShell
6
star
35

AryaLogger

Use the SimpleAciUiLogServer and arya to directly convert UI REST API calls to ACI Python SDK code.
Python
5
star
36

link-state-monitor

link-state monitor
5
star
37

open-nxos-getting-started

Example scripts for https://opennxos.cisco.com/
Python
5
star
38

sparci

A Cisco Spark bot that automatically sends ACI Fabric audit logs to a Spark room
Python
4
star
39

ACI-Kubernetes-Visualiser

ACI Kubernetes Visualiser
JavaScript
4
star
40

SimpleAciUiLogServer

A Simple HTTP server that acts as an APIC UI remote API Inspector.
Python
4
star
41

FabricResourceCalculation

Python
3
star
42

nexus-data-broker

Repo for hosting all projects related to Nexus Data Broker
Python
3
star
43

multisiteOrchestratorPython

An easy to use Python REST client class for MSO (Multisite Orchestrator)
Python
3
star
44

profiler

JavaScript
2
star
45

perf-automation

Scripts for automation of performance metrics collection while running benchmark tests on switches
Python
2
star
46

nexus-cloud-validation

Go
2
star
47

SaltStack-NX-OS

Repo for NX-OS SaltStack integration
2
star
48

iserver

iserver is command line tool using REST API with various Cisco products.
Python
2
star
49

autotestbed

Automated testbed and collector setup
C
2
star
50

ansible-playbooks

Central repo for Ansible playbooks and examples on ACI/MSO configuration using Ansible
2
star
51

sizer

JavaScript
1
star
52

itopo

Python Bindings for Managing Cisco ACI Fabric Topologies
Python
1
star
53

ACI-Hardware-Support-Matrix

Python
1
star
54

BRKACI-2945-CLUS

Demo AppCenter App for CiscoLive US BRKACI-2945
Python
1
star
55

terraform-configs

Central repo for Terraform Config files and examples on ACI/MSO configuration using Terraform
1
star