match
(for LLDP groups)
Syntax
match [seq ] {sys-desc | sysname | vendor-oui [type (价值 ]]} no match [seq ] {sys-desc | sysname | vendor-oui [type (价值 ]]}
Description
Defines a rule to match devices for an LLDP group. Up to 64 match/ignore rules can be defined for a group.
Theno
form of this command removes a rule.
Command context
config-lldp-group
Parameters
-
seq
- Specifies the ID of the rule to create or modify. If no ID is specified when adding a rule, an ID is automatically assigned in increments of 10 in the order in which rules are added. When more than one rule matches the command entered, the rule with the lowest ID takes precedence.
-
sys-desc
-
Specifies the LLDP system description type-length-value (TLV). Range: 1 to 256 alphanumeric characters.
-
sysname
- Specifies the LLDP system name TLV. Range: 1 to 64 alphanumeric characters.
-
vendor-oui
- Specifies the LLDP system vendor OUI TLV. Range: 1 to 6 alphanumeric characters.
-
type
- Specifies the vendor OUI subtype key.
-
value
- Specifies the vendor OUI subtype value. Range: 1 to 256 alphanumeric characters.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Adding rules that match the LLDP system descriptionArubaSwitchand system nameArubato the LLDP group namedgrp01:
switch(config)#port-access lldp-group grp01switch(config-lldp-group)#match sys-desc ArubaSwitchswitch(config-lldp-group)#match sysname Arubaswitch(config)#do show running-configCurrent configuration: ! !Version ArubaOS-CX Virtual.10.0X.000 !export-password: default led locator on ! ! vlan 1 port-access lldp-group grp01 seq 10 match sys-desc ArubaSwitch seq 20 match sysname Aruba
移除一个rule that matches the sequence number25from an LLDP group namedgrp01:
switch(config)#port-access lldp-group grp01switch(config-lldp-group)#no match seq 25
Adding a rule that matches the value of vendor-OUI000b86with type of1to the LLDP group namedgrp01:
switch(config)#port-access lldp-group grp01switch(config-lldp-group)#匹配vendor-oui 000 b86 1型
Adding a rule that matches the value of vendor-OUI000c34to the LLDP group namedgrp01:
switch(config)#port-access lldp-group grp01switch(config-lldp-group)#match vendor-oui 000c34