0% found this document useful (1 vote)
195 views5 pages

Notepad

The document contains configuration settings for an Oxidized server including the username, password, and model for devices to be managed. It specifies the log location, debugging settings, and threads. The REST interface is configured to listen on port 8888 and the output directory for device configurations is set. The source for nodes is configured to load from a CSV file but it results in an error as that file does not exist.

Uploaded by

highway2prakas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
195 views5 pages

Notepad

The document contains configuration settings for an Oxidized server including the username, password, and model for devices to be managed. It specifies the log location, debugging settings, and threads. The REST interface is configured to listen on port 8888 and the output directory for device configurations is set. The source for nodes is configured to load from a CSV file but it results in an error as that file does not exist.

Uploaded by

highway2prakas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

username: manager

password: f00bar
model: procurve

interval: 600

log: ~/.config/oxidized/log
use_syslog: false
debug: false
threads: 30
timeout: 20
retries: 3
prompt: !ruby/regexp /^([\w.@-]+[#>]\s?)$/
pid: /home/oxidized/.config/oxidized/pid

vars:
enable: v3ry5ecur3

remove_secret: true

rest: 192.168.2.142:8888

groups: {}

input:

default: ssh, telnet


debug: false
ssh:
secure: false

output:
default: file
file:
directory: /home/oxidized/deviceconfigs

source:
default: csv

csv:
file: /home/oxidized/.config/oxidized/router.db
delimiter: !ruby/regexp /:/

map:
name: 0
model: 1
username: 2
password: 3
vars_map:
enable: 4

model_map:

cisco: ios
juniper: junos

chmod 777 /home/oxidized/.config/configstore/ /home/oxidized/


.config/configstore/insight-yo.json

chmod -R 777 /home/root/.config/configstore/insight-yo.json

[root@localhost oxidized]# systemctl stop firewalld


[root@localhost oxidized]# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@localhost oxidized]# clear
[root@localhost oxidized]# vi /home/oxidized/.config/oxidized/router.db
[root@localhost oxidized]# oxidized
I, [2018-02-14T15:33:13.631455 #64907] INFO -- : Oxidized starting, running as pid
64907
I, [2018-02-14T15:33:13.631898 #64907] INFO -- : lib/oxidized/nodes.rb: Loading
nodes
F, [2018-02-14T15:33:13.631979 #64907] FATAL -- : Oxidized crashed, crashfile
written in /root/.config/oxidized/crash
No such file or directory - /root/.config/oxidized/router.db
/usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/source/csv.rb:28:in
`initialize': No such file or directory - /root/.config/oxidized/router.db
(Errno::ENOENT)
from /usr/local/share/gems/gems/oxidized-
0.21.0/lib/oxidized/source/csv.rb:28:in `open'
from /usr/local/share/gems/gems/oxidized-
0.21.0/lib/oxidized/source/csv.rb:28:in `load'
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:15:in
`block in load'
from /usr/local/share/gems/gems/oxidized-
0.21.0/lib/oxidized/nodes.rb:128:in `synchronize'
from /usr/local/share/gems/gems/oxidized-
0.21.0/lib/oxidized/nodes.rb:128:in `with_lock'
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:10:in
`load'
from /usr/local/share/gems/gems/oxidized-
0.21.0/lib/oxidized/nodes.rb:123:in `initialize'
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:14:in
`new'
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:14:in
`initialize'
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:4:in
`new'
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:4:in
`new'
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/cli.rb:12:in
`run'
from /usr/local/share/gems/gems/oxidized-0.21.0/bin/oxidized:9:in `<top
(required)>'
from /usr/local/bin/oxidized:23:in `load'
from /usr/local/bin/oxidized:23:in `<main>'
[root@localhost oxidized]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether 00:0c:29:40:45:06 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.142/24 brd 192.168.2.255 scope global dynamic ens33
valid_lft 1647sec preferred_lft 1647sec
inet6 fe80::da59:8cb:5f3b:4ec5/64 scope link
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
qlen 1000
link/ether 52:54:00:99:42:fc brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state
DOWN qlen 1000
link/ether 52:54:00:99:42:fc brd ff:ff:ff:ff:ff:ff
[root@localhost oxidized]# su - oxidized
Last login: Wed Feb 14 15:22:56 +0545 2018 on pts/1
[oxidized@localhost ~]$ oxidized
I, [2018-02-14T15:35:35.569303 #64970] INFO -- : Oxidized starting, running as pid
64970
F, [2018-02-14T15:35:35.571253 #64970] FATAL -- : Oxidized crashed, crashfile
written in /home/
no source csv config, edit ~/.config/oxidized/config
/usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/source/csv.rb:16:in
`setup': no source
from /usr/local/share/gems/gems/oxidized-
0.21.0/lib/oxidized/manager.rb:19:in `load'
from /usr/local/share/gems/gems/oxidized-
0.21.0/lib/oxidized/manager.rb:53:in `add_sour
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:13:in
`block in l
from /usr/local/share/gems/gems/oxidized-
0.21.0/lib/oxidized/nodes.rb:128:in `synchroni
from /usr/local/share/gems/gems/oxidized-
0.21.0/lib/oxidized/nodes.rb:128:in `with_lock
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:10:in
`load'
from /usr/local/share/gems/gems/oxidized-
0.21.0/lib/oxidized/nodes.rb:123:in `initializ
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:14:in
`new'
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:14:in
`initialize'
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:4:in
`new'
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:4:in
`new'
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/cli.rb:12:in
`run'
from /usr/local/share/gems/gems/oxidized-0.21.0/bin/oxidized:9:in `<top
(required)>'
from /usr/local/bin/oxidized:23:in `load'
from /usr/local/bin/oxidized:23:in `<main>'
[oxidized@localhost ~]$

[root@localhost ~]# yum -y update


Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.centos.org
* extras: mirror.centos.org
* updates: mirror.centos.org
No packages marked for update
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ll
total 28
-rw-r--r--. 1 root root 1664 Aug 30 08:53 CentOS-Base.repo
-rw-r--r--. 1 root root 1309 Aug 30 08:53 CentOS-CR.repo
-rw-r--r--. 1 root root 649 Aug 30 08:53 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 314 Aug 30 08:53 CentOS-fasttrack.repo
-rw-r--r--. 1 root root 630 Aug 30 08:53 CentOS-Media.repo
-rw-r--r--. 1 root root 1331 Aug 30 08:53 CentOS-Sources.repo
-rw-r--r--. 1 root root 3830 Aug 30 08:53 CentOS-Vault.repo
[root@localhost yum.repos.d]# yum clean all
Loaded plugins: fastestmirror, langpacks
Cleaning repos: base extras updates
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data
from disabled or removed repos
Cleaning up list of fastest mirrors
[root@localhost yum.repos.d]# yum -y update
Loaded plugins: fastestmirror, langpacks

sudo tail -f /var/log/messages

root@localhost ~]# cp --
cp: missing file operand
Try 'cp --help' for more information.
[root@localhost ~]# sudo cp /usr/local/share/gems/gems/oxidized-
0.19.0/extra/oxidized.service /lib/systemd/system/
cp: cannot stat �/usr/local/share/gems/gems/oxidized-
0.19.0/extra/oxidized.service�: No such file or directory
[root@localhost ~]# sudo cp /usr/local/share/gems/gems/oxidized-
0.19.0/extra/oxidized.service /lib/systemd/system/
cp: cannot stat �/usr/local/share/gems/gems/oxidized-
0.19.0/extra/oxidized.service�: No such file or directory
[root@localhost ~]# cd /usr/local/share/gems/gems/oxidized-0.21.0/extra/
[root@localhost extra]# dir
auto-reload-config.runit oxidized.service
nagios_check_failing_nodes.rb oxidized.supervisord
oxidized.apache2 oxidized-ubuntu.haproxy
oxidized.init oxidized.upstart
oxidized.init.d rest_client.rb
oxidized.nginx rvm.oxidized.upstart
oxidized-report-git-commits syslog.rb
oxidized.runit update-ca-certificates.runit
[root@localhost extra]# cp oxidized.service /lib/systemd/system/
[root@localhost extra]#
[root@localhost extra]#
[root@localhost extra]#
[root@localhost extra]#
[root@localhost extra]# systemctl enable oxidized.service
Created symlink from /etc/systemd/system/multi-user.target.wants/oxidized.service
to /usr/lib/systemd/system/oxidized.service.
[root@localhost extra]# systemctl start oxidized
[root@localhost extra]# sudo tail -f /var/log/messages
Feb 15 02:30:09 localhost oxidized: from /usr/local/share/gems/gems/oxidized-
0.21.0/lib/oxidized/core.rb:4:in `new'
Feb 15 02:30:09 localhost oxidized: from /usr/local/

You might also like