##// END OF EJS Templates
Monitoring test
imanay -
r244:245
parent child
Show More
@@ -0,0 +1,13
1 import file
No newline at end of file
2 from client3 import *
No newline at end of file
3 import sys
No newline at end of file
4
No newline at end of file
5 absObj = ABSClient(ipDestino="10.10.10.99")
No newline at end of file
6 #absObj = ABSClient(ipDestino="10.10.20.27")
No newline at end of file
7 #absObj = ABSClient()
No newline at end of file
8 if len(sys.argv) == 2:
No newline at end of file
9 # ns = "4"
No newline at end of file
10 arg = sys.argv[1]
No newline at end of file
11 absObj.getControlModuleStatus_test(arg)
No newline at end of file
12 else:
No newline at end of file
13 print "Only one argument needed." No newline at end of file
@@ -85,6 +85,15
85 print "======:\n" No newline at end of file
85 print "======:\n"
86 print bits No newline at end of file
86 print bits
87 No newline at end of file
87
88 def getControlModuleStatus_test(self, data):
No newline at end of file
89
No newline at end of file
90 mnt = self.__ConnectionWithCentralControl(cmd = "MNTR", data = data)
No newline at end of file
91 #self.__writeFile("report.txt", data)
No newline at end of file
92
No newline at end of file
93 print "MNTR:\n"
No newline at end of file
94 print "======:\n"
No newline at end of file
95 print mnt
No newline at end of file
96 No newline at end of file
88 def getControlModulePhase(self, opt, u = "50", pw = "10"): No newline at end of file
97 def getControlModulePhase(self, opt, u = "50", pw = "10"):
89 No newline at end of file
98
90 if opt == '0': No newline at end of file
99 if opt == '0':
@@ -66,6 +66,9
66 No newline at end of file
66
67 if cmd == "NTST": No newline at end of file
67 if cmd == "NTST":
68 datarpta = self.__getConnectionStatus(cmd = cmd, rx_buffer = rx_buffer) No newline at end of file
68 datarpta = self.__getConnectionStatus(cmd = cmd, rx_buffer = rx_buffer)
69
No newline at end of file
70 if cmd == "MNTR":
No newline at end of file
71 datarpta = self.__getControlModuleStatus_new(cmd = cmd, rx_buffer = rx_buffer) No newline at end of file
69 No newline at end of file
72
70 self.commServerObj.sendData(cmd=cmd, data=datarpta, ipDestino = ipSource) No newline at end of file
73 self.commServerObj.sendData(cmd=cmd, data=datarpta, ipDestino = ipSource)
71 No newline at end of file
74
@@ -2,7 +2,7
2 from server3 import * No newline at end of file
2 from server3 import *
3 No newline at end of file
3
4 #absObj = ABSServer(ipDestino="100.100.12.117")
4 #absObj = ABSServer(ipDestino="100.100.12.117")
No newline at end of file
5 absObj = ABSServer(ipDestino="10.10.10.99") No newline at end of file
5 absObj = ABSServer(ipDestino="10.10.10.97") No newline at end of file
6 No newline at end of file
6
7 while 1: No newline at end of file
7 while 1:
8 absObj.waitRequest() No newline at end of file
8 absObj.waitRequest()
General Comments 0
You need to be logged in to leave comments. Login now