- #cmd = "cmdhttps/locfg.pl -s %s -f %s -u %s -p '%s'" % (
- # self.host, "iloxml/Reset_Server.xml",
- # self.username, self.password)
- #print cmd
- #p_ilo = Popen(cmd, stdin=PIPE, stdout=PIPE, shell=True)
- #cmd2 = "grep 'MESSAGE' | grep -v 'No error'"
- #p_grep = Popen(cmd2, shell=True, stdin=p_ilo.stdout, stdout=PIPE, stderr=PIPE)
- #sout, serr = p_grep.communicate()
- #try: p_ilo.wait()
- #except:
- # print "p_ilo wait failed."
- # pass
- #try: p_grep.wait()
- #except:
- # print "p_grep wait failed."
- # pass
-