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í
(Nová stránka: /system logging action add name backup remote 10.143.126.5:514 target=remote)
 
Bez shrnutí editace
Řádek 1: Řádek 1:
/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 nameOfMachine "nevsova_bytovky"


  /system logging action add name backup remote 10.143.126.5:514 target=remote
  /system logging action add name backup remote 10.143.126.5:514 target=remote
/system logging add topics=error prefix=$nameOfMachine action=backup
/system logging add topics=critical prefix=$nameOfMachine action=backup
/system logging add topics=info prefix=$nameOfMachine action=backup
/system logging add topics=warning prefix=$nameOfMachine action=backup

Verze z 25. 2. 2008, 22:22

/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 nameOfMachine "nevsova_bytovky"
/system logging action add name backup remote 10.143.126.5:514 target=remote
/system logging add topics=error prefix=$nameOfMachine action=backup
/system logging add topics=critical prefix=$nameOfMachine action=backup
/system logging add topics=info prefix=$nameOfMachine action=backup
/system logging add topics=warning prefix=$nameOfMachine action=backup