agreenbhm / ghittopcm Goto Github PK
View Code? Open in Web Editor NEWAn HP Procurve Configuration Manager, in Python
An HP Procurve Configuration Manager, in Python
line
scripts=['bin/tftpy_client.py','bin/tftpy_server.py'],
has to be
scripts=['tftpy/TftpClient.py','tftpy/TftpServer.py'],
can u check it pls
I have use following code for ssh connection to HP Procurve switch
import paramiko
def readAndConnect(user, password, tftpRoot, tftp, hostFile, continueBannerSwitchListExist="no"):
#open switch list file for reading
hostFile = open(hostFile, "r")
#read each host and perform actions, sequentially
for host in hostFile:
#remove newlines from host
host = host.strip(' \t\n\r')
print "\tConnecting to " + host + "..."
#connect to host via ssh
try:
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(host,username=user ,password=password)
chan = ssh.invoke_shell()
except:
print "\n\tCould not establish session with " + host + "\n"
break
#if continue banner on switch, wait for it, then send newline (enter)
if continueBannerSwitchListExist == "yes":
# any character send trough channel to bypass the banner
chan.send('a')
#create string with config download command
download = "copy running-config tftp %s %s.txt \n" % (tftp, host)
chan.send(download)
#wait to download
time.sleep(3)
#print status message
print "\n\tDownloading running-config from " + host + "..."
print "\tDone\n"
#disconnect from switch
ssh.close()
hostFile.close()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.