The lldpadm show-agent command displays complete information that is advertised by an LLDP agent. Relative to a given system, the advertisement can be information about the local system that is transmitted to the rest of the network or information that is received by the system from other systems on the same network.
The information can be either local or remote. Local information comes from the local LLDP agent. Remote information comes from other LLDP agents on the network that is received by the local LLDP agent.
Use the lldpadm show-agent command to display the advertised information.
$ lldpadm show-agent -[l|r][v] agent
–l displays local information advertised by the local LLDP agent.
–r displays remote information received by the LLDP agent.
–v displays detailed local or remote information.
The following example shows how to display the information that is being advertised locally or remotely by an LLDP agent. By default, the information is displayed in short form. By using the –v option, you can obtain verbose or detailed information.
To display local information that is advertised by the LLDP agent:
$ lldpadm show-agent -l net0 AGENT CHASSISID PORTID net0 004bb87f 00:14:4f:01:77:5d
To display remote information that is advertised by the LLDP agent:
$ lldpadm show-agent -r net0 AGENT SYSNAME CHASSISID PORTID net0 hostb 0083b390 00:14:4f:01:59:ab
To display local information in the verbose mode, use the –v option:
$ lldpadm show-agent -l -v net4 Agent: net4 Chassis ID Subtype: Local(7) Chassis ID: 00843300 Port ID Subtype: MacAddress(3) Port ID: 00:1b:21:89:03:d0 Port Description: -- Time to Live: 21 (seconds) System Name: -- System Description: -- Supported Capabilities: -- Enabled Capabilities: -- Management Address: -- Maximum Frame Size: -- Port VLAN ID: -- VLAN Name/ID: vlan1/22 VNIC PortID/VLAN ID: 02:08:20:63:2d:9d,02:08:20:e5:6c:af/21 Aggregation Information: -- PFC Willing: On PFC Cap: 8 PFC MBC: False PFC Enable: 4 PFC Pending: True Application(s)(ID/Sel/Pri): -- ETS Willing: On ETS Configured CBS: 0 ETS Configured TCS: 8 ETS Configured PAT: 0,1,2,3,4,5,6,7 ETS Configured BAT: 40,20,0,40,0,0,0,0 ETS Configured TSA: 2,2,2,2,2,2,2,2 ETS Recommended PAT: 0,1,2,3,4,5,6,7 ETS Recommended BAT: 40,20,0,40,0,0,0,0 ETS Recommended TSA: 2,2,2,2,2,2,2,2 EVB Mode: Station EVB GID (Station): Not Supported EVB ReflectiveRelay REQ: Not Requested EVB ReflectiveRelay Status: RR Not Enabled EVB GID (Bridge): Not Supported EVB ReflectiveRelay Capable (RRCAP): Not Supported EVB ReflectiveRelay Control (RRCTR): Not Enabled EVB max Retries (R): 0 EVB Retransmission Exponent (RTE): 0 EVB Remote or Local(ROL) and Resource Wait Delay (RWD): Local EVB Resource Wait Delay (RWD): 0 EVB Remote or Local (ROL) and Reinit Keep Alive (RKA): Local EVB Reinit Keep Alive (RKA): 0 Next Packet Transmission: 4 (seconds)
To display remote information in the verbose mode, use the –v option:
$ lldpadm show-agent -r -v net4 Agent: net4 Chassis ID Subtype: Local(7) Chassis ID: 00843300 Port ID Subtype: MacAddress(3) Port ID: 00:1b:21:89:03:d0 Port Description: -- Time to Live: 21 (seconds) System Name: -- System Description: -- Supported Capabilities: -- Enabled Capabilities: -- Management Address: -- Maximum Frame Size: -- Port VLAN ID: -- VLAN Name/ID: vlan1/22 VNIC PortID/VLAN ID: 02:08:20:63:2d:9d,02:08:20:e5:6c:af/21 Aggregation Information: -- PFC Willing: On PFC Cap: 8 PFC MBC: False PFC Enable: 4 Application(s)(ID/Sel/Pri): -- ETS Willing: On ETS Configured CBS: 0 ETS Configured TCS: 8 ETS Configured PAT: 0,1,2,3,4,5,6,7 ETS Configured BAT: 40,20,0,40,0,0,0,0 ETS Configured TSA: 2,2,2,2,2,2,2,2 ETS Recommended PAT: 0,1,2,3,4,5,6,7 ETS Recommended BAT: 40,20,0,40,0,0,0,0 ETS Recommended TSA: 2,2,2,2,2,2,2,2 EVB Mode: Station EVB GID (Station): Not Supported EVB ReflectiveRelay REQ: Not Requested EVB ReflectiveRelay Status: RR Not Enabled EVB GID (Bridge): Not Supported EVB ReflectiveRelay Capable (RRCAP): Not Supported EVB ReflectiveRelay Control (RRCTR): Not Enabled EVB max Retries (R): 0 EVB Retransmission Exponent (RTE): 0 EVB Remote or Local(ROL) and Resource Wait Delay (RWD): Local EVB Resource Wait Delay (RWD): 0 EVB Remote or Local (ROL) and Reinit Keep Alive (RKA): Local EVB Reinit Keep Alive (RKA): 0 Information Valid Until: 19 (seconds)
You can display LLDP statistics to obtain information about LLDP packets that are being advertised by the local system or by remote systems. The statistics refer to significant events that involve LLDP packet transmission and reception.
To display all statistics about LLDP packet transmission and reception:
$ lldpadm show-agent -s agent
To display selected statistics information, use the –o option:
$ lldpadm show-agent -s -o field[,field,...]agent
field refers to any field name in the output of the show-agent -s command.
This example shows how to display information about LLDP packet advertisement.
$ lldpadm show-agent -s net0 AGENT IFRAMES IERR IDISCARD OFRAMES OLENERR TLVDISCARD TLVUNRECOG AGEOUT net0 9 0 0 14 0 4 5 0
This output provides the following information:
AGENT specifies the name of the LLDP agent, which is identical to the datalink on which the LLDP agent is enabled.
IFRAMES, IERR, and IDISCARD display information about packets being received, incoming packets with errors, and incoming packets that are dropped.
OFRAMES and OLENERR refer to outgoing packets and packets that have length errors.
TLVDISCARD and TLVUNRECOG display information about TLV units that are discarded and TLV units that are not recognized.
AGEOUT refers to packets that have timed out.
The example indicates that out of 9 frames received into the system, 5 TLV units are unrecognized, possibly because of noncompliance with standards. The example also shows that 14 frames were transmitted by the local system to the network.
Example 39 Displaying Selected LLDP Packet StatisticsThis example shows how to display selected statistics information.
$ lldpadm show-agent -s -o iframes,oframes net4 IFRAMES OFRAMES 0 10