Difference between revisions of "Oxidized"

From HackerNet
Jump to: navigation, search
Line 2: Line 2:
  
 
===Supportade OS===
 
===Supportade OS===
* A10 Networks ACOS
+
* A0 Networks
* Alcatel-Lucent ISAM 7302/7330
+
** ACOS
* Alcatel-Lucent Operating System AOS
+
* Alcatel-Lucent
* Alcatel-Lucent Operating System AOS7
+
** AOS
* Alcatel-Lucent Operating System Wireless
+
** AOS7
* Alcatel-Lucent TiMOS
+
** ISAM
* Arista EOS
+
** TiMOS
* Brocade Fabric OS
+
** Wireless
* Brocade Ironware
+
* Arista
* Brocade NOS (Network Operating System)
+
** EOS
* Brocade Vyatta
+
* Arris
* Cisco AireOS
+
** C4CMTS
* Cisco ASA
+
* Aruba
* Cisco IOS
+
** AOSW
* Cisco IOS-XR
+
* Brocade
* Cisco NXOS
+
** FabricOS
* Cisco SMB (Nikola series)
+
** Ironware
* Cumulus Linux
+
** NOS (Network Operating System)
* DELL PowerConnect
+
** Vyatta
* Extreme Networks XOS
+
* Ciena
* Force10 FTOS
+
** SOAS
* FortiGate FortiOS
+
* Cisco
* HP Comware (HP A-series, H3C, 3Com)
+
** AireOS
* HP ProCurve
+
** ASA
* Huawei VRP
+
** IOS
* Juniper JunOS
+
** IOSXR
* Juniper ScreenOS (Netscreen)
+
** NXOS
* Mikrotik RouterOS
+
** SMB (Nikola series)
* Ubiquiti AirOS
+
* Citrix
* Palo Alto PAN-OS
+
** NetScaler (Virtual Applicance)
 +
* Cumulus
 +
** Linux
 +
* DataCom
 +
** DmSwitch 3000
 +
* DELL
 +
** PowerConnect
 +
** AOSW
 +
* Ericsson/Redback
 +
** IPOS (former SEOS)
 +
* Extreme Networks
 +
** XOS
 +
** WM
 +
* F5
 +
** TMOS
 +
* Force0
 +
** DNOS
 +
** FTOS
 +
* FortiGate
 +
** FortiOS
 +
* HP
 +
** Comware (HP A-series, H3C, 3Com)
 +
** Procurve
 +
* Huawei
 +
** VRP
 +
* Juniper
 +
** JunOS
 +
** ScreenOS (Netscreen)
 +
* Mikrotik
 +
** RouterOS
 +
* Motorola
 +
** RFS
 +
* MRV
 +
** MasterOS
 +
* Netonix
 +
** WISP Switch (As Netonix)
 +
* Opengear
 +
** Opengear
 +
* Palo Alto
 +
** PANOS
 +
* Supermicro
 +
** Supermicro
 +
* Ubiquiti
 +
** AirOS
 +
** Edgeos
 +
** EdgeSwitch
 +
* Zyxel
 +
** ZyNOS
  
 
==Installation==
 
==Installation==

Revision as of 21:43, 26 April 2016

Oxidized är ett backup tool för nätverk devices. Alltså en ersättare till Rancid.

Supportade OS

  • A0 Networks
    • ACOS
  • Alcatel-Lucent
    • AOS
    • AOS7
    • ISAM
    • TiMOS
    • Wireless
  • Arista
    • EOS
  • Arris
    • C4CMTS
  • Aruba
    • AOSW
  • Brocade
    • FabricOS
    • Ironware
    • NOS (Network Operating System)
    • Vyatta
  • Ciena
    • SOAS
  • Cisco
    • AireOS
    • ASA
    • IOS
    • IOSXR
    • NXOS
    • SMB (Nikola series)
  • Citrix
    • NetScaler (Virtual Applicance)
  • Cumulus
    • Linux
  • DataCom
    • DmSwitch 3000
  • DELL
    • PowerConnect
    • AOSW
  • Ericsson/Redback
    • IPOS (former SEOS)
  • Extreme Networks
    • XOS
    • WM
  • F5
    • TMOS
  • Force0
    • DNOS
    • FTOS
  • FortiGate
    • FortiOS
  • HP
    • Comware (HP A-series, H3C, 3Com)
    • Procurve
  • Huawei
    • VRP
  • Juniper
    • JunOS
    • ScreenOS (Netscreen)
  • Mikrotik
    • RouterOS
  • Motorola
    • RFS
  • MRV
    • MasterOS
  • Netonix
    • WISP Switch (As Netonix)
  • Opengear
    • Opengear
  • Palo Alto
    • PANOS
  • Supermicro
    • Supermicro
  • Ubiquiti
    • AirOS
    • Edgeos
    • EdgeSwitch
  • Zyxel
    • ZyNOS

Installation

apt-get update && apt-get -y install ruby ruby-dev libsqlite3-dev libssl-dev pkg-config cmake
gem install oxidized
gem install oxidized-script oxidized-web

requires Ruby version >= 2.0

Konfiguration

Konfigurationen är på YAML-format. Default finns i: /etc/oxidized/config och sedan ~/.config/oxidized/config

För att initiera oxidized i ditt home directory kör:

mkdir -p ~/.config/oxidized
oxidized
nano ~/.config/oxidized/config

Input

Input hämtar konfiguration från enheterna.

input:
  default: ssh, telnet
  debug: false
  ssh:
    secure: false

Source

Source läser vilka enheter som ska konfigbackas. Oxidized har stöd för CSV, SQLite och HTTP som source backends.

CSV backend läser vilka enheter som det ska tas backup på från en rancid-kompatibel fil.

source:
  default: csv
  csv:
    file: "/home/user/.config/oxidized/router.db"
    delimiter: !ruby/regexp /:/
    map:
      name: 0
      model: 1
      username: 2
      password: 3
    vars_map:
      enable: 4

router.db
Format: 0:1:2:3:4

router01.example.com:ios:user:pw:enablepw
172.20.0.1:ios:user:pw:enablepw

Output

Output lagrar konfigurationen.

output:
  default: file
  file:
    directory: "/home/user/.config/oxidized/configs"

GIT

output:
  default: git
  git:
      user: Oxidized
      email: oxidized@example.com
      repo: "/home/user/.config/oxidized/oxidized.git"

Execute

För att starta oxidized och ta en första backup

oxidized

RESTful web API

rest: <IP>:8888