Skip to content

chapeter/nxapitools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nxapitools

Various Tools written for NX-API.

##nxsendcmd This is a simple script that will send config or show commands to multiple swithes at once.
Video Overview: http://quick.as/LJZdhLQL6

 usage: nxsendcmd.py [-h] [-c CONFIG] [-s SHOW] -l LAB

Input Command

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        Configuration. Seperate commands with a space on each
                        side of ;
  -s SHOW, --show SHOW  Show Commands. Seperate commands with a space on each
                        side of ;
  -l LAB, --lab LAB     Lab File

Example

 chapeter$ nxsendcmd.py -l ~/lab/vxlan.cfg -c "feature udld ; feature bash-shell"
kcdc-spine-1 : feature udld    : Success
kcdc-spine-1 :  feature bash-shell : Success
kcdc-leaf-2  : feature udld    : Success
kcdc-leaf-2  :  feature bash-shell : Success
kcdc-leaf-1  : feature udld    : Success
kcdc-leaf-1  :  feature bash-shell : Success

About

Various Tools written for NX-API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages