This procedure explains how to specify TLV units to be advertised in an LLDP packet that an agent transmits.
Before You Begin
Ensure that your role has the appropriate rights profile to perform this procedure. See Using Rights Profiles to Perform Network Configuration.
$ lldpadm show-agentprop agent
This command helps you to see the TLV units that are already set for each property. If you do not specify a property, this command displays all the LLDP agent properties and their TLV values. For a list of agent properties, see Figure 1, Table 1, Optional TLV Units for an LLDP Agent.
$ lldpadm set-agentprop -p property[+|-]=value[,...] agent
You can use qualifiers to add (+) or remove (-) values from the list of values for properties that accept multiple values.
If you do not use the add (+) or remove (-) qualifiers, then the value that you set replaces all the values that were previously defined for the property.
$ lldpadm show-agentprop -p property agent
In the following example, the LLDP agent has net0 configured to advertise VLAN information in its LLDP packet. The LLDP packet is further configured to include system capabilities, link aggregation, and virtual NIC information as items that the LLDP can advertise. Later, the VLAN description is removed from the packet.
$ lldpadm show-agentprop net0 AGENT PROPERTY PERM VALUE EFFECTIVE DEFAULT POSSIBLE net0 mode rw both -- disable txonly,rxonly,both,disable net0 basic-tlv rw sysname, -- none none,portdesc, sysdesc sysname,sysdesc, syscapab,mgmtaddr, all net0 dot1-tlv rw vlanname, -- none none,vlanname,pvid, pvid,pfc linkaggr,pfc,appln, evb,etscfg,etsreco,all net0 dot3-tlv rw max-framesize -- none none, max-framesize, all net0 virt-tlv rw none -- none none,vnic,all $ lldpadm set-agentprop -p basic-tlv+=syscapab,dot1-tlv+=linkaggr,virt-tlv=vnic net0 $ lldpadm set-agentprop -p dot1-tlv-=vlanname net0 $ lldpadm show-agentprop -p net0 AGENT PROPERTY PERM VALUE EFFECTIVE DEFAULT POSSIBLE net0 mode rw both -- disable txonly,rxonly,both, disable net0 basic-tlv rw sysname, -- none none,portdesc, sysdesc, sysname,sysdesc, syscapab syscapab,mgmtaddr, all net0 dot1-tlv rw pvid,pfc -- none none,vlanname,pvid, linkaggr linkaggr,pfc,appln, evb,etscfg,etsreco,all net0 dot3-tlv rw max-framesize -- none none, max-framesize, all net0 virt-tlv rw vnic -- none none,vnic,all