The resource-class command creates a resource class and displays the resource class view.
The undo resource-class command deletes the specified resource class.
| Parameter | Description | Value |
|---|---|---|
| resource-class-name | Specifies the name of a resource class. | The value is a string of 1 to 32 characters starting with a digit or letter and contains only letters, digits, underscores (_), and spacial characters, such as !, @, #, $, and %. case-insensitive. |
Application Scenarios
When multiple virtual systems exist on the FW, if one virtual system uses too many resource, other virtual systems cannot obtain resources, and the services cannot run properly. For example, a virtual system has many P2P services that consume too many bandwidth and connection resources, affecting the services of other virtual systems. In this case, you can configure resource classes, and bind virtual systems to the resource classes to restrict the use of resources. In this manner, each virtual system can run properly.
Prerequisites
The command can be used only after you run the vsys enable command to enable the virtual system function.
Follow-up Procedure
Run the resource-item-limit command to configure the guaranteed or maximum number of resource items.
Run the assign resource-class command to bind a resource class to a virtual system.
Precautions
Before deleting a resource class, you must unbind the resource class from the virtual system. You can run the display resource resource-class resource-class-name command to view the virtual system bound to the resource class, and then run the undo assign resource-class command to unbind the resource class from the virtual system.
Resource class r0 is bound to the public system by default and cannot be deleted.