ytti / oxidized

Oxidized is a network device configuration backup tool. It's a RANCID replacement!
Apache License 2.0
2.8k stars 925 forks source link

Cisco Switches configs not fully backedup #3274

Open IASAH opened 1 month ago

IASAH commented 1 month ago

I have Oxidized with Librenms installed via docker from https://github.com/dcbell/librenms-oxidized_docker and configured as followed


the result I get in Librenms Oxidized Configuration is only information about the switches like hardware and software versions but no configuration included even in the Oxidized web GUI the same no configuration Can any one Help.
skiera6 commented 1 month ago

Have you tried this? Also please use

```yaml
    config
``` .

as it is hard to read otherwise

In your case it seems like you should try this:

Troubleshooting an overly greedy prompt:

Log in manually into the device. Use the same username and password or key configured for Oxidized. Execute the last command (which may be the first command to run) from which partial output is collected.

Compare the output to the partial output collected by Oxidized, focusing on the the difference that has been truncated. You can evaluate if this output could have matched the prompt regexp unexpectedly with IRB in a manner similar to the outlined in the previous section.

Adapt the prompt regexp to be more conservative if necessary in a local model override file.

We encourage you to submit a PR for any prompt issues you encounter.
IASAH commented 1 month ago

excuse my delayed replay I found that Oxidized is executing all pre (enable command) commands without issue but it doesn't execute the (enable Command) so I added (enable Command) password in vars: enable: 'my switch enable password' but nothing changes can anyone till me what do I need to do els?

robertcheramy commented 1 month ago

(Updated Issue for readability)

robertcheramy commented 1 month ago

Can you post your full modified config again? I have the impression you may have defined the enable variable twice (under model and globally). You can see what oxidized does by setting input.debug = true:

input:
  default: ssh, telnet
  debug: true

For each device, it will make a log under /home/oxidized/.config/oxidized/logs/. You can see there if oxidized sends the enable password or not.