display virtual-system resource

Function

The display virtual-system resource command displays resource information on a specified virtual system (VS) or all VSs.

Format

display virtual-system [ name vs-name ] resource

Parameters

Parameter Description Value
name vs-name

Specifies the name of a VS.

This parameter is valid only in the admin view.

The value is a string of 1 to 31 case-insensitive characters. The string can contain letters, digits, underscores (_), and hyphens (-). The VS name must begin with letters except "all," "brief," or "verbose."

In VS mode, this parameter is supported only by the admin VS.

Views

Resource template view of admin, VS resource template view, Management view

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
lsvs read

Usage Guidelines

Usage Scenario

A PS or VS administrator can run the display virtual-system resource command to view information about resources assigned to a VS for fault analysis and routine maintenance.

Prerequisites

A VS has been configured.

If the specified VS does not exist, run the virtual-system command in the admin view to create a VS.

Precautions

You can view resource information on all VSs in the admin view or the existing VS in other views.

If you do not assign slot resources to a VS, running this command only displays the name and type of the VS.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display resource usage of a VS named vs1.
<HUAWEI> system-view
[~HUAWEI] sysname vs1
[*HUAWEI] commit
[*vs1] display virtual-system resource
VS : Admin-VS                                                                                                                       
- ---------------------------------------------------------------
Item                     Total          Used        Unused                                                                          
- ---------------------------------------------------------------
u4route                  4294967295     14          4294967281                                                                      
m4route                  64000          0           64000                                                                           
u6route                  4294967295     0           4294967295                                                                      
m6route                  16000          0           16000                                                                           
vpn-instance             32768          3           32765                                                                           
cpu weight               10             --          --                                                                              
- ---------------------------------------------------------------
Table 1 Description of the display virtual-system resource command output
Item Description
Item

Name of the logical resource item.

Total

Total number of resources.

VS

VS role.

Used

Number of resources that have been used by the VS.

Unused

Number of resources that have not been used by the VS.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >