! ! Pingによる死活監視でPoE受電機器の変化(停止/復旧)を検出する ! ! ! SWX2322P / SWX2310P Configのサンプル ! ! enable password admin ! username admin privilege on password (初期管理ユーザーパスワード) ! dns-client enable lldp run lldp auto-setting enable ! interface port1.1 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.2 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.3 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.4 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.5 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.6 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.7 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.8 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.9 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.10 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.11 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.12 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.13 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.14 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.15 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface port1.16 switchport switchport mode access no shutdown lldp-agent set lldp enable txrx exit ! interface vlan1 no switchport auto-ip enable ip address 192.168.100.240/24 no shutdown ! ! clock timezone JST ! http-server enable http-proxy enable ! telnet-server enable ! line con 0 line vty 0 7 ! mail server smtp 1 host (SMTP サーバーのIPアドレス) mail server smtp 1 name PoE_watch mail template 1 send server 1 send from (送信元のメールアドレス) send to (宛先のメールアドレス) mail notify 1 trigger terminal ! schedule 1 time */mon-fri 08:00:00 1 schedule 2 time */mon-fri 16:00:00 2 ! schedule template 1 description Power_supply cli-command 1 configure terminal cli-command 2 interface port1.2 cli-command 3 power-inline enable cli-command 4 end ! schedule template 2 description Power_stop cli-command 1 configure terminal cli-command 2 interface port1.2 cli-command 3 power-inline disable cli-command 4 end ! end