C'est bien de savoir le rsultat de sa commande.

darcs-hash:20041205200953-41617-c029a16c12bdd26ca5e8f821ffc7d74aa34d06b4.gz
This commit is contained in:
pauget 2004-12-05 21:09:53 +01:00
parent 060dae3848
commit dac310f258

View file

@ -334,7 +334,7 @@ class hpswitch :
# Sauvegarde
self.__ssh("copy running-config tftp %s %s unix" % (self.IP_tftp, self.switch + '.running') )
try :
self.__ssh("copy tftp startup-config %s %s unix" % (self.IP_tftp, self.switch+'.conf') )
print self.__ssh("copy tftp startup-config %s %s unix" % (self.IP_tftp, self.switch+'.conf') )
except ConnectionClosed :
# C'est normal : le switch reboote
pass
@ -343,7 +343,7 @@ class hpswitch :
""" Changement de firmware, le firmware est sur la machine
ayant le serveur tftfp et a pour nom firmware26xx """
if self.__debug : self.__logDest.write("HP DEBUG : upgrate()\n")
self.__ssh("copy tftp flash %s %s" % (self.IP_tftp, self.firmware_file) , 120) # Long timout
print self.__ssh("copy tftp flash %s %s" % (self.IP_tftp, self.firmware_file) , 120) # Long timout
def reboot(self) :
""" Reboote le switch """