- Table of Contents
-
- 01-Fundamentals Command Reference
- 00-Preface
- 01-CLI commands
- 02-RBAC commands
- 03-Login management commands
- 04-FTP and TFTP commands
- 05-File system management commands
- 06-Configuration file management commands
- 07-Software upgrade commands
- 08-ISSU commands
- 09-Emergency shell commands
- 10-Device management commands
- 11-MDC commands
- 12-TCL commands
- 13-License management commands
- Related Documents
-
Title | Size | Download |
---|---|---|
11-MDC commands | 116.2 KB |
MDC commands for the default MDC
This section describes the MDC commands you can use after logging in to the default MDC (the physical device).
All commands indicated to be in "MDC view" are only available in the view for a non-default MDC. You can use the mdc command to enter the view of the default MDC, but in this view you can only display the relevant settings.
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, and a non-default MDC has no physical interfaces to use.
Views
MDC view
Predefined user roles
network-admin
mdc-admin
Parameters
{ interface-type interface-number }&<1-24>: Specifies individual interfaces by their types and numbers. &<1-24> indicates that you can specify up to 24 interfaces.
interface-type interface-number1 to interface-type interface-number2: Specifies a range of interfaces. The interface-number1 argument indicates the number of the first interface for the range, and the interface-number2 argument indicates the number of the last interface for the range. All interfaces in the range must be of the same type and on the same interface card.
Usage guidelines
The console port and AUX port of the device always belong to the default MDC. They cannot be assigned to a non-default MDC.
The management Ethernet interface of the device always belongs to the default MDC. When a non-default MDC is created, the system automatically creates a management Ethernet interface for the MDC. The management Ethernet interfaces of all non-default MDCs use the same type and number and the same physical port and link as that of the default MDC. However, you must assign them different IP addresses so administrators of different MDCs access and manage their respective MDCs. The IP addresses for the MDCs' management Ethernet interfaces might belong to the same network segment or different segments.
Only a physical interface that belongs to the default MDC can be assigned to a non-default MDC.
You can assign multiple physical interfaces to an MDC.
One physical interface can belong to only one MDC. To assign a physical interface that belongs to one non-default MDC to another non-default MDC, you must first remove the existing assignment by using the undo allocate interface command.
Because of hardware restrictions, the interfaces on some interface cards are grouped. The interfaces in a group must be assigned to the same MDC at the same time.
Assigning a physical interface to or reclaiming a physical interface from an MDC restores the settings of the interface to the defaults.
To configure parameters for a physical interface assigned to an MDC, you must log in to the MDC.
After you change the configuration of a physical IRF port, you must use the save command to save the running configuration. Otherwise, after a reboot, the master and subordinate devices in the IRF fabric will have different physical IRF port configurations and you must use the undo allocate interface command and the undo port group interface command to restore the default and reconfigure the physical IRF port. For more information about the undo port group interface command, see IRF Command Reference.
Examples
# Assign interfaces GigabitEthernet 3/0/1 through GigabitEthernet3/0/48 to MDC sub1.
<Sysname> system-view
[Sysname] mdc sub1
[Sysname-mdc-2-sub1] allocate interface GigabitEthernet 3/0/1 to GigabitEthernet 3/0/48
The 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.
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 normally. · updating—The device is executing the location command to authorize the MDC to use an interface card. · 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
The default MDC can use only the physical interfaces that are not assigned to a non-default MDC. When you assign physical interfaces to MDCs on an IRF member device, make sure the default MDC always has at least one physical IRF port in up state. Assigning the default MDC's last physical IRF port in up state to a non-default MDC splits the IRF fabric.
Examples
# Display the interfaces of all MDCs.
MDC Admin's interface(s):
M-Ethernet0/0/0
MDC sub1's interface(s):
GigabitEthernet7/0/1 GigabitEthernet7/0/2
GigabitEthernet7/0/3 GigabitEthernet7/0/4
GigabitEthernet7/0/5 GigabitEthernet7/0/6
GigabitEthernet7/0/7 GigabitEthernet7/0/8
GigabitEthernet7/0/9 GigabitEthernet7/0/10
GigabitEthernet7/0/11 GigabitEthernet7/0/12
GigabitEthernet7/0/13 GigabitEthernet7/0/14
GigabitEthernet7/0/15 GigabitEthernet7/0/16
GigabitEthernet7/0/17 GigabitEthernet7/0/18
GigabitEthernet7/0/19 GigabitEthernet7/0/20
GigabitEthernet7/0/21 GigabitEthernet7/0/22
GigabitEthernet7/0/23 GigabitEthernet7/0/24
GigabitEthernet7/0/25 GigabitEthernet7/0/26
GigabitEthernet7/0/27 GigabitEthernet7/0/28
GigabitEthernet7/0/29 GigabitEthernet7/0/30
GigabitEthernet7/0/31 GigabitEthernet7/0/32
GigabitEthernet7/0/33 GigabitEthernet7/0/34
GigabitEthernet7/0/35 GigabitEthernet7/0/36
GigabitEthernet7/0/37 GigabitEthernet7/0/38
GigabitEthernet7/0/39 GigabitEthernet7/0/40
GigabitEthernet7/0/41 GigabitEthernet7/0/42
GigabitEthernet7/0/43 GigabitEthernet7/0/44
GigabitEthernet7/0/45 GigabitEthernet7/0/46
GigabitEthernet7/0/47 GigabitEthernet7/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 ]
In IRF mode:
display mdc [ name mdc-name ] resource [ cpu | disk | 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-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.)
Examples
# Display the CPU, disk space, and memory usage of all MDCs on all cards in standalone mode.
<Sysname> display mdc resource
Memory:
Slot 0:
Used 149.4MB, Free 3260.9MB, Total 3410.3MB:
ID Name Quota(MB) Used(MB) Available(MB)
----------------------------------------------------------------
1 Admin 3410.3 149.4 3260.9
2 sub1 3410.3 0.0 3260.9
Slot 7:
Used 69.3MB, Free 429.3MB, Total 498.6MB:
ID Name Quota(MB) Used(MB) Available(MB)
----------------------------------------------------------------
1 Admin 498.6 69.3 429.3
CPU:
Slot 0:
ID Name Weight Usage(%)
-------------------------------------------------
1 Admin 10 0
2 sub1 10 0
Slot 7:
ID Name Weight Usage(%)
-------------------------------------------------
1 Admin 10 0
Disk:
Slot 0:
cfa0:: Used 194.8MB, Free 802.3MB, Total 997.2MB:
ID Name Quota(MB) Used(MB) Available(MB)
--------------------------------------------------------------
1 Admin 997.2 194.8 802.3
2 sub1 997.2 0.0 802.3
flash:: Used 3.4MB, Free 124.6MB, Total 128.0MB:
ID Name Quota(MB) Used(MB) Available(MB)
--------------------------------------------------------------
1 Admin 128.0 3.4 124.6
2 sub1 128.0 0.0 124.6
# Display the CPU, disk space, and memory space usage of all MDCs on all cards in the IRF fabric in IRF mode.
<sub1> display mdc resource
Memory:
Chassis 1 Slot 0:
Used 149.4MB, Free 3260.9MB, Total 3410.3MB:
ID Name Quota(MB) Used(MB) Available(MB)
----------------------------------------------------------------
1 Admin 3410.3 149.4 3260.9
2 sub1 3410.3 0.0 3260.9
Chassis 1 Slot 7:
Used 69.3MB, Free 429.3MB, Total 498.6MB:
ID Name Quota(MB) Used(MB) Available(MB)
----------------------------------------------------------------
1 Admin 498.6 69.3 429.3
CPU:
Chassis 1 Slot 0:
ID Name Weight Usage(%)
-------------------------------------------------
1 Admin 10 0
2 sub1 10 0
Chassis 1 Slot 7:
ID Name Weight Usage(%)
-------------------------------------------------
1 Admin 10 0
Disk:
Chassis 1 Slot 0:
cfa0:: Used 194.8MB, Free 802.3MB, Total 997.2MB:
ID Name Quota(MB) Used(MB) Available(MB)
--------------------------------------------------------------
1 Admin 997.2 194.8 802.3
2 sub1 997.2 0.0 802.3
flash:: Used 3.4MB, Free 124.6MB, Total 128.0MB:
ID Name Quota(MB) Used(MB) Available(MB)
--------------------------------------------------------------
1 Admin 128.0 3.4 124.6
2 sub1 128.0 0.0 124.6
Table 2 Command output
Field |
Description |
Memory |
Memory usage. |
CPU |
CPU usage. |
Disk |
Disk space usage. |
Slot 0 |
Usage on a card. (In standalone mode.) |
Chassis 1 Slot 0 |
Usage on a card of an IRF member device. (In IRF mode.) |
Weight |
CPU weight. |
Quota (MB) |
Maximum amount of memory or disk space for the MDC, in MB. |
Available(MB) |
Available amount of memory or disk space for the MDC, in MB. |
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 (unchangeable) on each MPU and each interface card, and each non-default MDC has a CPU weight of 10 on each MPU and each interface card that it is authorized to use.
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 amount of CPU resources an MDC can use depends on the CPU weight settings for all MDCs that share the same CPU. For example, if three MDCs share the same CPU and their weights are 10, 10, and 5, the two MDCs with the same weight can use the CPU for approximately the same period of time, and the MDC with a weight of 5 can use the CPU for about half of the time for each of the other two MDCs. Specifying the following weights for the MDCs has the same effect: 2, 2, and 1.
After you specify a CPU weight for an MDC, the MDC can use the same percentage of CPU resources on the MPUs and the interface cards assigned to it. To enable an MDC to use the CPU on an interface card, use the location command to authorize the MDC to use the interface card first.
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 ratio limit-ratio
undo limit-resource disk slot slot-number
In IRF mode:
limit-resource disk chassis chassis-number slot slot-number ratio limit-ratio
undo limit-resource disk chassis chassis-number slot slot-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
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.)
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, in the range of 1 to 100.
Usage guidelines
An MDC can apply for and use more space only when the space it is using is less than the space indicated by its disk space percentage.
The amount of space indicated by the percentage for an MDC must be greater than the least space the MDC requires for operation. If the amount of space indicated by the percentage for an MDC is less than the least space required, the MDC does not release the extra part it has occupied, but no more folders or files can be created or saved for the MDC.
Different MDCs might have different basic space requirements. Before you specify a disk space percentage for an MDC, use the display mdc resource command to view how much space the MDC is using. If the MDC administrators have not accessed the MDC, you can assume that the amount of space used by the MDC is the basic space requirement of the MDC.
Examples
# Allow MDC sub1 to use up to 30 percent of the disk space on the MPU in slot 1. (In standalone mode.)
<Sysname> system-view
[Sysname] mdc sub1
[Sysname-mdc-2-sub1] limit-resource disk slot 1 ratio 30
# Allow MDC sub1 to use up to 30 percent of the disk space on the MPU in slot 1 on IRF member device 2. (In IRF mode.)
<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 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, and 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, in the range of 1 to 100.
Usage guidelines
This command sets the maximum amount of memory space that an MDC can use. Make sure this amount is greater than the minimum amount of memory space that an MDC needs to start.
Examples
# Allow MDC sub1 to use up to 30 percent of the memory space on the card in slot 1. (In standalone mode.)
<Sysname> system-view
[Sysname] mdc sub1
[Sysname-MDC-2-sub1] limit-resource memory slot 1 ratio 30
# Allow MDC sub1 to use up to 30 percent of the memory space on the card in slot 1 on IRF member device 2. (In IRF mode.)
<Sysname> system-view
[Sysname] mdc sub1
[Sysname-MDC-2-sub1] limit-resource memory chassis 2 slot 1 ratio 30
location
Use location to authorize an MDC to use an interface card.
Use undo location to cancel the authorization.
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 interface cards of the device belong to the default MDC, and a non-default MDC can use no interface cards.
Views
MDC view
Predefined user roles
network-admin
mdc-admin
Parameters
slot slot-number: Specifies an interface card. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies an interface card 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 interface cards that the physical interfaces belong to.
You can enter different MDC views to authorize multiple MDCs to use the same interface card.
Examples
# Authorize MDC sub1 to use the interface card in slot 3. (In standalone mode.)
<Sysname> system-view
[Sysname] mdc sub1
[Sysname-mdc-2-sub1] location slot 3
# Authorize MDC sub1 to use the interface card in slot 3 on IRF member device 2. (In IRF mode.)
<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 system 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. The MDC must have been started.
Usage guidelines
You use this command to log in to only an MDC that 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-2012 Hangzhou H3C Tech. Co., Ltd. All rights reserved. *
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
<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 an MDC ID in the range of 1 to 4. If you do not specify this option, the system assigns the lowest ID number among the available ones to the MDC.
Usage guidelines
· The default MDC is system predefined. You do not need to create it, nor can you delete it.
· The device supports creating up to three MDCs.
· Only an MPU with 4G memory space supports creating 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 removes all configurations and harddisk files of the MDC, and the configurations and files cannot be restored.
· This command is mutually exclusive with the irf mode enhanced command. For more information about IRF, see IRF Configuration Guide.
Examples
# Create an MDC named sub1.
<Sysname> system-view
[Sysname] mdc sub1
It will take some time to create MDC...
This MDC was 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
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 users of 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...
This MDC was started successfully.
MDC commands for non-default MDCs
This section describes the MDC commands an administrator 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
Table 3 Command output
Field |
Description |
Status |
MDC status: · 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 properly. · updating—The device is executing the location command to authorize the MDC to use an interface card. · stopping—The device is executing the undo mdc start command to stop the MDC. |
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-Ethernet0/0/0 GigabitEthernet7/0/1
GigabitEthernet7/0/2 GigabitEthernet7/0/3
GigabitEthernet7/0/4 GigabitEthernet7/0/5
GigabitEthernet7/0/6 GigabitEthernet7/0/7
GigabitEthernet7/0/8 GigabitEthernet7/0/9
GigabitEthernet7/0/10 GigabitEthernet7/0/11
GigabitEthernet7/0/12 GigabitEthernet7/0/13
GigabitEthernet7/0/14 GigabitEthernet7/0/15
GigabitEthernet7/0/16 GigabitEthernet7/0/17
GigabitEthernet7/0/18 GigabitEthernet7/0/19
GigabitEthernet7/0/20 GigabitEthernet7/0/21
GigabitEthernet7/0/22 GigabitEthernet7/0/23
GigabitEthernet7/0/24 GigabitEthernet7/0/25
GigabitEthernet7/0/26 GigabitEthernet7/0/27
GigabitEthernet7/0/28 GigabitEthernet7/0/29
GigabitEthernet7/0/30 GigabitEthernet7/0/31
GigabitEthernet7/0/32 GigabitEthernet7/0/33
GigabitEthernet7/0/34 GigabitEthernet7/0/35
GigabitEthernet7/0/36 GigabitEthernet7/0/37
GigabitEthernet7/0/38 GigabitEthernet7/0/39
GigabitEthernet7/0/40 GigabitEthernet7/0/41
GigabitEthernet7/0/42 GigabitEthernet7/0/43
GigabitEthernet7/0/44 GigabitEthernet7/0/45
GigabitEthernet7/0/46 GigabitEthernet7/0/47
GigabitEthernet7/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 ]
In IRF mode:
display mdc resource [ cpu | disk | memory ] [ chassis chassis-number slot slot-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.)
Examples
# Display the CPU, disk space, and memory space usage of the MDC on all cards in standalone mode.
<sub1> display mdc resource
Memory:
Slot 0:
Used 184.4MB, Free 3225.9MB, Total 3410.3MB:
ID Name Quota(MB) Used(MB) Available(MB)
----------------------------------------------------------------
2 sub1 3410.3 35.0 3225.9
CPU:
Slot 0:
ID Name Weight Usage(%)
-------------------------------------------------
2 sub1 2 0
Disk:
Slot 0:
cfa0:: Used 194.9MB, Free 802.2MB, Total 997.2MB:
ID Name Quota(MB) Used(MB) Available(MB)
--------------------------------------------------------------
2 sub1 997.2 0.0 802.2
flash:: Used 3.4MB, Free 124.6MB, Total 128.0MB:
ID Name Quota(MB) Used(MB) Available(MB)
--------------------------------------------------------------
2 sub1 128.0 0.0 124.6
# Display the CPU, disk space, and memory space usage of the MDC on all cards in the IRF fabric in IRF mode.
<sub1> display mdc resource
Memory:
Chassis 1 Slot 0:
Used 184.4MB, Free 3225.9MB, Total 3410.3MB:
ID Name Quota(MB) Used(MB) Available(MB)
----------------------------------------------------------------
2 sub1 3410.3 35.0 3225.9
CPU:
Chassis 1 Slot 0:
ID Name Weight Usage(%)
-------------------------------------------------
2 sub1 2 0
Disk:
Chassis 1 Slot 0:
cfa0:: Used 194.9MB, Free 802.2MB, Total 997.2MB:
ID Name Quota(MB) Used(MB) Available(MB)
--------------------------------------------------------------
2 sub1 997.2 0.0 802.2
flash:: Used 3.4MB, Free 124.6MB, Total 128.0MB:
ID Name Quota(MB) Used(MB) Available(MB)
--------------------------------------------------------------
2 sub1 128.0 0.0 124.6
Table 4 Command output
Field |
Description |
Memory |
Memory usage. |
CPU |
CPU usage. |
Disk |
Disk space usage. |
Slot 0 |
Usage on a card. (In standalone mode.) |
Chassis 1 Slot 0 |
Usage on a card of an IRF member device. (In IRF mode.) |
Weight |
CPU weight. |
Quota(MB) |
Maximum amount of memory or disk space for the MDC. in MB. |
Available(MB) |
Available amount of memory or disk space for the MDC, in MB. |
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 the switchback command to return to the default MDC only after you use the switchto command to log in to a non-default MDC. A user who logs in to a non-default MDC by using any other method (such as Telnet) cannot use the switchback command to access the default MDC.
Examples
# Return from the current MDC to the default MDC.
<sub1> switchback
[Sysname]
Related commands
switchto mdc