• PoolMember 用法


    PoolMember:
    
    PoolMember      =>      {
                                                            get_object_status       => 'pool_names',
                                                            get_statistics          => {pool_names => 1, members => 1},
                                                            get_all_statistics      => 'pool_names',
                                                            },
     
     
    get_all_statistics
    get_connection_limit
    get_dynamic_ratio
    get_monitor_association
    get_monitor_instance
    get_monitor_status
    get_object_status
    get_priority
    get_ratio
    get_session_enabled_state
    get_session_status
    get_statistics
    get_version 
    
    
    
    import pycontrol.pycontrol as pc
    import urllib3
    import ssl
    urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
    ssl._create_default_https_context = ssl._create_unverified_context
    import requests
    requests.packages.urllib3.disable_warnings()
    print 'ddddddddddddddd'
    c = pc.BIGIP(
        hostname='10.4.170.160',
        username='zjtlcb',
        password='12345678',
        fromurl=True,
        wsdls=['LocalLB.PoolMember'])
    
    p1 = c.LocalLB.PoolMember
    # print p1.get_member_object_status(pool_names=['test_12916_pool','10.4.16.100'])
    print dir(p1)
    print p1.get_object_status(pool_names=['test_12916_pool'])
    
    
    get_statistics:
    sub get_pool_member_statistics {
            my ($self, $pool)= @_;
    
            return $self->_request(module => 'LocalLB', interface => 'PoolMember', method => 'get_statistics', data => {
                    pool_names      => [$pool],
                    members         => $self->__get_pool_members($pool,'LocalLB') });
    }
    
    import pycontrol.pycontrol as pc
    import urllib3
    import ssl
    urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
    ssl._create_default_https_context = ssl._create_unverified_context
    import requests
    requests.packages.urllib3.disable_warnings()
    print 'ddddddddddddddd'
    c = pc.BIGIP(
        hostname='10.4.170.160',
        username='zjtlcb',
        password='12345678',
        fromurl=True,
        wsdls=['LocalLB.PoolMember'])
    
    p1 = c.LocalLB.PoolMember
    # print p1.get_member_object_status(pool_names=['test_12916_pool','10.4.16.100'])
    print dir(p1)
    for x in (dir(p1)):
        print x
    # print p1.get_statistics(pool_names=['test_12916_pool'],members=['10.4.16.101'])
    
    print p1.get_statistics(pool_names=['test_12916_pool'],members=['10.4.16.100:12916'])
    
    get_all_statistics:
    
    import pycontrol.pycontrol as pc
    import urllib3
    import ssl
    urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
    ssl._create_default_https_context = ssl._create_unverified_context
    import requests
    requests.packages.urllib3.disable_warnings()
    print 'ffffffffffffff'
    c = pc.BIGIP(
        hostname='10.4.170.160',
        username='zjtlcb',
        password='12345678',
        fromurl=True,
        wsdls=['LocalLB.PoolMember'])
    
    p1 = c.LocalLB.PoolMember
    print p1.get_all_statistics(pool_names=['test_12916_pool'])
  • 相关阅读:
    关于前端框架讨论的链接
    和BEM的战斗:10个常见问题及如何避免
    BEM —— 源自Yandex的CSS 命名方法论
    JavaScript 语句后应该加分号么?
    彻底搞懂word-break、word-wrap、white-space
    ios UIImageWriteToSavedPhotosAlbum报错 NSPhotoLibraryAddUsageDescription
    Emmet使用手册
    vue-cli入门之项目结构分析
    ios移动端原生滚动条滚动不灵敏问题
    ios点击事件失效
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348462.html
Copyright © 2020-2023  润新知