目次
Linux向けのLLDP実装「lldpd」に含まれるlldpcliコマンドの使用例。
lldpcli show neighbors
lldpcli show neighbors eth0,eth1
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface: eth0, via: LLDP, RID: 2, Time: 0 day, 02:16:54
Chassis:
ChassisID: mac b0:7f:b9:4b:9c:80
SysName: CORE-SW01
SysDescr: GS724Tv4 ProSafe 24-port Gigabit Ethernet Smart Switch, 6.3.1.11, B1.0.0.4
MgmtIP: 192.168.xxx.xxx
Capability: Bridge, on
Capability: Router, off
Port:
PortID: local g1
PortDescr: g1
-------------------------------------------------------------------------------lldpcli show statistics
lldpcli show statistics eth0,eth1
------------------------------------------------------------------------------- LLDP statistics: ------------------------------------------------------------------------------- Interface: eth0 Transmitted: 291 Received: 282 Discarded: 0 Unrecognized: 0 Ageout: 0 Inserted: 1 Deleted: 0 -------------------------------------------------------------------------------
lldpcli show statistics summary
------------------------------------------------------------------------------- LLDP Global statistics: ------------------------------------------------------------------------------- Summary of stats: Transmitted: 2072 Received: 2292 Discarded: 0 Unrecognized: 0 Ageout: 0 Inserted: 6 Deleted: 0 -------------------------------------------------------------------------------
lldpcli show running-configuration
------------------------------------------------------------------------------- Global configuration: ------------------------------------------------------------------------------- Configuration: Transmit delay: 30 Transmit hold: 4 Receive mode: no Pattern for management addresses: (none) Interface pattern: (none) Interface pattern for chassis ID: (none) Override description with: (none) Override platform with: (none) Advertise version: yes Update interface descriptions: no Disable LLDP-MED inventory: yes LLDP-MED fast start mechanism: yes LLDP-MED fast start interval: 1 -------------------------------------------------------------------------------