Managing Network Datalinks in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Displaying LLDP Statistics

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

    where field refers to any field name in the output of the show-agent -s command.

Example 5-7  Displaying LLDP Packet Statistics

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 5-8  Displaying Selected LLDP Packet Statistics

This example shows how to display selected statistics information.

# # lldpadm show-agent -s -o iframes,oframes net4
IFRAMES  OFRAMES
0        10