From dac310f2580ee345f24edec5fff3aba8c8a232f5 Mon Sep 17 00:00:00 2001 From: pauget Date: Sun, 5 Dec 2004 21:09:53 +0100 Subject: [PATCH] C'est bien de savoir le rsultat de sa commande. darcs-hash:20041205200953-41617-c029a16c12bdd26ca5e8f821ffc7d74aa34d06b4.gz --- gestion/hptools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gestion/hptools.py b/gestion/hptools.py index 5ceab8ff..5ea20ab7 100644 --- a/gestion/hptools.py +++ b/gestion/hptools.py @@ -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 """