02-Virtual Technologies Command Reference

HomeSupportResource CenterReference GuidesCommand ReferencesH3C S12500X-AF & S12500-X & S9800 Switch Series Command References(R27xx)-6W10502-Virtual Technologies Command Reference
02-MDC commands
Title Size Download
02-MDC commands 95.45 KB

MDC commands

MDC requires a license to run on the device. If the license expires or is uninstalled, you cannot create, start, or use non-default MDCs. For more information about licenses, see Fundamentals Configuration Guide.

MDC commands for the default MDC

This section describes the MDC commands that you can use after logging in to the default MDC (the physical device).

The term "MDC view" refers to the view of a non-default MDC. After entering the view of a non-default MDC, you can start or stop the MDC, or assign resources to the MDC.

Unless otherwise stated, the term "MDC" in this section refers to a non-default MDC.

allocate interface

Use allocate interface to assign physical interfaces to an MDC.

Use undo allocate interface to reclaim physical interfaces assigned to an MDC.

Syntax

allocate interface interface-list

undo allocate interface interface-list

Default

All physical interfaces on the device belong to the default MDC. A non-default MDC cannot use any physical interfaces.

Views

MDC view

Predefined user roles

network-admin

mdc-admin

Parameters

interface-list: Specifies a space-separated list of up to 24 interfaces. Each item specifies an interface by its type and number or a range of interfaces on the same card in the form of start-interface-type start-interface-name to end-interface-type end-interface-name. The values of the start-interface-type and end-interface-type arguments must be the same.

Usage guidelines

You can use this command multiple times to assign multiple physical interfaces to a non-default MDC.

For more information about interface assignment guidelines, see MDC in Virtual Technologies Configuration Guide.

Examples

# Assign Ten-GigabitEthernet 1/3/0/3 and Ten-GigabitEthernet 1/3/0/4 to MDC sub1.

<Sysname> system-view

[Sysname] mdc sub1

[Sysname-mdc-2-sub1] Configuration of the interfaces will be lost. Continue? [Y/N]:y

Group error: all interfaces of one group must be allocated to the same mdc.    

  Ten-GigabitEthernet1/3/0/3         Ten-GigabitEthernet1/3/0/4                

                                                                               

Port list of group 1:                                                          

  HundredGigE1/3/0/1                 HundredGigE1/3/0/2                        

  Ten-GigabitEthernet1/3/0/3         Ten-GigabitEthernet1/3/0/4                

  Ten-GigabitEthernet1/3/0/5         Ten-GigabitEthernet1/3/0/6                

  Ten-GigabitEthernet1/3/0/7         Ten-GigabitEthernet1/3/0/8                

  Ten-GigabitEthernet1/3/0/9         Ten-GigabitEthernet1/3/0/10               

  Ten-GigabitEthernet1/3/0/11        Ten-GigabitEthernet1/3/0/12               

  Ten-GigabitEthernet1/3/0/13        Ten-GigabitEthernet1/3/0/14               

  Ten-GigabitEthernet1/3/0/15        Ten-GigabitEthernet1/3/0/16               

  Ten-GigabitEthernet1/3/0/17        Ten-GigabitEthernet1/3/0/18               

  Ten-GigabitEthernet1/3/0/19        Ten-GigabitEthernet1/3/0/20               

  Ten-GigabitEthernet1/3/0/21        Ten-GigabitEthernet1/3/0/22               

  Ten-GigabitEthernet1/3/0/23        Ten-GigabitEthernet1/3/0/24                

  Ten-GigabitEthernet1/3/0/25        Ten-GigabitEthernet1/3/0/26               

  Ten-GigabitEthernet1/3/0/27        Ten-GigabitEthernet1/3/0/28               

  Ten-GigabitEthernet1/3/0/29        Ten-GigabitEthernet1/3/0/30                

  Ten-GigabitEthernet1/3/0/31        Ten-GigabitEthernet1/3/0/32               

  Ten-GigabitEthernet1/3/0/33        Ten-GigabitEthernet1/3/0/34               

  Ten-GigabitEthernet1/3/0/35        Ten-GigabitEthernet1/3/0/36               

  Ten-GigabitEthernet1/3/0/37        Ten-GigabitEthernet1/3/0/38               

  Ten-GigabitEthernet1/3/0/39        Ten-GigabitEthernet1/3/0/40               

  Ten-GigabitEthernet1/3/0/41        Ten-GigabitEthernet1/3/0/42               

  Ten-GigabitEthernet1/3/0/43        Ten-GigabitEthernet1/3/0/44               

  Ten-GigabitEthernet1/3/0/45        Ten-GigabitEthernet1/3/0/46               

  Ten-GigabitEthernet1/3/0/47        Ten-GigabitEthernet1/3/0/48               

  Ten-GigabitEthernet1/3/0/49        Ten-GigabitEthernet1/3/0/50

