def get_server_addresses(server_name): """Get any and all addresses of the server_name provided""" return _responsify(configparser.get_server_addresses(server_name))
#for average in log.getAverageResponseTime(logs, aggregate_by='backend_server_combo', sort_by='tt', sort_order='descending'): # print average #print len(logs) #backends = admin.get_backends() #for backend in backends: # print backend, len(backends[backend]) # for stat in backends[backend]: # print stat.backend, stat.server_name #print admin.get_frontends() #admin.reset_weights() #admin.set_weights(2, backend='all-proxies-non-sticky') #pp.pprint(configparser.get_config(), indent=4) #pp.pprint(configparser.get_frontend_ports(), indent=4) pp.pprint(configparser.get_frontend_port('sticky'), indent=4) pp.pprint(configparser.get_backend_server_addresses('squid-caches'), indent=4) pp.pprint(configparser.get_server_addresses('sslprivateproxy_4'), indent=4) pp.pprint(configparser.get_listen_ports(), indent=4) pp.pprint(configparser.get_all_listening_ports(), indent=4)