How to install Oxidized on Arch Linux

Oxidized is an open-source network inventory tool that allows you to keep track of your network devices and configurations. It is available on GitHub, and it can be installed on Arch Linux by following these steps.

Prerequisites

Before you start, please ensure that the following requirements are met:

Installation

Follow these steps to install Oxidized on Arch Linux.

  1. Open the terminal on your Arch Linux machine.

  2. Update your packages by running the following command:

    sudo pacman -Syu
    
  3. Install Ruby and Git by running the following command:

    sudo pacman -S ruby git
    
  4. Install the Ruby gems required by Oxidized:

    sudo gem install oxidized oxidized-web --no-document
    
  5. Create the Oxidized configuration file:

    sudo mkdir /etc/oxidized
    sudo touch /etc/oxidized/config
    
  6. Open the configuration file with your preferred text editor:

    sudo nano /etc/oxidized/config
    
  7. Paste the following configuration into the configuration file:

    ---
    username: admin
    password: yourpassword
    model: cisco
    interval: 3600
    log: /var/log/oxidized/oxidized.log
    use_syslog: false
    debug: false
    threads: 30
    timeout: 20
    retries: 3
    prompt: !ruby/regexp /^([\w.-]+[#>]\s?)$/
    rest: 0.0.0.0:8888
    inputs:
      default: ssh
    outputs:
      default:
        type: file
        dirname: "/etc/oxidized/configs"
    source:
      default:
        ssh:
          secure: false
    groups: {}
    models: {}
    
  8. Save and close the configuration file.

  9. Create the directory where Oxidized will store the configurations:

    sudo mkdir /etc/oxidized/configs
    
  10. Set permissions for Oxidized to access the directories:

    sudo chown -R yourusername:oxidized /etc/oxidized/
    sudo chmod -R 770 /etc/oxidized/
    
  11. Start Oxidized:

    sudo systemctl start oxidized
    

Oxidized should now be up and running on your Arch Linux machine. You can test the installation by adding a device to the inventory.

Conclusion

In this tutorial, we have installed Oxidized on Arch Linux by installing required dependencies, configuring the installation, and starting Oxidized. You can now manage your network devices and configurations using Oxidized.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!