Skip to content

sarulon/device_ssh_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

device_ssh_config

configure devices with paramiko

required paramiko

arguments

-h, --help show this help message and exit

--net NET destination subnet support multiple subnets: 1.1.1.0/24 or '1.1.1.0/24,1.1.2.0/24', for single ip use 1.1.1.1 or 1.1.1.1/32

--user USER Username

--cmd CMD enter command separated by commas: conf t,int gi0/0,ip address 2.2.2.2 255.255.255.255

--file path to file read from csv file support subnets: 1.1.1.1 or 1.1.1.0/24, "show run"

usage: python switch_config.py --net 1.1.1.0/24 --user alex --cmd "pwd,touch ssh_test.log"
usage: python switch_config.py --file /tmp/test.csv

About

config any ssh supported devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages