02-Virtual Technologies Command Reference

HomeSupportSwitchesH3C S7500E Switch SeriesReference GuidesCommand ReferencesH3C S7500E Switch Series Command References-Release7178-6W10002-Virtual Technologies Command Reference
02-MDC commands
Title Size Download
02-MDC commands 86.07 KB

MDC commands

You must install a valid license to use the MDC feature. When the license expires or is uninstalled, you cannot create, start, or use non-default MDCs. For more information about licenses, see Fundamental Configuration Guide.

Do not configure MDCs on a device installed with the following cards, or install the following cards on a device configured with MDCs:

·     EB interface modules.

·     SC interface modules LSQ3GV48SC0 and LSQ1TGS8SC0.

·     SD interface modules.

·     LSQ series OAP modules.

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).

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

allocate interface

Use allocate interface to assign a physical interface to an MDC.

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

Syntax

allocate interface { interface-type interface-number }&<1-24>

undo allocate interface { interface-type interface-number }&<1-24>

allocate interface interface-type interface-number1 to interface-type interface-number2

undo allocate interface interface-type interface-number1 to interface-type interface-number2

Default

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

Views

MDC view of a non-default MDC

Predefined user roles

network-admin

mdc-admin

Parameters

{ interface-type interface-number }&<1-24>: Specifies a space-separated list of up to 24 interfaces.

interface-type interface-number1 to interface-type interface-number2: Specifies a range of interfaces. The two interface-type arguments must have the same value. All interfaces in the range must be on the same LPU.

Usage guidelines

You can assign multiple physical interfaces to a non-default MDC. A physical interface must meet the following requirements to be assigned to a non-default MDC:

·     The interface must belong to the default MDC. To assign a physical interface that belongs to one non-default MDC to another non-default MDC, you must remove the existing assignment by using the undo allocate interface command.

·     The interface must not be the console port. The console port of the device belongs to the default MDC. You cannot assign them to a non-default MDC.

·     The interface must not be the management Ethernet interface. The physical management Ethernet interface of the device belongs to the default MDC and cannot be assigned to a non-default MDC. When a non-default MDC is created, the system automatically creates a virtual management Ethernet interface for the MDC. All the virtual management Ethernet interfaces use the same interface type and number and the same physical port and link as the default MDC's physical management Ethernet interface. However, you must assign different IP addresses to the virtual management Ethernet interfaces so MDC administrators can access and manage their respective MDCs. The IP addresses for the management Ethernet interfaces do not need to belong to the same network segment.

·     The interface is not an 10-GE or 40-GE interface on an LSQM1SRP8X2QE0 MPU. MPUs cannot be assigned to a non-default MDC.

When you assign physical interfaces on an IRF member device to MDCs, make sure the default MDC always has one or more physical IRF ports in up state. Assigning the default MDC's last physical IRF port in up state to a non-default MDC splits the IRF fabric.

Assigning or reclaiming a physical interface restores the settings of the interface to the defaults. If the MDC administrator configures the interface during the assigning or reclaiming operation, settings made before the operation is completed are lost.

To configure a physical interface assigned to an MDC, you must log in to the MDC.

Examples

# Assign interfaces GigabitEthernet 1/0/1 and GigabitEthernet 1/0/3 to MDC sub1.

<Sysname> system-view

[Sysname] mdc sub1

[Sysname-mdc-2-sub1] allocate interface gigabitethernet 1/0/1 gigabitethernet 1/0/3

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

# Assign interfaces GigabitEthernet 1/0/1 through GigabitEthernet 1/0/8 to MDC sub1.

<Sysname> system-view

[Sysname] mdc sub1

[Sysname-mdc-2-sub1] allocate interface gigabitethernet 1/0/1 to gigabitethernet 1/0/8

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

# Assign interface GigabitEthernet 1/0/4 to MDC sub1.

<Sysname> system-view

[Sysname] mdc sub1

[Sysname-mdc-2-sub1] allocate interface gigabitethernet 1/0/4

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.

  Gigabitethernet1/0/4

Port list of group 2:

  GigabitEthernet1/0/3               GigabitEthernet1/0/4

The output shows that GigabitEthernet 1/0/4 and GigabitEthernet 1/0/3 belong to the same group and must be assigned to the same MDC at the same time. To assign both interfaces to MDC sub1, use the following command:

[Sysname-mdc-2-sub1] allocate interface gigabitethernet 1/0/3 gigabitethernet 1/0/4

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

display mdc

Use display mdc to display MDCs and their status.

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-insensitive 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 authorize the MDC to use an LPU.

·     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-insensitive string of 1 to 15 characters. If you do not specify this option, the command displays the interfaces of all MDCs.

Usage guidelines

On a device that uses an LSQM1SRP8X2QE0 as the standby MPU, this command does not display the MPU's management Ethernet interface, 10-GE interfaces, or 40-GE interfaces.

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

  Ten-GigabitEthernet1/1/0/1           Ten-GigabitEthernet1/1/0/2

 

 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

  GigabitEthernet1/3/0/1               GigabitEthernet1/3/0/2

  GigabitEthernet1/3/0/3               GigabitEthernet1/3/0/4

  GigabitEthernet1/3/0/5               GigabitEthernet1/3/0/6

  GigabitEthernet1/3/0/7               GigabitEthernet1/3/0/8

  GigabitEthernet1/3/0/9               GigabitEthernet1/3/0/10

  GigabitEthernet1/3/0/11              GigabitEthernet1/3/0/12

  GigabitEthernet1/3/0/13              GigabitEthernet1/3/0/14

  GigabitEthernet1/3/0/15              GigabitEthernet1/3/0/16

  GigabitEthernet1/3/0/17              GigabitEthernet1/3/0/18

  GigabitEthernet1/3/0/19              GigabitEthernet1/3/0/20

  GigabitEthernet1/3/0/21              GigabitEthernet1/3/0/22

  GigabitEthernet1/3/0/23              GigabitEthernet1/3/0/24

  GigabitEthernet1/3/0/25              GigabitEthernet1/3/0/26

  GigabitEthernet1/3/0/27              GigabitEthernet1/3/0/28

  GigabitEthernet1/3/0/29              GigabitEthernet1/3/0/30

  GigabitEthernet1/3/0/31              GigabitEthernet1/3/0/32

  GigabitEthernet1/3/0/33              GigabitEthernet1/3/0/34

  GigabitEthernet1/3/0/35              GigabitEthernet1/3/0/36

  GigabitEthernet1/3/0/37              GigabitEthernet1/3/0/38

  GigabitEthernet1/3/0/39              GigabitEthernet1/3/0/40

  GigabitEthernet1/3/0/41              GigabitEthernet1/3/0/42

  GigabitEthernet1/3/0/43              GigabitEthernet1/3/0/44

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

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

Related commands

allocate interface

display mdc resource

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

Syntax

In standalone mode:

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

In IRF mode:

display mdc [ name mdc-name ] resource [ cpu | disk | memory ] [ chassis chassis-number slot slot-number [ cpu cpu-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-insensitive 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.

disk: Displays the disk space 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.)

cpu cpu-number: Specifies a CPU by its number. If you do not specify this option, the command displays the usage on CPU 0.

Examples

# (In standalone mode.) Display the CPU, disk space, and memory space usage of all MDCs.

<Sysname> display mdc resource

Memory usage:

slot 0 CPU 0:

Used 21.8MB, Free 687.0MB, Total 708.8MB

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

  2     sub1             708.8        4.7          687.0

Chassis 1 slot 7 CPU 0:

Used 378.7MB, Free 7566.0MB, Total 7944.6MB

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

  2     sub1             7944.6       45.6         7566.0

CPU usage:

slot 0 CPU 0:

  ID    Name             Weight       Usage(%)

  2     sub1             2            1

slot 7 CPU 0:

  ID    Name             Weight       Usage(%)

  2     sub1             2            0

Disk usage:

slot 7 CPU 0:

flash: Used 248.5MB, Free 775.5MB, Total 1024.0MB

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

  2     sub1             1024.0       0.0          775.5

# (In IRF mode.) Display the CPU, disk space, and memory space usage of all MDCs on all cards in the IRF fabric.

<Sysname> display mdc resource

Memory usage:

Chassis 1 slot 0 CPU 0:

Used 21.8MB, Free 687.0MB, Total 708.8MB

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

  2     sub1             708.8        4.7          687.0

Chassis 1 slot 7 CPU 0:

Used 378.7MB, Free 7566.0MB, Total 7944.6MB

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

  2     sub1             7944.6       45.6         7566.0

CPU usage:

Chassis 1 slot 0 CPU 0:

  ID    Name             Weight       Usage(%)

  2     sub1             2            1

Chassis 1 slot 7 CPU 0:

  ID    Name             Weight       Usage(%)

  2     sub1             2            0

Disk usage:

Chassis 1 slot 7 CPU 0:

flash: Used 248.5MB, Free 775.5MB, Total 1024.0MB

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

  2     sub1             1024.0       0.0          775.5

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. Each non-default MDC has a CPU weight of 10 on each MPU.

Views

MDC view of a non-default MDC

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 amount 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.

Examples

# Set the CPU weight of MDC sub1 to 2.

<Sysname> system-view

[Sysname] mdc sub1

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

limit-resource disk

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

Use undo limit-resource disk to restore the default.

Syntax

In standalone mode:

limit-resource disk slot slot-number [ cpu cpu-number ] ratio limit-ratio

undo limit-resource disk slot slot-number [ cpu cpu-number ]

In IRF mode:

limit-resource disk chassis chassis-number slot slot-number [ cpu cpu-number ] ratio limit-ratio

undo limit-resource disk chassis chassis-number slot slot-number [ cpu cpu-number ]

Default

All MDCs share the disk space in the system, and an MDC can use all free disk space in the system.

Views

MDC view of the default MDC or a non-default MDC

Predefined user roles

network-admin

mdc-admin

Parameters

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

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

cpu cpu-number: Specifies a CPU by its number. If you do not specify this option, the command specifies a disk space percentage for CPU 0.

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

Usage guidelines

Before you specify a disk space percentage for an MDC, use the display mdc resource command to view how much disk space the MDC is using. Make sure the disk space you assign to an MDC is greater than the disk space the MDC is using. Otherwise, the MDC cannot apply for more disk space and no additional folders or files can be created or saved for the MDC.

Examples

# (In standalone mode.) Allow MDC sub1 to use up to 30 percent of the disk space on the MPU in slot 1.

<Sysname> system-view

[Sysname] mdc sub1

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

# (In IRF mode.) Allow MDC sub1 to use up to 30 percent of the disk space on the MPU in slot 1 on IRF member device 2.

<Sysname> system-view

[Sysname] mdc sub1

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

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 [ cpu cpu-number ] ratio limit-ratio

undo limit-resource memory slot slot-number [ cpu cpu-number ]

In IRF mode:

limit-resource memory chassis chassis-number slot slot-number [ cpu cpu-number ] ratio limit-ratio

undo limit-resource memory chassis chassis-number slot slot-number [ cpu cpu-number ]

Default

All MDCs share the memory space in the system, and an MDC can use all free memory space in the system.

Views

MDC view of the default MDC or a non-default MDC

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.)

cpu cpu-number: Specifies a CPU by its number. If you do not specify this option, the command specifies a memory space percentage for CPU 0.

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 the card in slot 1.

<Sysname> system-view

[Sysname] mdc sub1

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

# (In IRF mode.) Allow MDC sub1 to use up to 30 percent of the memory space on the card in slot 1 on IRF member device 2.

<Sysname> system-view

[Sysname] mdc sub1

[Sysname-mdc-2-sub1] limit-resource memory chassis 2 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 of the default MDC or a non-default MDC

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

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

To return an LPU that has been assigned to a non-default MDC to the default MDC, you must perform the following tasks:

1.     Use the undo location command to reclaim the LPU.

2.     Use the location command to assign the LPU to the default MDC.

Examples

# (In standalone mode.) Authorize MDC sub1 to use the LPU in slot 3.

<Sysname> system-view

[Sysname] mdc sub1

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

# (In IRF mode.) Authorize MDC sub1 to use the LPU in slot 3 on IRF member device 2.

<Sysname> system-view

[Sysname] mdc sub1

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

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 the MDC name, a case-insensitive string of 1 to 15 characters.

Usage guidelines

You can log in to an MDC only when it 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-2014 Hangzhou H3C Tech. 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_D to break or press CTRL_B to

switch back to the default MDC.

<Sysname>

<Sysname> display mdc

ID         Name            Status

2          sub1            active

Related commands

switchback

mdc

Use mdc to create an MDC and enter MDC view. If the MDC already exists, you enter the MDC view directly.

Use undo mdc to delete an MDC.

Syntax

mdc mdc-name [ id mdc-id ]

undo mdc mdc-name

Default

There is a default MDC with the name Admin and the ID 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 9. If you do not specify this option, the system assigns the lowest ID number among the available IDs to the MDC.

Usage guidelines

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

A PoE-incapable S7506E switch supports up to two non-default MDCs. Other switches each support up to four non-default MDCs.

