Hi, All.
I am trying to setup Oxidized using the official install docs from Github. All is going well so far, however I seem to have a bespoke issue and wondering if anyone has a solution.
My switches use privilege mode so I in my oxidized config i have globally set vars enable, however my switches don’t require a password to move to privilege mode so my backups are failing as oxidized wants a password for enable mode.
I can see on oxidized the device is showing green as connected but the output shows as
! switch1>
-------------^
Error: Bad command
Here is the output for my oxidized config:
username: admin
password: ***************
model: ios
interval: 3600 #interval in seconds
log: “/home/oxidized/.config/oxidized/log”
debug: enable
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: /home/oxidized/.config/oxidized/crashes
hostnames: false
vars:
enable:
groups: {}
rest: x.x.x.x:8888
pid: /home/oxidized/.config/oxidized/pid
input:
default: ssh, telnet
debug: false
ssh:
secure: false
output:
default: file
file:
directory: /home/oxidized/.config/oxidized/configs
source:
default: csv
csv:
file: /home/oxidized/.config/oxidized/router.db
delimiter: !ruby/regexp /
map:
name: 0
ip: 1
model: 2
username: 3
password: 4
vars_map:
enable: 5
And here is my router.db file
#Firewalls
firewall01:x.x.x.x:draytek:admin::
#Switches
switch01:x.x.x.x:aosw:admin::
switch02:x.x.x.x:aosw:admin::
switch03:x.x.x.x:aosw:admin::
switch04:x.x.x.x:tplink:admin::
switch05:x.x.x.x:tplink:admin::
switch06:x.x.x.x:tplink:admin::
switch07:x.x.x.x:tplink:admin::
switch08:x.x.x.x:tplink:admin::
switch09:x.x.x.x:tplink:admin::
switch10:x.x.x.x:asow:admin::
switch11:x.x.x.x:asow:admin::
switch12:x.x.x.x:tplink:admin::
switch13:x.x.x.x:tplink:admin::
switch14:x.x.x.x:netgear:admin::
switch15:x.x.x.x:tplink:admin::
I have tried adding vars_map: enable: 5 in the source for the oxidized config and left the 5th row blank in the router.db file in hopes it thinks its using no password but this doesn’t work either.
Does anyone have a solution?
Thanks in advanced,
James