C'est bien de savoir le rsultat de sa commande.
darcs-hash:20041205200953-41617-c029a16c12bdd26ca5e8f821ffc7d74aa34d06b4.gz
This commit is contained in:
parent
060dae3848
commit
dac310f258
1 changed files with 2 additions and 2 deletions
|
@ -334,7 +334,7 @@ class hpswitch :
|
||||||
# Sauvegarde
|
# Sauvegarde
|
||||||
self.__ssh("copy running-config tftp %s %s unix" % (self.IP_tftp, self.switch + '.running') )
|
self.__ssh("copy running-config tftp %s %s unix" % (self.IP_tftp, self.switch + '.running') )
|
||||||
try :
|
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 :
|
except ConnectionClosed :
|
||||||
# C'est normal : le switch reboote
|
# C'est normal : le switch reboote
|
||||||
pass
|
pass
|
||||||
|
@ -343,7 +343,7 @@ class hpswitch :
|
||||||
""" Changement de firmware, le firmware est sur la machine
|
""" Changement de firmware, le firmware est sur la machine
|
||||||
ayant le serveur tftfp et a pour nom firmware26xx """
|
ayant le serveur tftfp et a pour nom firmware26xx """
|
||||||
if self.__debug : self.__logDest.write("HP DEBUG : upgrate()\n")
|
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) :
|
def reboot(self) :
|
||||||
""" Reboote le switch """
|
""" Reboote le switch """
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue