beautypg.com

Regular expression examples, Managing system parameters, Managing system – H3C Technologies H3C Intelligent Management Center User Manual

Page 39: Parameters

background image

30

Minus sign (-)—Represents a range if it is not the first or last character within the brackets. For

example, [a-c] matches any lower-case character from a to c (that is, a, b, or c). Being the first or
last character in a bracket expression, this character matches a literal minus sign.

Regular expression examples

Example 1

Regular expression ^\x13BitTorrent protocol matches the content of a BitTorrent handshake
packet, which starts with hexadecimal character \x13 and is followed with the string “BitTorrent

protocol." The regular expression would match “\x13BitTorrent protocol 1.22v”, but not

“BitTorrent protocol 1.22v” or “our protocol is \x13BitTorrent protocol”, which do not start with

\x13.

Example 2

Regular expression ^a[bc].*d$ would match abd, ab random words d, or ac random words d, but
not aed (in which e is not included in bracket expression [bc]), the abd (which does not start with

a), or acde (which does not end with d).

Example 3

Regular expression a+b? matches any string that contains one or more as followed with zero or
one b. It would match ab, a, aa, aab, or cabd, but not bb.

Example 4

Regular expression a(bc)+d matches any string that contains a and d with the string bc appears
one or more times in between. It would match abcd or abcbcbcd, but not abcbd.

Managing system parameters

The system parameters management function allows you adjust system parameters according to the
hardware configurations, service requirements, and network environments.
To view and configure UBA basic and advanced parameters:

1.

Access the Settings page.

2.

Click the Parameters link or icon .
The Parameter Management page appears.

3.

In the Basic Settings area, configure the following parameters:

{

Log Lifetime (1-1,824 days)—Enter the number of days you want to retain UBA logs in the Log

Lifetime field. The log lifetime is in the range 1 to 1824 days (5 years). The default value is 7
days. If you enable the data export function, the logs whose log lifetime expires are exported

from the database to disks of the UBA server. An operator can use the log audit tool to audit

the exported log files. After completing the configuration, click OK next to the Log Lifetime

field.

{

Exported File Lifetime (2-1,825 days)—Enter the number of days you want to retain exported
log files in the Exported File Lifetime field. The exported file lifetime is in the range of 2 to 1825

days. The default value is 90 days. The lifetime of an exported file is the current time minus the

time of logs in the file. After completing the configuration, click OK next to the Exported File

Lifetime field.

4.

In the Advanced Settings area, configure the following parameters:

{

Max. Displayed Entries for Audit (1-100,000)—Enter the maximum number of audit results that
you want UBA to display. The maximum number of entries displayed is in the range of 1 to