目次~
#contents
*概要 [#mc967665]
Linux向けのLLDP実装「lldpd」に含まれるlldpcliコマンドの使用例。

*使用方法 [#w5737371]
**接続状況の確認 [#t210187d]

-コマンド(全て表示)
 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
 -------------------------------------------------------------------------------

**フレーム受信状況の確認 [#hd27a5ad]

-コマンド(全て表示)
 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
 -------------------------------------------------------------------------------

**LLDP設定 [#vae9f5e7]
-コマンド
 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
 -------------------------------------------------------------------------------




トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS