LoginSignup
0
0

【Cisco_EEM】ポートのDownログから特定のポートをシャットダウンさせる

Posted at

interface GigabitEthernet0/9のDownログ出力から自動的にポートをシャットダウンおよび
任意のインターフェイスをUPを自動的に実施

event manager applet SHUTDOWN-Gi9
event syslog pattern "Interface GigabitEthernet0/9, changed state to down"
action 1.0 cli command "enable"
action 2.0 cli command "configure terminal"
action 3.0 cli command "interface GigabitEthernet0/9"
action 4.0 cli command "shutdown"
action 5.0 cli command "interface GigabitEthernet0/10"
action 6.0 cli command "no shut"
action 7.0 cli command "end"
action 8.0 cli command "wr"

event syslog patternの記述の後にトリガーにしたいログを設定する。

トリガーがログに出力された後の動きをaction 1.0 cli commandで定義する

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0