match
(for LLDP groups)
Syntax
match [seq <SEQ-ID>] {sys-desc <SYS-DESC> | sysname <SYS-NAME> |
vendor-oui <VENDOR-OUI> [type <KEY> [value <VALUE>]]}
no match [seq <SEQ-ID>] {sys-desc <SYS-DESC> | sysname <SYS-NAME> |
vendor-oui <VENDOR-OUI> [type <KEY> [value <VALUE>]]}
Description
Defines a rule to match devices for an LLDP group. Up to 64 match/ignore rules can be defined for a group.
The
no
form of this command removes a rule.
Command context
config-lldp-group
Parameters
seq <SEQ-ID>
- 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 <SYS-DESC>
Specifies the LLDP system description type-length-value (TLV). Range: 1 to 256 alphanumeric characters.
sysname <SYS-NAME>
- Specifies the LLDP system name TLV. Range: 1 to 64 alphanumeric characters.
vendor-oui <VENDOR-OUI>
- Specifies the LLDP system vendor OUI TLV. Range: 1 to 6 alphanumeric characters.
type <KEY>
- Specifies the vendor OUI subtype key.
value <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 description ArubaSwitch and system name Aruba to the LLDP group named grp01:
switch(config)# port-access lldp-group grp01 switch(config-lldp-group)# match sys-desc ArubaSwitch switch(config-lldp-group)# match sysname Aruba switch(config)# do show running-config Current 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
Removing a rule that matches the sequence number 25 from an LLDP group named grp01:
switch(config)# port-access lldp-group grp01 switch(config-lldp-group)# no match seq 25
Adding a rule that matches the value of vendor-OUI 000b86 with type of 1 to the LLDP group named grp01:
switch(config)# port-access lldp-group grp01 switch(config-lldp-group)# match vendor-oui 000b86 type 1