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

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 all MDCs.

<Sysname> display mdc resource
Memory usage:
Slot 0 CPU 0:
Used 207.2MB, Free 288.7MB, Total 495.9MB
  ID    Name             Quota(MB)    Used(MB)    Available(MB)
  1     Admin            495.9        172.1        288.7
  2     sub1             495.9        17.9         288.7
  3     sub2             495.9        17.2         288.7
CPU usage:
Slot 0 CPU 0:
  ID    Name             Weight       Usage(%)
  1     Admin            10           1
  2     sub1             10           0
  3     sub2             10           0
Disk usage:
Slot 0 CPU 0:
flash: Used 0.7MB, Free 461.2MB, Total 461.9MB
  ID    Name             Quota(MB)    Used(MB)     Available(MB)
  1     Admin            461.9        0.5          461.2
  2     sub1             461.9        0.1          461.2
  3     sub2             461.9        0.1          461.2