The match command configures a matching rule for a group on the Commander.
The undo match command deletes a matching rule for a group on the Commander.
By default, a group has no matching rule.
match mac-address mac-address [ mac-mask | mac-mask-length ]
match esn esn
match ip-address ip-address [ ip-mask | ip-mask-length ]
match model model
match device-type device-type
undo match mac-address [ mac-address [ mac-mask | mac-mask-length ] ]
undo match esn [ esn ]
undo match ip-address [ ip-address [ ip-mask | ip-mask-length ] ]
undo match model [ model ]
undo match device-type [ device-type ]
Parameter | Description | Value |
---|---|---|
mac-address mac-address |
Configures a MAC address-based matching rule. A group can have multiple MAC addresses or MAC address ranges specified. A client matches the group as long as it matches one of MAC addresses. |
The value is in the H-H-H format, where each H contains four hexadecimal digits. |
mac-mask |
Specifies the mask of a MAC address. |
The value is in the H-H-H format, where each H contains four hexadecimal digits. By default, the mask is ffff-ffff-ffff. |
mac-mask-length |
Specifies the mask length of a MAC address. |
The value is an integer that ranges from 0 to 48. By default, the mask length is 48. |
esn esn |
Configures an ESN-based matching rule. A group can have multiple ESNs specified. A client matches the group as long as it matches one of ESNs. |
The value is a string of 10 to 32 case-insensitive characters without spaces. |
ip-address ip-address |
Configures an IP address-based matching rule. A group can have multiple IP addresses or IP address ranges (for example 192.168.110.0) specified. A client matches the group as long as it matches one of IP addresses. |
The value is in dotted decimal notation. |
ip-mask |
Specifies the mask of an IP address. |
The value is in dotted decimal notation. By default, the mask is 255.255.255.255. |
ip-mask-length |
Specifies the mask length of an IP address. |
The value is an integer that ranges from 0 to 32. By default, the mask length is 32. |
model model |
Configures a device model-based matching rule. |
The value is a string of 1 to 32 case-insensitive characters without spaces. |
device-type device-type |
Configures a device type-based matching rule. |
The value is a string of 1 to 32 case-insensitive characters without spaces. |
Usage Scenario
After configuring a customized group on the Commander, configure matching rules for the group. A client can obtain the files specified in a group only when it matches a rule in the group.
Precautions
# Configure two MAC address-based matching rules in a customized group.
<HUAWEI> system-view [HUAWEI] easy-operation [HUAWEI-easyoperation] group custom mac-address test [HUAWEI-easyoperation-group-custom-test] match mac-address 70F3-950B-1A52 [HUAWEI-easyoperation-group-custom-test] match mac-address 70F3-950B-1B36