Username and passweord in config files

Hi,

Each device has different username and password so how should add them in /config file?
what is the difference between username and password which we add in router.db for each device and config file?

  1. /home/oxidized/.config/oxidized/config → what is username and pass here?
  2. /home/oxidized/.config/oxidized/router.db
  3. create a oxidized user and pass in LibreNMS portal.

Welcome to the Oxidized help section.

You are free to ask any questions surrounding Oxidized, it does not need to be specific to LibreNMS integration.

GitHub
Gitter

You can define them in the oxidized config file. Check the oxidized docs.

If you are using the LibreNMS integration, you do not use router.db

Thank you, As I watched the video https://www.youtube.com/watch?v=KDzzW4ICv5A it has shown librenms exist and also configuration in router.db has done as well as configuration guide. Moreover, integration doc regarding username and password was unclear. Please send me related doc link if you think it helps me.

Since there are lot of devices with different username and passwords where should define them one by one? config file or router.db or both? and how classified them in config file.

by default librenms will send only below information to oxidized

{
“hostname”: “device hostname”,
“os”: “iosxe”,
“ip”: “x.x.x.x.”,
“group”: “default”
},

passwords must be configured only in oxidized config. you can group the devices in librenms according to their credentials

in oxidized config , assign credentials for each group separately like below

groups:
groupx:
username: groupx username
password: groupx _password
model: xxx
groupy:
username: groupy username
password: groupy password
model: yyy

Thank you for explanation. what is router.db? In which scenario or condition should config it?
what are below username and password( first two lines) ? when assign credentials for each group should I comment (below first lines) # ?

username: oxidized
password: S3cr3tx
model: junos —> what is model in this line? when there are different model devices should I comment this and add them in model group?
interval: 3600 #interval in seconds
log: ~/.config/oxidized/log
debug: false
threads: 30 # maximum number of threads

use_max_threads:

false - the number of threads is selected automatically based on the interval option, but not more than the maximum

true - always use the maximum number of threads

use_max_threads: false
timeout: 20
retries: 3
prompt: !ruby/regexp /^([\w.@-]+[#>]\s?)$/
crash:
directory: ~/.config/oxidized/crashes
hostnames: false
vars:
enable: S3cr3tx
groups: {}
rest: 127.0.0.1:8888
pid: ~/.config/oxidized/oxidized.pid
input:
default: ssh, telnet
debug: false
ssh:
secure: false
output:
default: git
git:
user: Oxidized
email: [email protected]
repo: “~/.config/oxidized/oxidized.git”
source:
default: csv
csv:
file: ~/.config/oxidized/router.db
delimiter: !ruby/regexp /:confused:
map:
name: 0
model: 1
username: 2
password: 3
vars_map:
enable: 4
model_map:
cisco: ios
juniper: junos

This is the default config, where you need to create routerdb manually with all hosts.

if you want to source from librems, below is the config

source:
default: http
debug: true
http:
secure: false
url: https://librenmsip/api/v0/oxidized
scheme: https
map:
name: hostname
ip: hostname
model: os
group: group
headers:
X-Auth-Token: LIBRENMSTOKEN