The command output shows that HundredGigE 1/3/0/1, HundredGigE 1/3/0/2, and Ten-GigabitEthernet 1/3/0/3 through Ten-GigabitEthernet 1/3/0/50 belong to the same group. They must be assigned to the same MDC at the same time.

# Assign HundredGigE 1/3/0/1, HundredGigE 1/3/0/2, and Ten-GigabitEthernet 1/3/0/3 through Ten-GigabitEthernet 1/3/0/50 to MDC sub1.

[Sysname-mdc-2-sub1] allocate interface hundredgige 1/3/0/1 hundredgige 1/3/0/2 ten-gigabitethernet 1/3/0/3 to ten-gigabitethernet 1/3/0/50

Configuration of the interfaces will be lost. Continue? [Y/N]:y

Execute the location slot command in this view to make the configuration take effect.

display mdc

Use display mdc to display MDCs and their status information.

Syntax

display mdc [ name mdc-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

name mdc-name: Specifies an MDC by its name, a case-sensitive string of 1 to 15 characters. If you do not specify this option, the command displays all MDCs.

Examples

# Display all MDCs.

<Sysname> display mdc

ID         Name            Status

1          Admin           active

2          sub1            inactive

Table 1 Command output

Field

Description

Status

Status of the MDC:

·     inactive—The MDC is stopped or not started yet.

·     starting—The device is executing the mdc start command to start the MDC.

·     active—The MDC is operating correctly.

·     updating—The device is executing the location command to assign an LPU to the MDC.

·     stopping—The device is executing the undo mdc start command to stop the MDC.

 

Related commands

mdc

display mdc interface

Use display mdc interface to display the interfaces of MDCs.

Syntax

display mdc [ name mdc-name ] interface

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

name mdc-name: Specifies an MDC by its name, a case-sensitive string of 1 to 15 characters. If you do not specify this option, the command displays the interfaces of all MDCs.

Examples

# Display the interfaces of all MDCs.

<Sysname> display mdc interface

 MDC Admin's interface(s):                                                     

  M-GigabitEthernet1/0/0/0             M-GigabitEthernet1/0/0/1                

  M-GigabitEthernet1/0/0/2             M-GigabitEthernet1/0/0/3                

                                                                               

 MDC sub1's interface(s):                                                      

  HundredGigE1/3/0/1                   HundredGigE1/3/0/2                      

  Ten-GigabitEthernet1/3/0/3           Ten-GigabitEthernet1/3/0/4              

  Ten-GigabitEthernet1/3/0/5           Ten-GigabitEthernet1/3/0/6              

  Ten-GigabitEthernet1/3/0/7           Ten-GigabitEthernet1/3/0/8              

  Ten-GigabitEthernet1/3/0/9           Ten-GigabitEthernet1/3/0/10             

  Ten-GigabitEthernet1/3/0/11          Ten-GigabitEthernet1/3/0/12             

  Ten-GigabitEthernet1/3/0/13          Ten-GigabitEthernet1/3/0/14             

  Ten-GigabitEthernet1/3/0/15          Ten-GigabitEthernet1/3/0/16             

  Ten-GigabitEthernet1/3/0/17          Ten-GigabitEthernet1/3/0/18             

  Ten-GigabitEthernet1/3/0/19          Ten-GigabitEthernet1/3/0/20              

  Ten-GigabitEthernet1/3/0/21          Ten-GigabitEthernet1/3/0/22             

  Ten-GigabitEthernet1/3/0/23          Ten-GigabitEthernet1/3/0/24             

  Ten-GigabitEthernet1/3/0/25          Ten-GigabitEthernet1/3/0/26             

  Ten-GigabitEthernet1/3/0/27          Ten-GigabitEthernet1/3/0/28             

  Ten-GigabitEthernet1/3/0/29          Ten-GigabitEthernet1/3/0/30             

  Ten-GigabitEthernet1/3/0/31          Ten-GigabitEthernet1/3/0/32             

  Ten-GigabitEthernet1/3/0/33          Ten-GigabitEthernet1/3/0/34             

  Ten-GigabitEthernet1/3/0/35          Ten-GigabitEthernet1/3/0/36             

  Ten-GigabitEthernet1/3/0/37          Ten-GigabitEthernet1/3/0/38             

  Ten-GigabitEthernet1/3/0/39          Ten-GigabitEthernet1/3/0/40             

  Ten-GigabitEthernet1/3/0/41          Ten-GigabitEthernet1/3/0/42             

  Ten-GigabitEthernet1/3/0/43          Ten-GigabitEthernet1/3/0/44             

  Ten-GigabitEthernet1/3/0/45          Ten-GigabitEthernet1/3/0/46             

  Ten-GigabitEthernet1/3/0/47          Ten-GigabitEthernet1/3/0/48             

  Ten-GigabitEthernet1/3/0/49          Ten-GigabitEthernet1/3/0/50  

Related commands

allocate interface

display mdc resource

Use display mdc resource to display the CPU and memory usage of MDCs.

Syntax

In standalone mode:

display mdc [ name mdc-name ] resource [ cpu | memory ] [ slot slot-number ]

In IRF mode:

display mdc [ name mdc-name ] resource [ cpu | memory ] [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

name mdc-name: Specifies an MDC by its name, a case-sensitive string of 1 to 15 characters. If you do not specify this option, the command displays the usage of all MDCs.

cpu: Displays the CPU usage.

memory: Displays the memory space usage.

slot slot-number: Specifies a card. If you do not specify this option, the command displays the usage on all cards. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. If you do not specify this option, the command displays the usage on all cards in the IRF fabric. (In IRF mode.)

Examples

# Display the CPU and memory space usage of all MDCs.

<Sysname> display mdc resource

Memory usage:                                                                  

Chassis 1 slot 0 CPU 0:                                                        

Used 602.3MB, Free 7386.3MB, Total 7988.6MB                                    

  ID    Name             Quota(MB)    Used(MB)     Available(MB)               

  1     Admin            7988.6       602.3        7386.3                      

  2     sub1             7988.6       0.0          7386.3                      

Chassis 1 slot 3 CPU 0:                                                         

Used 190.9MB, Free 7797.9MB, Total 7988.8MB                                    

  ID    Name             Quota(MB)    Used(MB)     Available(MB)               

  1     Admin            7988.8       190.9        7797.9                      

CPU usage:                                                                     

Chassis 1 slot 0 CPU 0:                                                        

  ID    Name             Weight       Usage(%)                                  

  1     Admin            10           0                                        

  2     sub1             10           0                                        

Chassis 1 slot 3 CPU 0:                                                        

  ID    Name             Weight       Usage(%)                                 

  1     Admin            10           0

limit-resource cpu

Use limit-resource cpu to specify a CPU weight for an MDC.

Use undo limit-resource cpu to restore the default.

Syntax

limit-resource cpu weight weight-value

undo limit-resource cpu

Default

The default MDC has a CPU weight of 10 on each MPU and each LPU. Each non-default MDC has a CPU weight of 10 on each MPU and each LPU that are assigned to it.

Views

MDC view

Predefined user roles

network-admin

mdc-admin

Parameters

weight weight-value: Specifies a CPU weight value in the range of 1 to 10.

Usage guidelines

The number of CPU resources available for an MDC depends on the CPU weight settings for all MDCs that share the same CPU. For example, if three MDCs share the same CPU, setting their weights to 10, 10, and 5 is equivalent to setting their weights to 2, 2, and 1.

·     The two MDCs with the same weight can use the CPU for approximately the same period of time.

·     The third MDC can use the CPU for about half of the time for each of the other two MDCs.

The CPU weight for the default MDC is fixed at 10. You cannot change it.

The CPU weight specified for an MDC takes effect on all MPUs and all LPUs that are assigned to the MDC. To assign an LPU to an MDC, use the location command.

Examples

# Set the CPU weight to 2 for MDC sub1.

<Sysname> system-view

[Sysname] mdc sub1

[Sysname-mdc-2-sub1] limit-resource cpu weight 2

limit-resource memory

Use limit-resource memory to specify a memory space percentage for an MDC.

Use undo limit-resource memory to restore the default.

Syntax

In standalone mode:

limit-resource memory slot slot-number ratio limit-ratio

undo limit-resource memory slot slot-number

In IRF mode:

limit-resource memory chassis chassis-number slot slot-number ratio limit-ratio

undo limit-resource memory chassis chassis-number slot slot-number

Default

All MDCs share the memory space in the system. An MDC can use all free memory space in the system.

Views

MDC view

Predefined user roles

network-admin

Parameters

slot slot-number: Specifies a card. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. (In IRF mode.)

ratio limit-ratio: Specifies the ratio of the memory space that an MDC can use on the specified card to the total memory space of the card. The value range is 1 to 100.

Usage guidelines

This command sets the maximum amount of memory space that an MDC can use. Make sure this amount is sufficient for the MDC to operate correctly.

Examples

# (In standalone mode.) Allow MDC sub1 to use up to 30 percent of the memory space on a slot.

<Sysname> system-view

[Sysname] mdc sub1

[Sysname-mdc-2-sub1] limit-resource memory slot 1 ratio 30

location

Use location to assign an LPU to an MDC.

Use undo location to reclaim an LPU from an MDC.

Syntax

In standalone mode:

location slot slot-number

undo location slot slot-number

In IRF mode:

location chassis chassis-number slot slot-number

undo location chassis chassis-number slot slot-number

Default

All LPUs of the device belong to the default MDC. A non-default MDC cannot use any LPUs.

Views

MDC view

Predefined user roles

network-admin

mdc-admin

Parameters

slot slot-number: Specifies an LPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies an LPU on an IRF member device. (In IRF mode.)

Usage guidelines

When you assign physical interfaces to MDCs, follow these guidelines:

·     To assign physical interfaces to an MDC, you must assign the MDC the LPUs to which the physical interfaces belong.

·     You can enter different MDC views to assign multiple MDCs the same LPU.

·     Performing the following tasks for an LPU removes all authorization settings for the LPU:

¡     Remove the LPU.

¡     Save the running configuration.

¡     Reboot the device.

Examples

# (In standalone mode.) Assign the LPU in a slot to MDC sub1.

<Sysname> system-view

[Sysname] mdc sub1

[Sysname-mdc-2-sub1] location slot 2

mdc

Use mdc to create an MDC and enter its view, or enter the view of an existing MDC.

Use undo mdc to delete an MDC.

Syntax

mdc mdc-name [ id mdc-id ]

undo mdc mdc-name

Default

A default MDC exists. The MDC name is Admin and the MDC ID is 1.

Views

System view

Predefined user roles

network-admin

Parameters

mdc-name: Specifies the MDC name, a case-sensitive string of 1 to 15 characters.

id mdc-id: Specifies the MDC ID. The value range is 1 to 16 for the S12500X-AF and S12500-X switch series, and 1 to 9 for the S9800 switch series.If you do not specify this option, the system assigns the lowest ID number among the available IDs to the MDC.

Usage guidelines

Delete an MDC with caution. Deleting an MDC deletes all settings and hard disk files of the MDC. The deleted settings and files cannot be restored.

The default MDC is system defined. You cannot delete it.

You can create multiple MDCs.

To enter the view of an existing MDC, you can specify the MDC name, or specify both the MDC name and the MDC ID. If you specify both the MDC name and the MDC ID, make sure the two arguments identify the same MDC.

Examples

# Create an MDC named sub1.

<Sysname> system-view

[Sysname] mdc sub1

It will take some time to create MDC...

MDC created successfully.

Related commands

display mdc

mdc start

Use mdc start to start an MDC.

Use undo mdc start to stop an MDC.

Syntax

mdc start

undo mdc start

Views

MDC view

Predefined user roles

network-admin

Usage guidelines

Stop an MDC with caution. Stopping an MDC interrupts all services on the MDC and logs out all login users on the MDC.

To avoid configuration loss, save the running configuration of an MDC before stopping the MDC.

Creating an MDC is the same as constructing a physical device. After creating an MDC, use this command to start the MDC to complete MDC initialization. After an MDC is started, administrators of the MDC can log in to the MDC for MDC configuration and maintenance.

Examples

# Start MDC sub1.

<Sysname> system-view

[Sysname] mdc sub1

[Sysname-mdc-2-sub1] mdc start

It will take some time to start MDC...

MDC started successfully.

switchto mdc

Use switchto mdc to log in to a non-default MDC from the system view of the default MDC and enter MDC user view.

Syntax

switchto mdc mdc-name

Views

System view

Predefined user roles

network-admin

network-operator

Parameters

mdc-name: Specifies an MDC by its name, a case-sensitive string of 1 to 15 characters.

Usage guidelines

You can log in to an MDC only when the MDC is in active state.

Examples

# Log in to MDC sub1 from the system view of the default MDC.

<Sysname> system-view

[Sysname] switchto mdc sub1

******************************************************************************

* Copyright (c) 2004-2017 New H3C Technologies Co., Ltd. All rights reserved.*

* Without the owner's prior written consent,                                 *

* no decompiling or reverse-engineering shall be allowed.                    *

******************************************************************************

 

Automatic configuration is running, press CTRL_C or CTRL_D to break or press CTRL_B to switch back to the default MDC.

Automatic configuration is running, press CTRL_C or CTRL_D to break or press CTRL_B to switch back to the default MDC.

# Press CTRL+C or CTRL+D to abort automatic configuration and enter the CLI of MDC sub1.

Automatic configuration is aborted.

<Sysname>

Related commands

switchback

MDC commands for non-default MDCs

This section describes the MDC commands that you can use after logging in to a non-default MDC.

display mdc

Use display mdc to display the ID, name, and status of the current MDC.

Syntax

display mdc

Views

Any view

Predefined user roles

mdc-admin

mdc-operator

Examples

# Display the ID, name, and status of the current MDC.

<sub1> display mdc

ID      Name         Status

2       sub1         active

For information about the Status field, see Table 1.

display mdc interface

Use display mdc interface to display the interfaces of the current MDC.

Syntax

display mdc interface

Views

Any view

Predefined user roles

mdc-admin

mdc-operator

Examples

# Display the interfaces of the current MDC.

<sub1> display mdc interface

 MDC sub1's interface(s):                                                      

  M-GigabitEthernet1/0/0/0             M-GigabitEthernet1/0/0/1                

  M-GigabitEthernet1/0/0/2             M-GigabitEthernet1/0/0/3                

  HundredGigE1/3/0/1                   HundredGigE1/3/0/2                      

  Ten-GigabitEthernet1/3/0/3           Ten-GigabitEthernet1/3/0/4              

  Ten-GigabitEthernet1/3/0/5           Ten-GigabitEthernet1/3/0/6              

  Ten-GigabitEthernet1/3/0/7           Ten-GigabitEthernet1/3/0/8              

  Ten-GigabitEthernet1/3/0/9           Ten-GigabitEthernet1/3/0/10             

  Ten-GigabitEthernet1/3/0/11          Ten-GigabitEthernet1/3/0/12             

  Ten-GigabitEthernet1/3/0/13          Ten-GigabitEthernet1/3/0/14             

  Ten-GigabitEthernet1/3/0/15          Ten-GigabitEthernet1/3/0/16             

  Ten-GigabitEthernet1/3/0/17          Ten-GigabitEthernet1/3/0/18             

  Ten-GigabitEthernet1/3/0/19          Ten-GigabitEthernet1/3/0/20             

  Ten-GigabitEthernet1/3/0/21          Ten-GigabitEthernet1/3/0/22             

  Ten-GigabitEthernet1/3/0/23          Ten-GigabitEthernet1/3/0/24             

  Ten-GigabitEthernet1/3/0/25          Ten-GigabitEthernet1/3/0/26             

  Ten-GigabitEthernet1/3/0/27          Ten-GigabitEthernet1/3/0/28             

  Ten-GigabitEthernet1/3/0/29          Ten-GigabitEthernet1/3/0/30             

  Ten-GigabitEthernet1/3/0/31          Ten-GigabitEthernet1/3/0/32             

  Ten-GigabitEthernet1/3/0/33          Ten-GigabitEthernet1/3/0/34             

  Ten-GigabitEthernet1/3/0/35          Ten-GigabitEthernet1/3/0/36             

  Ten-GigabitEthernet1/3/0/37          Ten-GigabitEthernet1/3/0/38             

  Ten-GigabitEthernet1/3/0/39          Ten-GigabitEthernet1/3/0/40             

  Ten-GigabitEthernet1/3/0/41          Ten-GigabitEthernet1/3/0/42             

  Ten-GigabitEthernet1/3/0/43          Ten-GigabitEthernet1/3/0/44             

  Ten-GigabitEthernet1/3/0/45          Ten-GigabitEthernet1/3/0/46             

  Ten-GigabitEthernet1/3/0/47          Ten-GigabitEthernet1/3/0/48              

  Ten-GigabitEthernet1/3/0/49          Ten-GigabitEthernet1/3/0/50

display mdc resource

Use display mdc resource to display the CPU and memory usage of the current MDC.

Syntax

In standalone mode:

display mdc resource [ cpu | memory ] [ slot slot-number ]

In IRF mode:

display mdc resource [ cpu | memory ] [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

mdc-admin

mdc-operator

Parameters

cpu: Displays the CPU usage.

memory: Displays the memory space usage.

slot slot-number: Specifies a card. If you do not specify this option, the command displays the usage on all cards. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. If you do not specify this option, the command displays the usage on all cards in the IRF fabric. (In IRF mode.)

Examples

# Display the CPU and memory space usage of the current MDC.

<sub1> display mdc resource

Memory usage:                                                                  

Chassis 1 slot 0 CPU 0:                                                         

Used 871.3MB, Free 7117.3MB, Total 7988.6MB                                    

  ID    Name             Quota(MB)    Used(MB)     Available(MB)               

  2     sub1             7988.6       113.6        7117.3                       

Chassis 1 slot 3 CPU 0:                                                        

Used 208.4MB, Free 7780.5MB, Total 7988.8MB                                    

  ID    Name             Quota(MB)    Used(MB)     Available(MB)               

  2     sub1             7988.8       17.2         7780.5                      

CPU usage:                                                                     

Chassis 1 slot 0 CPU 0:                                                        

  ID    Name             Weight       Usage(%)                                 

  2     sub1             10           6                                        

Chassis 1 slot 3 CPU 0:                                                        

  ID    Name             Weight       Usage(%)                                 

  2     sub1             10           0

switchback

Use switchback to return from a non-default MDC to the default MDC. This command will bring you from the user view of the non-default MDC to the system view of the default MDC.

Syntax

switchback

Views

User view

Predefined user roles

mdc-admin

mdc-operator

Usage guidelines

You can use this command to return to the default MDC only after you use the switchto command to log in to a non-default MDC. If you log in to a non-default MDC by using any other method (such as Telnet), you cannot use this command to access the default MDC.

Examples

# Return from the current MDC to the default MDC.

<sub1> switchback

[Sysname]

Related commands

switchto mdc

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网