How to Install Oxidized on FreeBSD Latest
Oxidized is an open-source network device configuration backup tool. It automatically backs up network device configurations and provides a version-controlled history of changes.
In this tutorial, we will walk you through the steps to install Oxidized on FreeBSD Latest using GitHub.
Prerequisites
- A FreeBSD Latest server with root or sudo access
- A GitHub account
Step 1: Install Dependencies
Oxidized requires Ruby as a dependency. Use the following command to install Ruby:
$ sudo pkg install ruby
Step 2: Install Git
Git is required to clone the Oxidized repository. Use the following command to install Git:
$ sudo pkg install git
Step 3: Install Oxidized
Use the following command to clone the Oxidized repository:
$ git clone https://github.com/ytti/oxidized.gitNavigate to the cloned directory:
$ cd oxidizedUse the following command to install Oxidized:
$ gem install oxidized
Step 4: Configure Oxidized
Copy the default Oxidized configuration file:
$ cp oxidized/config.example oxidized/configEdit the
oxidized/configfile and update the following values:i. Set the
usernameandpasswordfor your network devices.username: your_username password: your_passwordii. Set the
intervalat which the configuration backups will be taken.interval: 3600iii. Set the
outputfile type (text, JSON, or YAML) and location.output: default: text text: file: /home/user/oxidized/configs/:hostname.txtiv. Set the
sourcefor the Oxidized to look for network devices configurations.source: default: csv csv: file: /home/user/oxidized/devices.csv delimiter: !ruby/regexp /[,!]\s*/ map: name: 0 ip: 1Save and close the file.
Step 5: Test Oxidized
Use the following command to test the Oxidized configuration:
$ oxidized --config ~/.config/oxidized/configVerify that Oxidized successfully backed up network device configurations.
Conclusion
Congratulations! You have successfully installed and configured Oxidized on FreeBSD Latest using GitHub repository. You can now use Oxidized to automate network device configuration backups and manage version control.