< Home

httpclass (SLB configuration view)

Function

The httpclass command creates an HTTP scheduling policy profile and displays the profile view, or directly displays an existing profile view.

The undo httpclass command deletes an HTTP scheduling policy profile.

Format

httpclass [ httpclass-id ] httpclass-name

undo httpclass { httpclass-id | httpclass-name }

Parameters

Parameter Description Value
httpclass-id Specifies the HTTP scheduling policy profile ID. The value is an integer ranging from 0 to 127. By default, the HTTP scheduling policy profile ID is 0.
httpclass-name Specifies the HTTP scheduling policy profile name. The value is a case-sensitive string of 1 to 32 characters. The name must start with a letter and cannot be "all", "vsys", or "all-systems".

Views

SLB configuration view

Default Level

2: Configuration level

Usage Guidelines

The HTTP scheduling policy profile defines SLB matching rules and actions based on URL, HOST, Referer, and Cookie.

If no ID is specified, the system automatically assigns an idle ID to the HTTP scheduling policy profile. The device searches for all HTTP scheduling policy profile IDs (including the root system and virtual system), and assigns the smallest ID among the idle IDs to the newly created profile.

Example

# Create HTTP scheduling policy profile abc.

<sysname> system-view
[sysname] slb
[sysname-slb] httpclass abc
[sysname-slb-httpclass-0] action close
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >