Пример #1
0
            sys.exit(0)
        system.halt_booting(whoami)
        print "Halting booting: halting scheduling is advised"
        sys.exit(0)
    elif opts.boot_start:
        if sys_type == 'bgp':
            print "Boot control not available for BG/P systems"
            sys.exit(0)
        system.resume_booting(whoami)
        print "Enabling booting"
        sys.exit(0)
    elif opts.boot_status:
        if sys_type == 'bgp':
            print "Boot control not available for BG/P systems"
            sys.exit(0)
        boot_status = system.booting_status()
        if not boot_status:
            print "Block Booting: ENABLED"
        else:
            print "Block Booting: SUSPENDED."
        sys.exit(0)

    if opts.pg_list:
        print_pg_info(None)
        sys.exit(0)

    if opts.blockinfo:
        if sys_type == 'bgq':
            print_block(system.get_blocks([{'name':part,'node_card_list':'*',
                'subblock_parent':'*','midplane_list':'*','node_list':'*', 'scheduled':'*', 'funcitonal':'*',
                'queue':'*','parents':'*','children':'*','reserved_until':'*',
Пример #2
0
            sys.exit(0)
        system.halt_booting(whoami)
        print "Halting booting: halting scheduling is advised"
        sys.exit(0)
    elif opts.boot_start:
        if sys_type == 'bgp':
            print "Boot control not available for BG/P systems"
            sys.exit(0)
        system.resume_booting(whoami)
        print "Enabling booting"
        sys.exit(0)
    elif opts.boot_status:
        if sys_type == 'bgp':
            print "Boot control not available for BG/P systems"
            sys.exit(0)
        boot_status = system.booting_status()
        if not boot_status:
            print "Block Booting: ENABLED"
        else:
            print "Block Booting: SUSPENDED."
        sys.exit(0)

    if opts.pg_list:
        print_pg_info(None)
        sys.exit(0)

    if opts.blockinfo:
        if sys_type == 'bgq':
            print_block(
                system.get_blocks([{
                    'name': part,