A switch that uses the MPUs supports up to four non-default MDCs. A switch that uses other MPUs supports up to eight non-default 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.

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

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 of a non-default MDC

Predefined user roles

network-admin

Usage guidelines

After an MDC is started, administrators of the MDC can log in to the MDC for MDC configuration and maintenance.

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.

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.

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

  GigabitEthernet1/3/0/1               GigabitEthernet1/3/0/2

  GigabitEthernet1/3/0/3               GigabitEthernet1/3/0/4

  GigabitEthernet1/3/0/5               GigabitEthernet1/3/0/6

  GigabitEthernet1/3/0/7               GigabitEthernet1/3/0/8

  GigabitEthernet1/3/0/9               GigabitEthernet1/3/0/10

  GigabitEthernet1/3/0/11              GigabitEthernet1/3/0/12

  GigabitEthernet1/3/0/13              GigabitEthernet1/3/0/14

  GigabitEthernet1/3/0/15              GigabitEthernet1/3/0/16

  GigabitEthernet1/3/0/17              GigabitEthernet1/3/0/18

  GigabitEthernet1/3/0/19              GigabitEthernet1/3/0/20

  GigabitEthernet1/3/0/21              GigabitEthernet1/3/0/22

  GigabitEthernet1/3/0/23              GigabitEthernet1/3/0/24

  GigabitEthernet1/3/0/25              GigabitEthernet1/3/0/26

  GigabitEthernet1/3/0/27              GigabitEthernet1/3/0/28

  GigabitEthernet1/3/0/29              GigabitEthernet1/3/0/30

  GigabitEthernet1/3/0/31              GigabitEthernet1/3/0/32

  GigabitEthernet1/3/0/33              GigabitEthernet1/3/0/34

  GigabitEthernet1/3/0/35              GigabitEthernet1/3/0/36

  GigabitEthernet1/3/0/37              GigabitEthernet1/3/0/38

  GigabitEthernet1/3/0/39              GigabitEthernet1/3/0/40

  GigabitEthernet1/3/0/41              GigabitEthernet1/3/0/42

  GigabitEthernet1/3/0/43              GigabitEthernet1/3/0/44

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

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

display mdc resource

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

Syntax

In standalone mode:

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

In IRF mode:

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

Views

Any view

Predefined user roles

mdc-admin

mdc-operator

Parameters

cpu: Displays the CPU usage.

disk: Displays the disk space 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.)

cpu cpu-number: Specifies a CPU by its number. If you do not specify this option, the command displays the usage on CPU 0.

Examples

# (In standalone mode.) Display the CPU, disk space, and memory space usage of the MDC on all cards.

<sub1> display mdc resource

Memory usage:

slot 0 CPU 0:

Used 21.8MB, Free 687.0MB, Total 708.8MB

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

  2     sub1             708.8        4.8          687.0

slot 7 CPU 0:

Used 378.8MB, Free 7565.9MB, Total 7944.6MB

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

  2     sub1             7944.6       45.6         7565.9

CPU usage:

slot 0 CPU 0:

  ID    Name             Weight       Usage(%)

  2     sub1             2            0

slot 7 CPU 0:

  ID    Name             Weight       Usage(%)

  2     sub1             2            0

Disk usage:

slot 7 CPU 0:

flash: Used 248.5MB, Free 775.5MB, Total 1024.0MB

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

  2     sub1             1024.0       0.0          775.5

# (In IRF mode.) Display the CPU, disk space, and memory space usage of the MDC on all cards in the IRF fabric.

<sub1> display mdc resource

Memory usage:

Chassis 1 slot 0 CPU 0:

Used 21.8MB, Free 687.0MB, Total 708.8MB

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

  2     sub1             708.8        4.8          687.0

Chassis 1 slot 7 CPU 0:

Used 378.8MB, Free 7565.9MB, Total 7944.6MB

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

  2     sub1             7944.6       45.6         7565.9

CPU usage:

Chassis 1 slot 0 CPU 0:

  ID    Name             Weight       Usage(%)

  2     sub1             2            0

Chassis 1 slot 7 CPU 0:

  ID    Name             Weight       Usage(%)

  2     sub1             2            0

Disk usage:

Chassis 1 slot 7 CPU 0:

flash: Used 248.5MB, Free 775.5MB, Total 1024.0MB

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

  2     sub1             1024.0       0.0          775.5

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
新华三官网