Пример #1
0
 def collectXmsPerf(self):
         output = xtremXmsLib.getXms(self.ip,self.user,self.pwd)
         self.xmsPerf['read-latency'] = str(output['content']['rd-latency'])
         self.xmsPerf['write-latency'] = str(output['content']['wr-latency'])
         self.xmsPerf['read-bandwidth'] = int(output['content']['rd-bw'])/1000
         self.xmsPerf['write-bandwidth'] = int(output['content']['wr-bw'])/1000
         self.xmsPerf['bandwidth'] = int(output['content']['bw'])/1000
         self.xmsPerf['read-iops'] = str(output['content']['rd-iops'])
         self.xmsPerf['write-iops'] = str(output['content']['wr-iops'])
         self.xmsPerf['iops'] = str(output['content']['iops'])
         self.recordStats(self.xmsPerf.keys())
 def collectXmsPerf(self):
         output = xtremXmsLib.getXms(self.ip,self.user,self.pwd)
         self.xmsPerf['read-latency'] = str(output['content']['rd-latency'])
         self.xmsPerf['write-latency'] = str(output['content']['wr-latency'])
         self.xmsPerf['read-bandwidth'] = int(output['content']['rd-bw'])/1000
         self.xmsPerf['write-bandwidth'] = int(output['content']['wr-bw'])/1000
         self.xmsPerf['bandwidth'] = int(output['content']['bw'])/1000
         self.xmsPerf['read-iops'] = str(output['content']['rd-iops'])
         self.xmsPerf['write-iops'] = str(output['content']['wr-iops'])
         self.xmsPerf['iops'] = str(output['content']['iops'])
         self.xmsPerf['dedup-ratio'] = xtremXmsLib.getCurrentDedupRatio(self.ip,self.user,self.pwd)
         self.xmsPerf['compression-factor'] = xtremXmsLib.getCurrentCompressionFactor(self.ip,self.user,self.pwd)
         self.recordStats(self.xmsPerf.keys())