Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(17)  |  Call(17)  |  Derive(0)  |  Import(0)

src/s/y/sysops-api-HEAD/scripts/extract_sysops_cache.py   sysops-api(Download)
  if (options.search or options.info or options.list_files) and not options.compare and not options.compare_all:
    try:
      redisResults = CacheExtractor.CacheExtractor(verbose = options.verbose,
						scope = options.scope,
						site = options.site,
    # Since we are directly modifying the object, we re-declare it here under this option so the intention is clear.
    try:
      redisResults = CacheExtractor.CacheExtractor(verbose = options.verbose,
						scope = options.scope,
						site = options.site,
 
    try:
      compareResults = CacheExtractor.CacheExtractor(verbose = options.verbose,
						scope = options.scope,
						site = options.site,
  if options.search and options.compare_all:
    try:
      redisResults = CacheExtractor.CacheExtractor(verbose = options.verbose,
						scope = options.scope,
						site = options.site,
      print attention_whore.center(150)
      try:
        redisResults = CacheExtractor.CacheExtractor(verbose = options.verbose,
						scope = options.scope,
						site = options.site,

src/s/y/sysops-api-HEAD/scripts/extract_sysctl_live_vs_persistant_entries.py   sysops-api(Download)
    myscope = 'global'
 
  persistant_results = CacheExtractor.CacheExtractor(verbose = options.verbose,
						scope = myscope,
						contents = True,
    while True:
      try:
        live_results = CacheExtractor.CacheExtractor(verbose = options.verbose,
                                                scope = myscope,
                                                contents = True,

src/s/y/sysops-api-HEAD/scripts/extract_user_sudo_privileges.py   sysops-api(Download)
 
 
  cache_results = CacheExtractor.CacheExtractor(verbose = options.verbose,
						scope = 'global',
						contents = True,

src/s/y/sysops-api-HEAD/scripts/extract_user_account_access.py   sysops-api(Download)
  (options,args) = parser.parse_args()
 
  cache_results = CacheExtractor.CacheExtractor(verbose = options.verbose,
						scope = 'global',
						contents = True,

src/s/y/sysops-api-HEAD/scripts/extract_sysops_api_to_disk.py   sysops-api(Download)
 
      # Find the unique files for the datacenter.  Spawn a CacheExtractor object for every key.  Dumping the entire datacenter in a single object requires too much RAM.
      uniqueFiles = CacheExtractor.CacheExtractor(scope = 'site', site = datacenter.lower(), list_files = True)
 
      number_of_keys = len(uniqueFiles._gold.keys())
        # Spawn a CacheExtractor object for every unique key, in every datacenter.
        try:
          dataDump =  CacheExtractor.CacheExtractor(scope = 'site', site = datacenter.lower(), search_string = filename, contents = True)
        except Exception, e:
          print "Lost filename " + filename + " The object has dropped out of the cache"

src/s/y/sysops-api-HEAD/scripts/extract_network_health.py   sysops-api(Download)
def validate_json_data(host_stats, site, local_disk, workdir):
  site = site[0]
  if not local_disk:
    cache_results = CacheExtractor.CacheExtractor(contents = True, scope = 'site', search_string = site + '-host_stats.json')
    try:
def calculate_means_and_medians(datacenter, host_stats):
  start_time = time.time()
  cache_results = CacheExtractor.CacheExtractor(contents = True,
						site = datacenter,
						search_string = 'global_sysops_api_interaction_times.json')
def find_active_interface_in_bond(datacenter, host_stats):  
  start_time = time.time()
  cache_results = CacheExtractor.CacheExtractor(contents = True,
						site = datacenter,
						search_string = "/proc/net/bonding/bond0")
def find_lldpd_data(datacenter, host_stats):
  start_time = time.time()
  cache_results = CacheExtractor.CacheExtractor(contents = True,
						site = datacenter,
						search_string = '/etc/hardware_identification.json@lldp-xml')
def pull_netstat_summary(datacenter, host_stats):
  start_time = time.time()
  cache_results = CacheExtractor.CacheExtractor(contents = True,
						site = datacenter,
						search_string = '/etc/hardware_identification.json@netstat-s')