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 [ cpu cpu-number ] ]
In IRF mode:
display mdc [ name mdc-name ] resource [ cpu | 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-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 by its slot number. 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 by the member ID and slot number. 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 and memory usage of all MDCs on all cards.
<Sysname> display mdc resource Memory usage: Slot 1 CPU 0: Used 17.7MB, Free 3309.5MB, Total 3327.3MB ID Name Quota(MB) Used(MB) Available(MB) 1 Admin 3327.3 17.7 3309.5 Slot 10 CPU 0: Used 304.2MB, Free 7640.5MB, Total 7944.6MB ID Name Quota(MB) Used(MB) Available(MB) 1 Admin 7944.6 304.2 7640.5 2 1 7944.6 0.0 7640.5 3 sub1 7944.6 0.0 7640.5 Slot 11 CPU 0: Used 215.2MB, Free 7729.5MB, Total 7944.6MB ID Name Quota(MB) Used(MB) Available(MB) 1 Admin 7944.6 215.2 7729.5 2 1 7944.6 0.0 7729.5 3 sub1 7944.6 0.0 7729.5 CPU usage: Slot 1 CPU 0: ID Name Weight Usage(%) 1 Admin 10 1 Slot 10 CPU 0: ID Name Weight Usage(%) 1 Admin 10 6 2 1 10 0 3 sub1 10 0 Slot 11 CPU 0: ID Name Weight Usage(%) 1 Admin 10 6 2 1 10 0 3 sub1 10 0
# In IRF mode, display the CPU and memory space usage of all MDCs on all cards in the IRF fabric.
<Sysname> display mdc resource Memory usage: Chassis 1 slot 1 CPU 0: Used 17.7MB, Free 3309.5MB, Total 3327.3MB ID Name Quota(MB) Used(MB) Available(MB) 1 Admin 3327.3 17.7 3309.5 Chassis 1 slot 10 CPU 0: Used 304.2MB, Free 7640.5MB, Total 7944.6MB ID Name Quota(MB) Used(MB) Available(MB) 1 Admin 7944.6 304.2 7640.5 2 1 7944.6 0.0 7640.5 3 sub1 7944.6 0.0 7640.5 Chassis 1 slot 11 CPU 0: Used 215.2MB, Free 7729.5MB, Total 7944.6MB ID Name Quota(MB) Used(MB) Available(MB) 1 Admin 7944.6 215.2 7729.5 2 1 7944.6 0.0 7729.5 3 sub1 7944.6 0.0 7729.5 CPU usage: Chassis 1 slot 1 CPU 0: ID Name Weight Usage(%) 1 Admin 10 1 Chassis 1 slot 10 CPU 0: ID Name Weight Usage(%) 1 Admin 10 6 2 1 10 0 3 sub1 10 0 Chassis 1 slot 11 CPU 0: ID Name Weight Usage(%) 1 Admin 10 6 2 1 10 0 3 sub1 10 0
Table 45: Command output
Field | Description |
---|---|
Slot x CPU y | Usage on the specified CPU of the specified card. (In standalone mode.) |
Chassis x Slot y CPU z | Usage on the specified CPU of the specified card in the specified IRF member device. (In IRF mode.) |
Weight | CPU weight. |
Quota (MB) | Maximum amount of memory space for the MDC, in MB. |
Available(MB) | Available amount of memory space for the MDC, in MB. |