Ejemplo n.º 1
0
    elif opts.dump:
        args = ([{'tag':'partition', 'name':'*', 'size':'*', 'state':'*', 'functional':'*',
                  'scheduled':'*', 'queue':'*', 'deps':'*'}], )
        parts = component_call(system.get_partitions, args)
    elif opts.boot_stop:
        if sys_type == 'bgp':
            print "Boot control not available for BG/P systems"
            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)
Ejemplo n.º 2
0
            'queue': '*',
            'deps': '*'
        }], )
        parts = component_call(system.get_partitions, args)
    elif opts.boot_stop:
        if sys_type == 'bgp':
            print "Boot control not available for BG/P systems"
            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)