< Home

display slb

Function

The display slb command displays the basic configurations of SLB and the running information about a virtual server.

Format

In versions earlier than V600R007C20SPC300: display slb { vserver [ vserver-name ] [ verbose ] | group [ group-name ] [ verbose ] }

For V600R007C20SPC300 and later versions: display slb { vserver [ verbose ] [ vserver-name ] | group [ verbose ] [ group-name ] }

Parameters

Parameter Description Value

vserver-name

Specifies the name of a virtual server.

-

group-name

Specifies the name of a real server group.

-

verbose

Displays the details about a virtual server.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the basic configuration information of a server group.

<sysname> display slb group grp1
Group Information(Total 1)
--------------------------------------------------------
 Group Name               :grp1
 Group ID                 :1
 Metric                   :roundrobin
 Source-nat Type          :NA
 Health Check Type        :icmp
 Real Server Number       :2
   RserverID  IP Address   Weight  Max-connection  Status
   0          192.168.2.30    1         -           Active
   1          192.168.2.20    1         -           Active
---------------------------------------------------------

# Display the operating of all real servers in a server group.

<sysname> display slb group verbose grp1
Group Information(Total 1)                                                      
--------------------------------------------------------------------------------
----------------------------                                                    
  Group Name               : grp1                                   
  Group ID                 : 0                                                  
  Metric                   : weight-least-connection                            
  Source-nat Type          : NA                                                 
  Health Check Type        : icmp                                               
  Real Server Number       : 3                                                  
    RserverID  IP Address       Weight  Max-connection  Status               Rat
io  TotalSession  CurSession                                                    
    0          192.168.1.1      4       -               Admin-Active         58.
10%            3112        48                                                  
    1          192.168.1.2      2       -               Admin-Active         28.
11%            1512        30                                                    
    2          192.168.1.3      1       -               Admin-Active         14.
04%            732         11                                                    
--------------------------------------------------------------------------------
---------------------------- 
Table 1 Description of the display slb group verbose grp1 command output

Item

Description

Group Name

Server group name

Group ID

Server group ID

Metric

Load balancing algorithm.

In the real server group view, run the metric command to set this parameter.

Source-nat Type

Source NAT mode: outbound interface or address pool. "NA" indicates that source NAT is not configured.

Health Check Type

Health check protocol type.

In the real server group view, run the health-check type command to set this parameter.

Real Server Number

Number of real servers in a group

Current Connection

Total number of concurrent connections on all servers in a group

RserverID

Real server ID.

In the real server group view, run the reserver command to set this parameter.

IP Address

Real server IP address.

In the real server group view, run the reserver command to set this parameter.

Weight

Real server weight.

In the real server group view, run the reserver command to set this parameter.

Status

Real server status

A real server has the following statuses:
  • Admin-Active: The real server is available. The real server is not specified as unavailable (status inactive) and health check parameters are not configured. Therefore, the real server is available by default.
  • Admin-Active: The real server is unavailable. The real server is specified as unavailable (status inactive). No matter whether the health check parameters are configured or not and what the check result is, the real server is unavailable. The highest priority is configured for status inactive.
  • Admin-Health-Check: indicates the transitive status of health check. Health check is implemented on the server, but no result is available yet.
  • Active: The real server is available. Health check is implemented on the server, and the result shows that the real server is available.
  • Inactive: The real server is unavailable. Health check is implemented on the server, and the result shows that the real server is unavailable.

In the real server group view, run the reserver command to specify the real server as unavailable (inactive) or implement health check for the real server (health-check). By default, the status of the real server is health-check.

Max-connection

Maximum number of connections on a real server.

"-" indicates that this parameter is not configured.

In the real server group view, run the reserver command to set this parameter.

Ratio

Percentage of a real server's service traffic in the total traffic in the last 5 minutes. The statistics can be cleared using reset slb statistics.

TotalSession

Number of new sessions on a real server in the last 5 minutes. The measurement time point of TotalSession is different from that of Ratio. The statistics can be cleared using reset slb statistics.

CurSession

Number of current sessions on a real server. The statistics cannot be cleared using reset slb statistics.

# Display the basic configuration information of virtual server a.

<sysname> display slb vserver a
Virtual Server Information(Total 1)
-------------------------------------------
  Virtual Server Name      :a
  Virtual Server ID        :2
  Virtual Server IP        :1.1.1.2
  Protocol                 :tcp
  Virtual Server Port      :any
  Http X-forward Enable    :Disable
  Virtual Server Max-conn  :1000
  Persistence Name/ID(Type):persis/0(source-ip)
  SSL Profile Name/ID      :s0/0
  Httpclass List           :class1
  Group Name               :grp1
  Group ID                 :1
  Current Connection       :0
---------------------------------------------

# Display the operating of all real servers on virtual server a.

<sysname> display slb vserver verbose a
Virtual Server Information(Total 1)
-------------------------------------------
  Virtual Server Name      :a
  Virtual Server ID        :2
  Virtual Server IP        :1.1.1.2
  Protocol                 :tcp
  Virtual Server Port      :any
  Http X-forward Enable    :Disable
  Virtual Server Max-conn  :1000
  Persistence Name/ID(Type):persis/0(source-ip)
  SSL Profile Name/ID      :s0/0
  Httpclass List           :class1
  Group Name               :grp1
  Group ID                 :1
  Virtual Server Statistics
   Current Connection       :0
   Total connection         :0
   Total Flow               :0
---------------------------------------------
Table 2 Description of the display slb vserver verbose a command output

Item

Description

Virtual Server Name

Virtual server name

Virtual Server ID

Virtual server ID

Virtual Server IP

Virtual server IP address

Protocol

Protocol types supported by a virtual server.

In the virtual server view, run the protocol command to configure a protocol type.

Virtual Server Port

Port number of a virtual server

any: indicates any port number.

Http X-forward Enable

Whether the HTTP X-Forward function is enabled on a virtual server:
  • Enable: The HTTP X-Forward function is enabled.
  • Disable: The HTTP X-Forward function is disabled.

In the virtual server view, run the http x-forward enable command to enable the HTTP X-Forward function.

Virtual Server Max-conn

Maximum number of concurrent connections on a virtual server.

"-" indicates that the parameter is not set.

Persistence Name/ID(Type)

Sticky session configuration. This parameter is not displayed if it is set.

SSL Profile Name/ID

Uninstallation configuration. This parameter is not displayed if it is set.

Httpclass List

HTTP scheduling policy profile list. This parameter is not displayed if it is set.

Group Name

Group name of a virtual server

Group ID

Server group ID of a virtual server

Current Connection

Number of current concurrent connections on a virtual server

Total connection

Total connections on a virtual server in the last five minutes

Total Flow

Total flow of a virtual server in the last five minutes in B, KB, MB, or GB.

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