Odesílání logů z Mikrotiku na linux: Porovnání verzí

Z Wiki UnArt Slavičín
Skočit na navigaciSkočit na vyhledávání
Bez shrnutí editace
Bez shrnutí editace
 
(Není zobrazena jedna mezilehlá verze od stejného uživatele.)
Řádek 14: Řádek 14:




Výsledný skript.
Výsledný skript.


  :local LocalMachineName "nevsova_bytovky"
  :local LocalMachineName "nevsova_bytovky"
  :local RemoteMachineIP "10.143.126.5"
  :local RemoteMachineIP "10.143.126.5:514"
:local RemoteMachinePort "514"
  /system logging action add name backup remote $RemoteMachineIP target=remote
  /system logging action add name backup remote $RemoteMachineIP:$RemoteMachinePort target=remote
  /system logging add topics=error prefix=$LocalMachineName action=backup
  /system logging add topics=error prefix=$LocalMachineName action=backup
  /system logging add topics=critical prefix=$LocalMachineName action=backup
  /system logging add topics=critical prefix=$LocalMachineName action=backup
  /system logging add topics=info prefix=$LocalMachineName action=backup
  /system logging add topics=info prefix=$LocalMachineName action=backup
  /system logging add topics=warning prefix=$LocalMachineName action=backup
  /system logging add topics=warning prefix=$LocalMachineName action=backup

Aktuální verze z 25. 2. 2008, 22:33

/system logging action add name backup remote 10.143.126.5:514 target=remote
/system logging add topics=error prefix=<nazev AP> action=backup
/system logging add topics=critical prefix=<nazev AP> action=backup
/system logging add topics=info prefix=<nazev AP> action=backup
/system logging add topics=warning prefix=<nazev AP> action=backup





Výsledný skript.

:local LocalMachineName "nevsova_bytovky"
:local RemoteMachineIP "10.143.126.5:514"
/system logging action add name backup remote $RemoteMachineIP target=remote
/system logging add topics=error prefix=$LocalMachineName action=backup
/system logging add topics=critical prefix=$LocalMachineName action=backup
/system logging add topics=info prefix=$LocalMachineName action=backup
/system logging add topics=warning prefix=$LocalMachineName action=backup