This procedure explains how to specify TLV units to be advertised in an LLDP packet that an agent transmits.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
# 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 Table 5–1.
# 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.
Display the existing agent properties.
# lldpadm show-agentprop net0 AGENT PROPERTY PERM VALUE 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
The output displays the existing, default, and possible values for each property of the LLDP agent.
Set system capabilities, link aggregation, and network virtualization information as items to advertise over the network.
# lldpadm set-agentprop -p basic-tlv+=syscapab,dot1-tlv+=linkaggr,virt-tlv=vnic net0
Remove the VLAN description from the packet.
# lldpadm set-agentprop -p dot1-tlv-=vlanname net0
Display the agent properties.
# lldpadm show-agentprop -p net0 AGENT PROPERTY PERM VALUE 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