No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
condition move (user-defined signature rule view)

condition move (user-defined signature rule view)

Function

The condition move command moves a condition of the specified user-defined signature rule.

Format

condition move condition-id to new-condition-id

Parameters

Parameter Description Value
condition-id Specifies the ID of the condition to be moved in the specified user-defined signature rule. The value is an integer ranging from 1 to 4.
new-condition-id Specifies the destination position (new ID of the condition) of the moved condition in the user-defined signature rule. The value is an integer ranging from 1 to 4.

Views

User-defined signature rule view

Default Level

2: Configuration level

Usage Guidelines

After you run the check command to configure the matching order of conditions in a user-defined signature rule to sequential, you can move the condition to change its priority.

If the destination new-condition-id is used by a condition, the moved condition and the owner of the destination ID switch IDs. For example, conditions 1 to 4 exist in a user-defined signature rule. When you run the condition move 4 to 1 command to move condition 4 to the position of condition 1, condition 4 becomes condition 1, and the original condition 1 becomes condition 4.

Example

# View the existing conditions in user-defined signature rule hello.
<Huawei> system-view
[Huawei] ips signature-id 1
[Huawei-ips-signature-1] protocol HTTP
[Huawei-ips-signature-1] rule name hello
[Huawei-ips-signature-1-rule-hello] display this
#
  condition 1 field HTTP.HeadContent operate pmatch value abcdabcd
  #
  condition 2 field HTTP.Content-Type operate pmatch value efghefgh
  #
  condition 3 field HTTP.Transfer-Encoding operate pmatch value ijklijkl
#
return

# Move condition 2 in the user-defined signature rule to the position of condition 4, and view the result of the move.

[Huawei-ips-signature-1-rule-hello] condition move 2 to 4
[Huawei-ips-signature-1-rule-hello] display this
#
  condition 1 field HTTP.HeadContent operate pmatch value abcdabcd
  #
  condition 3 field HTTP.Transfer-Encoding operate pmatch value ijklijkl
  #
  condition 4 field HTTP.Content-Type operate pmatch value efghefgh
#
return

# Move condition 4 in the user-defined signature rule to the position of condition 1, and view the result of the move.

[Huawei-ips-signature-1-rule-hello] condition move 4 to 1
[Huawei-ips-signature-1-rule-hello] display this
#
  condition 1 field HTTP.Content-Type operate pmatch value efghefgh
  #
  condition 3 field HTTP.Transfer-Encoding operate pmatch value ijklijkl
  #
  condition 4 field HTTP.HeadContent operate pmatch value abcdabcd 
#
return
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 212625

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next