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 [ cpu cpu-number ] ]
In IRF mode:
display mdc resource [ cpu | 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.
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 and memory space usage of the MDC on all cards.
<sub1> display mdc resource Memory usage: Slot 10 CPU 0: Used 353.1MB, Free 7591.5MB, Total 7944.6MB ID Name Quota(MB) Used(MB) Available(MB) 3 sub1 7944.6 48.9 7591.5 Slot 11 CPU 0: Used 259.1MB, Free 7685.5MB, Total 7944.6MB ID Name Quota(MB) Used(MB) Available(MB) 3 sub1 7944.6 43.9 7685.5 CPU usage: Slot 10 CPU 0: ID Name Weight Usage(%) 3 sub1 10 0 Slot 11 CPU 0: ID Name Weight Usage(%) 3 sub1 10 0
# In IRF mode, display the CPU and memory space usage of the MDC on all cards in the IRF fabric.
<sub1> display mdc resource Memory usage: Chassis 1 slot 10 CPU 0: Used 353.1MB, Free 7591.5MB, Total 7944.6MB ID Name Quota(MB) Used(MB) Available(MB) 3 sub1 7944.6 48.9 7591.5 Chassis 1 slot 11 CPU 0: Used 259.1MB, Free 7685.5MB, Total 7944.6MB ID Name Quota(MB) Used(MB) Available(MB) 3 sub1 7944.6 43.9 7685.5 CPU usage: Chassis 1 slot 10 CPU 0: ID Name Weight Usage(%) 3 sub1 10 0 Chassis 1 slot 11 CPU 0: ID Name Weight Usage(%) 3 sub1 10 0
For information about the command output, see Table 45.