This shows you the differences between two versions of the page.
playground:pg2 [2017/01/18 14:41] frank created |
playground:pg2 [2017/01/18 15:32] (current) frank |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== play ground 2 ====== | ====== play ground 2 ====== | ||
+ | <code python> | ||
+ | import sys | ||
+ | sys.path.append('/qa/conductor/tests/ovm30/manager/src') | ||
+ | from discoverserver import * | ||
+ | ds = DiscoverServer('t', '/tmp/l') | ||
+ | ds.listServers() | ||
+ | ip = get_server_by_hostname("ca-svrfarm11.us.oracle.com")["private_ip"] | ||
+ | ds.discoverServer(ip) | ||
+ | s = ds.getServerByIP(ip) | ||
+ | #for cpu in s.getProcessors(): | ||
+ | # print "level one: %s" % cpu.getLevelOneCacheSize() | ||
+ | # print "level two: %s" % cpu.getLevelTwoCacheSize() | ||
+ | # print "level tree: %s" % cpu.getLevelThreeCacheSize() | ||
+ | |||
+ | ds.deleteServer(s) | ||
+ | ds.listServers() | ||
+ | |||
+ | </code> |