sss.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:sss 作者: deep011 项目源码 文件源码
def usage():
    print 'python sss.py [options]'
    print ''
    print 'options:'
    print '-h,--help: show this help message'
    print '-v,--version: show the version'
    print '-H: target host'
    print '-P: target port to get the service status'
    print '-u: target service user'
    print '-p: target user password'
    print '-T: target service type, default is '+support_types[0]
    print '-s: sections to show, use comma to split'
    print '-a: addition sections to show, use comma to split'
    print '-d: removed sections for the showing, use comma to split'
    print '-I,--instructions: show the support sections\' instructions'
    print '-o: output the status to this file'
    print '-D: separate output files by day, suffix of the file name is \'_yyyy-mm-dd\''
    print '-e: output error message to this file'
    print '-i: time interval to show the status, unit is second'
    print '-n: the count of the status to collect, default is forever'
    print '-S: speed is calculated by the remote monitor system, like the open-falcon'
    print '--socket: the socket file to use for connection'
    print '--falcon: upload the status to the open-falcon, the address is like \''+open_falcon+'\''
    print '--net-face: set the net device face name for os_net_* sections, default is \'lo\''
    print '--disk-name: set the disk device name for os_disk sections, default is \'vda\''
    print '--proc-pid: set the process pid number for proc_* sections, default is 0'
    print '--service-port: set the server service port, default is same as the port setted by \'-P\' option'
    print '\r\n'
    support_services=""
    for service in support_types:
        support_services+=service+" "
    print 'Support services: '+support_services
    print ''
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号