示例#1
0
def main():
    """
    Install Exascaler monitoring
    """
    # pylint: disable=unused-variable,too-many-branches
    argc = len(sys.argv)
    if argc == 2:
        if sys.argv[1] == "-h" or sys.argv[1] == "--help":
            usage()
            sys.exit(0)
        else:
            utils.eprint("Unkown options \"%s\"" % sys.argv[1])
            usage()
            sys.exit(-1)
    elif argc > 2:
        utils.eprint("too many options")
        usage()
        sys.exit(-1)

    local_host = ssh_host.SSHHost("localhost", local=True)
    missing_dependencies = dependency_find(local_host)
    if len(missing_dependencies):
        ret = dependency_install(local_host)
        if ret:
            sys.exit(-1)
    from pyesmon import esmon_install_nodeps
    esmon_install_nodeps.main()
示例#2
0
def usage():
    """
    Print usage string
    """
    utils.eprint("Usage: %s [-h|--help]" % sys.argv[0])
    utils.eprint("To install EXASCaler Performance Monitoring System, "
                 "please run command \"%s\"." % (sys.argv[0]))
    utils.eprint("To change the configuration, please edit "
                 "file \"%s\"." % (esmon_common.ESMON_INSTALL_CONFIG))
def usage():
    """
    Print usage string
    """
    utils.eprint("Usage: %s influx_server influx_databse query_string" %
                 sys.argv[0])
示例#4
0
def usage():
    """
    Print usage string
    """
    utils.eprint("Usage: %s <config_file>" % sys.argv[0])